Ergonomics of new Keypair #3983
-
I'm updating some dependencies. I have a situation, where I have a libp2p keypair and depending on its type need to convert it to a new type modifying the encoding. Essentially I used to match on the It seems we now need to use the Because these functions consume Some questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@thomaseizinger can you comment here? |
Beta Was this translation helpful? Give feedback.
-
oh woops, lol. We are probably upgrading the same code too. Ahaha. Sorry for the noise. |
Beta Was this translation helpful? Give feedback.
Sure, we have an open issue about this: #3649
@divagant-martian brought this to my attention already! We have a
KeyType
enum now, it just needs to be used for theKeyPair
as well.I haven't gotten around to it yet unfortunately. PRs welcome! Other ideas too but I think this one is a decent trade-off :)