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

ed25519-dalek: hide secret in SigningKey's Debug impl #592

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

tarcieri
Copy link
Contributor

Uses finish_non_exhaustive in lieu of printing the secret_key component of a SigningKey, only showing the corresponding verifying_key field which can be used to identify the public key.

Closes #591

@tarcieri
Copy link
Contributor Author

tarcieri commented Oct 31, 2023

Oh joy, we're getting hit by an unrelated nightly regression that misidentifies unused imports.

Let me open a separate PR for that. Edit: opened #593

Uses `finish_non_exhaustive` in lieu of printing the `secret_key`
component of a `SigningKey`, only showing the corresponding
`verifying_key` field which can be used to identify the public key.

Closes #591
@tarcieri tarcieri force-pushed the ed25519-dalek/better-signingkey-debug-impl branch from 53308d2 to e799c74 Compare October 31, 2023 15:40
@tarcieri
Copy link
Contributor Author

Rebased. Hopefully that fixes the build.

@rozbb rozbb merged commit 78a86f1 into main Oct 31, 2023
37 checks passed
@tarcieri tarcieri deleted the ed25519-dalek/better-signingkey-debug-impl branch October 31, 2023 19:52
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.

Debug implementation of SigningKey will print secret key material
3 participants