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

dsa: remove use of opaque-debug #572

Merged
merged 1 commit into from
Nov 2, 2022
Merged

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Nov 2, 2022

All of the Debug impls in this crate benefit from displaying something, including SigningKey which can display its associated VerifyingKey.

This commit switches to derived Debug for all types except SigningKey, where it displays the verifying_key field then uses finish_non_exhaustive to prevent displaying the secret component x.

They could probably benefit from some better formatting than what the derived implementation provides.

All of the `Debug` impls in this crate benefit from displaying
something, including `SigningKey` which can display its associated
`VerifyingKey`.

This commit switches to derived `Debug` for all types except
`SigningKey`, where it displays the `verifying_key` field then uses
`finish_non_exhaustive` to prevent displaying the secret component `x`.

They could probably benefit from some better formatting than what the
derived implementation provides.
@tarcieri tarcieri merged commit f0bfb16 into master Nov 2, 2022
@tarcieri tarcieri deleted the dsa/remove-opaque-debug branch November 2, 2022 15:12
@tarcieri tarcieri mentioned this pull request Jan 15, 2023
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