Skip to content

secp256k1: add constants for compact signature size#38

Merged
MichaelMure merged 1 commit into
masterfrom
secp256k1-const
Apr 2, 2026
Merged

secp256k1: add constants for compact signature size#38
MichaelMure merged 1 commit into
masterfrom
secp256k1-const

Conversation

@MichaelMure

@MichaelMure MichaelMure commented Apr 2, 2026

Copy link
Copy Markdown
Collaborator

Note

Low Risk
Low risk: adds a size constant and uses it for input validation/error messages without changing signature recovery behavior.

Overview
Adds SignatureCompactBytesSize (65 bytes) to the secp256k1 crypto package and documents the meaning of “compact” signatures.

Updates PublicKeyFromRecovery to validate compact signature length against this constant and to use it in the error message, replacing the previous hard-coded 65.

Written by Cursor Bugbot for commit 448728b. This will update automatically on new commits. Configure here.

@MichaelMure MichaelMure merged commit 80f039b into master Apr 2, 2026
7 checks passed
@MichaelMure MichaelMure deleted the secp256k1-const branch April 2, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants