Skip to content

Commit 2d29116

Browse files
committed
feat: add sign_schnorr_no_aux_rand for Keypair
1 parent 728e3a8 commit 2d29116

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/key.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,14 @@ impl Keypair {
10141014
SECP256K1.sign_schnorr(msg, self)
10151015
}
10161016

1017+
/// Constructs a schnorr signature without aux rand for `msg` using the global
1018+
/// [`SECP256K1`] context.
1019+
#[inline]
1020+
#[cfg(all(feature = "global-context", feature = "std"))]
1021+
pub fn sign_schnorr_no_aux_rand(&self, msg: &[u8]) -> schnorr::Signature {
1022+
SECP256K1.sign_schnorr_no_aux_rand(msg, self)
1023+
}
1024+
10171025
/// Attempts to erase the secret within the underlying array.
10181026
///
10191027
/// Note, however, that the compiler is allowed to freely copy or move the contents

0 commit comments

Comments
 (0)