Skip to content

firmware: return errors instead of panicking in Noise pairing#161

Merged
benma merged 1 commit intoBitBoxSwiss:masterfrom
strmci:return_errors_instead_of_panicking
Mar 2, 2026
Merged

firmware: return errors instead of panicking in Noise pairing#161
benma merged 1 commit intoBitBoxSwiss:masterfrom
strmci:return_errors_instead_of_panicking

Conversation

@strmci
Copy link
Contributor

@strmci strmci commented Feb 17, 2026

Replace panic-based error handling with normal error returns. This prevents process crashes when the device returns malformed or truncated Noise handshake responses (for example: "noise: message is too short") and lets callers handle initialization failures gracefully.

Replace panic-based error handling  with normal error
returns. This prevents process crashes when the device returns
malformed or truncated Noise handshake responses (for
example: "noise: message is too short") and lets callers handle
initialization failures gracefully.
@benma benma merged commit 9343ab5 into BitBoxSwiss:master Mar 2, 2026
3 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