Function sign_with_noncedata

Source
pub fn sign_with_noncedata(
    msg: impl Into<Message>,
    sk: &SecretKey,
    noncedata: &[u8; 32],
) -> Signature
Expand description

Constructs a signature for msg using the secret key sk and RFC6979 nonce and includes 32 bytes of noncedata in the nonce generation via inclusion in one of the hash operations during nonce generation. This is useful when multiple signatures are needed for the same Message and SecretKey while still using RFC6979. Requires a signing-capable context.