/// A (hashed) message input to an ECDSA signature.
#[derive(Copy, Clone)]
pub struct Message([u8; constants::MESSAGE_SIZE]);
This is not only used in ECDSA Signature, It is also used into the signing of schnorr signature.
|
pub fn sign_schnorr(&self, msg: &Message, keypair: &KeyPair) -> Signature { |