Skip to content

Improve definition of the Message struct #619

Open
@Harshil-Jani

Description

@Harshil-Jani
/// 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 {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions