-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Migrate Tendermint PubKey types to the SDK #7008
Comments
yes, that works. Since ed25519 and sr25519 are imported libraries then you can build a wrapper around the library and not tendermint. This will further decouple the sdk from tendermint. |
Yes, this is what I've been trying to advocate for in the beginning haha |
I know @ebuchman had a few words to this approach. Should we doulbe check what they were? |
I'll update the issue description to just mention copying. Would be good to hear from @ebuchman too if we can reach him! |
I don't think I have strong opinions here other than concerns around keeping things in sync between repos. |
Before the copying begins is there anything that you would like to change about the interface or will the sdk still adhere to tendermints key interface? |
The
I would probably advocate for doing this with a different |
This has been fixed now it's just the byte representation, which could be removed. Will see about making this change.
Good point I'll see about fixing this before 0.34 |
Yeah, I would recommend to just remove it because it's underspecified. That works for regular pubkeys, but what about multisigs? That will need to be some encoded version. |
With regards to @marbar3778 comment #7047 (comment). I also feel it's better to migrate Secp256k1 first and make changes accordingly. |
Yes, the intention is to modify all the PubKeys making them 1) unsized and proto compatible and 2) updating address format for non-legacy keys. So my preference is to have all of them copied in. |
In support of #5694 and possibly #6928.
Copy the following
PubKey
types from Tendermint into the SDK and update references in code:PubKeySecp256k1
PubKeyEd25519
PubKeySr25519
The text was updated successfully, but these errors were encountered: