Skip to content

Commit 8afe5a4

Browse files
Merge rust-bitcoin/rust-secp256k1#762: feat: add sign_schnorr_no_aux_rand for Keypair
2d29116fc9d53d7201a4fe4223eded9501bf3fa9 feat: add sign_schnorr_no_aux_rand for Keypair (Witter) Pull request description: #761 kaspanet/rusty-kaspa#586 ACKs for top commit: apoelstra: ACK 2d29116fc9d53d7201a4fe4223eded9501bf3fa9; successfully ran local tests; thanks for iterating! Tree-SHA512: 29556e315a2f046cb845bc625686ffa3151feee66e988912d026dcc994eb13b567063c246e4aa4e37f057fa01a94cd18443cb3fc1fd80f470ad34e59f6fe600f
2 parents c24400a + 45c9247 commit 8afe5a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/key.rs

Lines changed: 8 additions & 0 deletions
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)