Skip to content

Commit

Permalink
feat: add sign_schnorr_no_aux_rand for Keypair
Browse files Browse the repository at this point in the history
  • Loading branch information
witter-deland committed Nov 3, 2024
1 parent 728e3a8 commit f3333cd
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/rust-secp256k1.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,14 @@ impl Keypair {
SECP256K1.sign_schnorr(msg, self)
}

/// Constructs a schnorr signature without aux rand for `msg` using the global
/// [`SECP256K1`] context.
#[inline]
#[cfg(all(feature = "global-context", feature = "std"))]
pub fn sign_schnorr_no_aux_rand(&self, msg: &[u8]) -> schnorr::Signature {
SECP256K1.sign_schnorr_no_aux_rand(msg, self)
}

/// Attempts to erase the secret within the underlying array.
///
/// Note, however, that the compiler is allowed to freely copy or move the contents
Expand Down

0 comments on commit f3333cd

Please sign in to comment.