Skip to content

Conversation

@Daaiid
Copy link
Contributor

@Daaiid Daaiid commented Apr 8, 2025

Adds a hint that might have prevented #1749.

The different formats of the private key per algorithm is already mentioned in the struct documentation and the referenced RFC also documents this fact.

Here we add a breadcrumb inline on the specific field to that fact. This should tell people "Hey, this isn't the actual private key. It's still encoded."

The new generic struct already gives a neat hint towards that fact. Previously it was just a byte slice.

@tarcieri tarcieri merged commit 3552be9 into RustCrypto:master Apr 8, 2025
11 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