feat: switch to version 2.0 (pre) of the signature crate#217
feat: switch to version 2.0 (pre) of the signature crate#217tarcieri merged 5 commits intoRustCrypto:masterfrom
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 |
tarcieri
left a comment
There was a problem hiding this comment.
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<u8>` as `Self::Repr` type. Drop the hand-crafted `From` traits, replacing them with the implementation of the `Keypair` trait. Signed-off-by: Dmitry Baryshkov <[email protected]>
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/p384to be updated.cc @tarcieri @dignifiedquire