Skip to content

Commit

Permalink
[1+PROTOCOL]: fix {in,}to_vec() call
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Jun 27, 2022
1 parent bca2cb5 commit 1d903eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/bridge/shared/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fn ECPrivateKey_Sign(key: &PrivateKey, message: &[u8]) -> Result<Vec<u8>> {

#[bridge_fn_buffer(ffi = "privatekey_agree", node = "PrivateKey_Agree")]
fn ECPrivateKey_Agree(private_key: &PrivateKey, public_key: &PublicKey) -> Result<Vec<u8>> {
Ok(private_key.calculate_agreement(public_key)?.into_vec())
Ok(private_key.calculate_agreement(public_key)?.to_vec())
}

#[bridge_fn_buffer(ffi = "identitykeypair_serialize")]
Expand Down

0 comments on commit 1d903eb

Please sign in to comment.