Skip to content

Commit f3333cd

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

File tree

6 files changed

+48
-0
lines changed

6 files changed

+48
-0
lines changed

.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/rust-secp256k1.iml

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)