You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As already announced in some deprecation warnings, we want to encapsulate the KeyPair and PublicKey types to not expose enums anymore but just structs. This allows us to contain the cfg statements in our code and not bother our users with it.
Are you planning to do it yourself in a pull request?
Maybe, unless someone beats me to it.
The text was updated successfully, but these errors were encountered:
That breaks some of our code: it was converting from libp2p:_identity::Keypair to our own KeyPair structure that defines stricter and simpler serialization.
But now, we're not able to match on the key type. Instead, we have to use try_into 3 times, which internally uses match 3 times instead of a single time. And the code looks... harder to read.
Description
As already announced in some deprecation warnings, we want to encapsulate the
KeyPair
andPublicKey
types to not expose enums anymore but just structs. This allows us to contain thecfg
statements in our code and not bother our users with it.Are you planning to do it yourself in a pull request?
Maybe, unless someone beats me to it.
The text was updated successfully, but these errors were encountered: