Skip to content

Commit

Permalink
Remove double reference
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Oct 6, 2023
1 parent 9e0187f commit ec5e9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmtp/src/sealed_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub fn sealed_sender_decrypt(
// Convert to [u8; 32] so it can be cast to a PublicKey
let ephem_pub_bytes: [u8; 32] = message.ephemeral_public_key.as_slice().try_into().unwrap();
let ephem_keys =
EphemeralKeys::build(our_pub_key, &our_priv_key, &ephem_pub_bytes.into(), false);
EphemeralKeys::build(our_pub_key, our_priv_key, &ephem_pub_bytes.into(), false);

// Decrypt the message key and coerce into [u8; 32]
let message_key_bytes: [u8; 32] = aes256_ctr_hmac_sha256_decrypt(
Expand Down

0 comments on commit ec5e9be

Please sign in to comment.