From c23de7f4f63b1db0fa31f1396de518506ed49148 Mon Sep 17 00:00:00 2001 From: Aaron Feickert <66188213+AaronFeickert@users.noreply.github.com> Date: Wed, 20 Sep 2023 15:15:06 -0500 Subject: [PATCH] WIP --- comms/dht/src/message_signature.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comms/dht/src/message_signature.rs b/comms/dht/src/message_signature.rs index 10b6efbc7b..1004cb7757 100644 --- a/comms/dht/src/message_signature.rs +++ b/comms/dht/src/message_signature.rs @@ -157,7 +157,7 @@ mod test { let (mut mac, signer_k) = setup(); let signer_pk = CommsPublicKey::from_secret_key(&signer_k); let msg = construct_message_signature_hash(&signer_pk, mac.signature.get_public_nonce(), MSG); - let msg_scalar = CommsSecretKey::from_canonical_bytes(&msg).unwrap(); + let msg_scalar = CommsSecretKey::from_bytes_wide(&msg).unwrap(); // Some `a` key let (bad_signer_k, bad_signer_pk) = CommsPublicKey::random_keypair(&mut OsRng);