Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add sign_schnorr_no_aux_rand for Keypair #762

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading