Skip to content

Fix TaggedPublicKey::verify panic on invalid signature length#3708

Merged
jsdanielh merged 1 commit into
albatrossfrom
nibhar/tagged_pk
Apr 22, 2026
Merged

Fix TaggedPublicKey::verify panic on invalid signature length#3708
jsdanielh merged 1 commit into
albatrossfrom
nibhar/tagged_pk

Conversation

@jsdanielh

Copy link
Copy Markdown
Member

Replace unwrap() with a let-else pattern so verify() returns false instead of panicking when given a signature with incorrect length. Add test for invalid signature length rejection.

Pull request checklist

  • All tests pass. The project builds and runs.
  • I have resolved any merge conflicts.
  • I have resolved all clippy and rustfmt warnings.

Replace unwrap() with let-else pattern so verify() returns false
instead of panicking when given a signature with incorrect length.
Add test for invalid signature length rejection.
@jsdanielh
jsdanielh merged commit 807ee8e into albatross Apr 22, 2026
6 of 7 checks passed
@jsdanielh
jsdanielh deleted the nibhar/tagged_pk branch April 22, 2026 00:31
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