Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tsp_sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ publish = true

[features]
cesr-t = []
default = ["async"]
default = ["async", "nacl"]
essr = []
strict = []
fuzzing = ["dep:arbitrary"]
Expand Down
4 changes: 2 additions & 2 deletions tsp_sdk/src/crypto/tsp_nacl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ pub(crate) fn seal(
*digest = crate::crypto::blake2b256(&cesr_message)
}

let sender_secret_key = SecretKey::from_slice(&sender.decryption_key())?;
let receiver_public_key = PublicKey::from_slice(&receiver.encryption_key())?;
let sender_secret_key = SecretKey::from_slice(sender.decryption_key())?;
let receiver_public_key = PublicKey::from_slice(receiver.encryption_key())?;

let sender_box = ChaChaBox::new(&receiver_public_key, &sender_secret_key);

Expand Down
Loading