feat(identity): make Keypair and Publickey opaque#3866
feat(identity): make Keypair and Publickey opaque#3866mergify[bot] merged 35 commits intolibp2p:masterfrom
Keypair and Publickey opaque#3866Conversation
thomaseizinger
left a comment
There was a problem hiding this comment.
Direction looks good to me, a few minor comments!
Thanks for all your contributions :)
dariusc93
left a comment
There was a problem hiding this comment.
Didnt notice the PR. Its a great start here.
Since I am not able to make a comment on the line itself, In x25519.rs on line 129 make sure to change logic in X25519::linked so it is using PublicKey::try_into_ed25519
|
Thank you for the additional help in reviewing @dariusc93, much appreciated! :) |
thomaseizinger
left a comment
There was a problem hiding this comment.
Really good work, looking forward to merging this, thank you!
A few minor comments but direction looks good.
This comment was marked as resolved.
This comment was marked as resolved.
dariusc93
left a comment
There was a problem hiding this comment.
Cant comment on the line itself but on line 281 should be changed to KeypairInner::Ecdsa(key.into())
thomaseizinger
left a comment
There was a problem hiding this comment.
Awesome, I am excited to land this!
Only a few more minor things :)
|
This pull request has merge conflicts. Could you please resolve them @tcoratger? 🙏 |
thomaseizinger
left a comment
There was a problem hiding this comment.
Thanks!
This is a very exciting PR to land, it should make everything around Keypair and PublicKey much easier to use.
@thomaseizinger Thanks for your help, nice library to collaborate :) |
|
Hi! I've some API concerns about that change. It makes some of our code pretty hairy. Hope to discuss that problem and look for possible solutions! Thank you. |
Description
KeypairandPublickeyare rendered opaque:Keypairis replaced by a privateKeyPairInnerenum that is encapsulated inside theKeypairpub structPublickeyis replaced by a privatePublickeyInnerenum that is encapsulated inside thePublickeypub structResolves #3860.
Notes & open questions
Change checklist