Skip to content

Commit

Permalink
Merge #762: feat: add sign_schnorr_no_aux_rand for Keypair
Browse files Browse the repository at this point in the history
2d29116 feat: add sign_schnorr_no_aux_rand for Keypair (Witter)

Pull request description:

  #761
  kaspanet/rusty-kaspa#586

ACKs for top commit:
  apoelstra:
    ACK 2d29116; successfully ran local tests; thanks for iterating!

Tree-SHA512: 29556e315a2f046cb845bc625686ffa3151feee66e988912d026dcc994eb13b567063c246e4aa4e37f057fa01a94cd18443cb3fc1fd80f470ad34e59f6fe600f
  • Loading branch information
apoelstra committed Nov 3, 2024
2 parents 728e3a8 + 2d29116 commit 2bfda46
Showing 1 changed file with 8 additions and 0 deletions.
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 2bfda46

Please sign in to comment.