Skip to content

Commit

Permalink
fix: unit test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
witter-deland committed Nov 14, 2024
1 parent 9a25b94 commit c0757ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wallet/core/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ pub fn sign_message(msg: &PersonalMessage, privkey: &[u8; 32], options: &SignMes
let schnorr_key = secp256k1::Keypair::from_seckey_slice(secp256k1::SECP256K1, privkey)?;

let sig: [u8; 64] = if options.no_aux_rand {
*schnorr_key.sign_schnorr(msg).as_ref()
*secp256k1::SECP256K1.sign_schnorr_no_aux_rand(&msg, &schnorr_key).as_ref()
} else {
*secp256k1::Secp256k1::new().sign_schnorr_no_aux_rand(&msg, &schnorr_key).as_ref()
*schnorr_key.sign_schnorr(msg).as_ref()
};

Ok(sig.to_vec())
Expand Down

0 comments on commit c0757ec

Please sign in to comment.