Skip to content

[bug]: schnorr signature does not allow messages with length different than 32 bytes #2543

Description

@allocz

The current implementation fails the bip340 vector tests because the signature verification fails when the message length is not 32 bytes. Both bip340 test vectors and libsecp256k1 allows messages with variable length.

The fix for this bug is to remove the restrictions of the message length in both schnorr signing and verifying procedures.

I can provide the PR with the fix and tests upon ACK from maintainers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions