Skip to content

fix(ecdsa): correct error message for invalid vector.k in dev macro#1220

Merged
tarcieri merged 1 commit intoRustCrypto:masterfrom
GarmashAlex:fix/ecdsa-dev-error-msg-typo
Mar 27, 2026
Merged

fix(ecdsa): correct error message for invalid vector.k in dev macro#1220
tarcieri merged 1 commit intoRustCrypto:masterfrom
GarmashAlex:fix/ecdsa-dev-error-msg-typo

Conversation

@GarmashAlex
Copy link
Copy Markdown
Contributor

Cause: The error message in the new_signing_test macro incorrectly referred to "vector.m" when checking the ephemeral scalar k, which was a copy-paste error from the line below. This would confuse developers debugging test failures since the message doesn't match the actual field.

Changes: Fixed the error message in decode_scalar(vector.k).expect() to correctly reference "invalid vector.k" instead of "invalid vector.m".

@tarcieri tarcieri merged commit f1c060a into RustCrypto:master Mar 27, 2026
9 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