Skip to content

ecdsa_sigformat: note conversions canonicalize S to low-S - #21

Merged
SomberNight merged 1 commit into
spesmilo:masterfrom
fametrano:electrum-ecc-sigformat-doc
Sep 8, 2026
Merged

ecdsa_sigformat: note conversions canonicalize S to low-S#21
SomberNight merged 1 commit into
spesmilo:masterfrom
fametrano:electrum-ecc-sigformat-doc

Conversation

@fametrano

Copy link
Copy Markdown
Contributor

The four signature-format converters call secp256k1_ecdsa_signature_normalize unconditionally, so they canonicalize S to its low value: a high-S signature does not round-trip byte-for-byte through them. The module header describes the functions only as format conversions, which reads as byte-preserving.

This adds a note to the module header. Documentation only, no behaviour change.

The four converters call secp256k1_ecdsa_signature_normalize, so a high-S
signature does not round-trip byte-for-byte through them. Document this in
the module header, which otherwise reads as pure format conversion.

@SomberNight SomberNight left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK e2290f9

@SomberNight
SomberNight merged commit 73bce03 into spesmilo:master Sep 8, 2026
6 checks passed
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