Skip to content
This repository was archived by the owner on Oct 22, 2026. It is now read-only.
This repository was archived by the owner on Oct 22, 2026. It is now read-only.

Improve definition of the Message struct #619

Open

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 {

Activity

  1. changed the title [-]Improve defination of the `Message` struct[/-] [+]Improve definition of the `Message` struct[/+] on Jun 24, 2023
  2. apoelstra commented on Jun 24, 2023

    @apoelstra
    Member

    Sure, we should say that it's input to an "EC signature" and also document which values are invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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