Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto: lower the EC_SIGNATURE_DER_MAX_LOW_R_LEN constant to 70 #434

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

jgriffiths
Copy link
Contributor

@jgriffiths jgriffiths commented Nov 16, 2023

This constant is the size of signatures (excluding the sighash byte) produced by wally when grinding. As wally (and libsecp256k1[-zkp]) always produce low-S signatures, the maximum size is 70 bytes plus the sighash byte for low-R signatures.

This affects the dummy witness stack function, making transaction fee estimation more accurate.

This constant is the size of signatures produced by wally when grinding.
As wally (and libsecp256k1[-zkp]) always produce low-S signatures, the
maximum size is 70 bytes plus the sighash byte for low-R signatures.

This affects the dummy witness stack function, making transaction fee
estimation more accurate.
@LeoComandini
Copy link
Contributor

utACK 168b676

@jgriffiths jgriffiths merged commit 168b676 into master Nov 17, 2023
7 checks passed
@jgriffiths jgriffiths deleted the low_r_sigs branch November 17, 2023 16:22
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