-
Notifications
You must be signed in to change notification settings - Fork 976
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(identity): add From
impls for specific keypair types
#3626
feat(identity): add From
impls for specific keypair types
#3626
Conversation
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.
One request, otherwise LGTM.
Can you add a changelog entry please and bump the patch version?
From
impls for specific keypair types
Sure, |
New one in |
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.
Slight adjustment, otherwise LGTM
identity/src/keypair.rs
Outdated
#[cfg(feature = "ecdsa")] | ||
impl From<crate::ecdsa::Keypair> for self::Keypair { | ||
fn from(kp: crate::ecdsa::Keypair) -> Self { | ||
#[allow(deprecated)] | ||
crate::Keypair::Ecdsa(kp) | ||
} | ||
} |
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.
#[cfg(feature = "ecdsa")] | |
impl From<crate::ecdsa::Keypair> for self::Keypair { | |
fn from(kp: crate::ecdsa::Keypair) -> Self { | |
#[allow(deprecated)] | |
crate::Keypair::Ecdsa(kp) | |
} | |
} | |
#[cfg(feature = "ecdsa")] | |
impl From<ecdsa::Keypair> for Keypair { | |
fn from(kp: ecdsa::Keypair) -> Self { | |
#[allow(deprecated)] | |
Keypair::Ecdsa(kp) | |
} | |
} |
I believe we can make this a bit more concise, same applies to the others.
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.
fixed
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.
Nice! Thank you for your work and patience :)
@mxinden Do you mind if I have a go at releasing this as soon as it is merged? |
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.
No objections to releasing, though I have a question below.
For the release process, I suggest removing the [unreleased]
, then merging master
into v0.51
(fast forward, no merge commit needed), and then releasing from there.
Sounds good. I started with a prepare PR here: #3626 (review) Once merged, I'll locally fast-forward merge master into |
As discussed in #3626 (review). Pull-Request: #3631.
Unfortunately, I couldn't finish the release because |
The PR is merged and |
My bad. Added the rust-libp2p-maintainers group just now.
I will get to it next week. @thomaseizinger feel free to race me to it in case you have time beforehand. |
🎉 first release by @thomaseizinger 🎉 |
Description
Closes #3618.
Notes & open questions
Change checklist