-
Notifications
You must be signed in to change notification settings - Fork 155
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
feat: switch to version 2.0 (pre) of the signature crate #217
Conversation
Converted to draft to prevent merging the PR with |
0cd2049
to
c28a2c1
Compare
FYI, I'm cutting a crate prerelease here shortly: RustCrypto/traits#1145 |
@dignifiedquire @tarcieri gracious ping for the review. |
@lumag can you rebase? |
@tarcieri rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine now as a first pass.
Curious what @dignifiedquire thinks about another breaking release so soon.
We should coordinate with ed25519-dalek
and the https://github.com/RustCrypto/signatures crates to have signature
v2.0 releases ready at the same time.
|
@dignifiedquire yeah, the plan is to coordinate with I think everything on |
@lumag can you rebase please? |
Done |
@lumag looks good other than the one nit about the RNG trait bounds |
Rework the crate to implement traits from the preview of the signature crate. Use Vec<u8> as Self::Repr type. Signed-off-by: Dmitry Baryshkov <[email protected]>
Drop the hand-crafted From traits, replacing them with the implementation of the Keypair trait. Signed-off-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Dmitry Baryshkov <[email protected]>
Now that the signature's hazmat-preview feature has matured, enable corresponding interfaces by default and drop the 'hazmat' feature. Signed-off-by: Dmitry Baryshkov <[email protected]>
Allow generating random SigningKey structs directly. Signed-off-by: Dmitry Baryshkov <[email protected]>
@tarcieri Added the `?Sized` where it seems suitable.
|
The PRs for updating the This is the only remaining one. I'd suggest we merge this soon so we can further iterate on |
Rework the crate to implement traits from the preview of the signature crate. Use Vec as Self::Repr type.
Note: I'm yet to see how will this impact the code in my projects. But for the evaluation I'd first need
ecdsa
/p384
to be updated.cc @tarcieri @dignifiedquire