Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto.Ed25519.KeyPair: return an error rather than assert #22944

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

jedisct1
Copy link
Contributor

When runtime safety is turned on, Ed25519.fromSecretKey() can currently hit an assertion if the format of the secret key is invalid.

Return an error instead, so that applications can recover.

When runtime safety is turned on, `Ed25519.fromSecretKey()` can
currently hit an assertion if the format of the secret key is
invalid.

Return an error instead, so that applications can recover.
@alexrp alexrp merged commit 65e7ede into ziglang:master Feb 21, 2025
9 checks passed
@jedisct1 jedisct1 deleted the ed25519-error-rather-than-assert branch February 21, 2025 23:48
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