Skip to content

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

Open
strmci wants to merge 1 commit intoBitBoxSwiss:masterfrom
strmci:return_errors_instead_of_panicking
Open

firmware: return errors instead of panicking in Noise pairing#161
strmci wants to merge 1 commit intoBitBoxSwiss:masterfrom
strmci:return_errors_instead_of_panicking

Conversation

@strmci
Copy link

@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.
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.

1 participant

Comments