-
Notifications
You must be signed in to change notification settings - Fork 28
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
Change pubkey/privatekey type name from ostracon
to tendermint
#445
Comments
ostracon
to `tendermintostracon
to tendermint
…a#445) 1. The private key may remain "pstracon/PrivKeyXxx" as it's never exposed to outside world. However, it makes no sense to keep the ostracon prefix even with asymmetric naming, so it should be modified with "tendermint/PrivKeyXxx" 2. BLS12 and Composite key types are not compatible with current Cosmos assets to begin with. To make this clear, these Ostracon-specific prefixes are left as "ostracon/".
@zemyblue Can the modified PR be tested with cosmjs, keplr and other modules mentioned above to make sure the modification works well before merging it into |
Thank you. I also think so. We don't need to change the BLS's key name, composite keys also. And I am testing we can use |
I see. So we can't confirm it works yet now, can it? |
Yes, we can. I think #447 PR does not have any problem. And I already ready the PR to apply this change in |
…447) 1. The private key may remain "pstracon/PrivKeyXxx" as it's never exposed to outside world. However, it makes no sense to keep the ostracon prefix even with asymmetric naming, so it should be modified with "tendermint/PrivKeyXxx" 2. BLS12 and Composite key types are not compatible with current Cosmos assets to begin with. To make this clear, these Ostracon-specific prefixes are left as "ostracon/".
Summary
Change pubkey/privatekey type name from
ostracon
totendermint
Problem Definition
secp256k1
https://github.com/line/ostracon/blob/adb46f33e9eda4115a0e85e6c30f4b6bfe04789f/crypto/secp256k1/secp256k1.go#L20-L21
ed25519
https://github.com/line/ostracon/blob/adb46f33e9eda4115a0e85e6c30f4b6bfe04789f/crypto/ed25519/ed25519.go#L23-L24
sr25519
https://github.com/line/ostracon/blob/adb46f33e9eda4115a0e85e6c30f4b6bfe04789f/crypto/sr25519/encoding.go#L11-L12
etc
And maybe we need to change protobuf data or path.
Proposal
We changed the key type name from #287 . But this change make to be difficult to use other cosmos-sdk compatibility tools for example cosmjs, keplr, pingpub and etc. But if we revert this type name, we can use it without any porting.
So I proposal this change.
For Admin Use
The text was updated successfully, but these errors were encountered: