From ab70e19da3295df68aa8fd19dcd46cf143e4d337 Mon Sep 17 00:00:00 2001 From: Danny McClanahan <1305167+cosmicexplorer@users.noreply.github.com> Date: Sun, 26 Jun 2022 23:36:26 -0400 Subject: [PATCH] [1+PROTOCOL]: fix {in,}to_vec() call --- rust/bridge/shared/src/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/bridge/shared/src/protocol.rs b/rust/bridge/shared/src/protocol.rs index 1dac31bd49..49ea6b6b09 100644 --- a/rust/bridge/shared/src/protocol.rs +++ b/rust/bridge/shared/src/protocol.rs @@ -160,7 +160,7 @@ fn ECPrivateKey_Sign(key: &PrivateKey, message: &[u8]) -> Result> { #[bridge_fn_buffer(ffi = "privatekey_agree", node = "PrivateKey_Agree")] fn ECPrivateKey_Agree(private_key: &PrivateKey, public_key: &PublicKey) -> Result> { - Ok(private_key.calculate_agreement(public_key)?.into_vec()) + Ok(private_key.calculate_agreement(public_key)?.to_vec()) } #[bridge_fn_buffer(ffi = "identitykeypair_serialize")]