From c0757ec9627f4ec5c00595e9053078911787bc94 Mon Sep 17 00:00:00 2001 From: Witter Date: Thu, 14 Nov 2024 08:55:24 +0700 Subject: [PATCH] fix: unit test fail --- wallet/core/src/message.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallet/core/src/message.rs b/wallet/core/src/message.rs index 8d4d4e491..152bf28aa 100644 --- a/wallet/core/src/message.rs +++ b/wallet/core/src/message.rs @@ -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())