Skip to content

fix: assert in crypto layer replaced by proper error handling - #2746

Merged
SimonRastikian merged 13 commits into
mainfrom
simon/assert-no-panic
Apr 13, 2026
Merged

fix: assert in crypto layer replaced by proper error handling#2746
SimonRastikian merged 13 commits into
mainfrom
simon/assert-no-panic

Conversation

@SimonRastikian

Copy link
Copy Markdown
Contributor

Closes #2745

@SimonRastikian
SimonRastikian changed the base branch from main to simon/getting-rid-of-indexing-slicing April 8, 2026 09:02

@gilcu3 gilcu3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor change requested, as the current code will accepts what was previously rejected. If it is too cumbersome to use Errors there, it is strictly better to leave the asserts, unless we are convinced these were not needed.

Comment thread crates/threshold-signatures/src/crypto/proofs/strobe.rs
Comment thread crates/threshold-signatures/src/crypto/proofs/strobe.rs
gilcu3
gilcu3 previously approved these changes Apr 8, 2026

@gilcu3 gilcu3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

@SimonRastikian SimonRastikian self-assigned this Apr 8, 2026
Base automatically changed from simon/getting-rid-of-indexing-slicing to main April 13, 2026 11:49
@SimonRastikian
SimonRastikian dismissed gilcu3’s stale review April 13, 2026 11:49

The base branch was changed.

@SimonRastikian
SimonRastikian added this pull request to the merge queue Apr 13, 2026
Merged via the queue into main with commit 8b1d3f4 Apr 13, 2026
51 of 52 checks passed
@SimonRastikian
SimonRastikian deleted the simon/assert-no-panic branch April 13, 2026 13:26
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.

Asserts in the Crypto implementation should transform into ErrorHandling

3 participants