-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Update tm pubkey references #7102
Conversation
any update on this? |
ef1692b
to
a33dd58
Compare
@alexanderbez @aaronc it seems this PR is failing because it is trying to use the sdk's ed25519 in places tendermint's ed25519 key is supposed to be used. Any idea why this is the case being that they are both EDIT: IGNORE |
Codecov Report
@@ Coverage Diff @@
## master #7102 +/- ##
==========================================
+ Coverage 54.51% 54.74% +0.22%
==========================================
Files 566 563 -3
Lines 38755 38624 -131
==========================================
+ Hits 21128 21145 +17
+ Misses 15897 15748 -149
- Partials 1730 1731 +1 |
@@ -19,6 +19,8 @@ var _ crypto.PrivKey = PrivKey{} | |||
const ( | |||
PrivKeySize = 32 | |||
keyType = "secp256k1" | |||
PrivKeyName = "tendermint/PrivKeySecp256k1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to keep backwards compatibility
It looks like we're gonna stick with tendermint But then that raises another issue with regards to defining pubkeys proto types: #7109. cosmos-sdk/crypto/keys/keys_test.go Line 98 in ad81bd4
/~https://github.com/tendermint/tendermint/blob/9e98c74e3c00962a02732da3486b6f4d84ae5aaf/crypto/ed25519/ed25519.go#L165 instead of using Type() and Bytes() methods. @marbar3778 would there be a way to address this in tendermint?
|
I think more or less this PR can be moved for review. Unless we want to further decouple areas that can be decoupled from tendermint?c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm overall
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
aaron asked to add ed25519 back. Will add it back.. |
This reverts commit 66d2e1d.
…smos-sdk into sahith/update-keys-ref
as per discussion on the sdk call, we will be removing ed25519 & sr25519 keys for now. |
…smos-sdk into sahith/update-keys-ref
* Update pubkey references * Update ledger_mock * Migrate encoding from tm * Update pubkey prefix * revert ed25519 to tendermint key * random account revert * Revert ed25519 references * revert secp key name * test revert * remove ed25519 * Update x/staking/types/validator.go Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com> * Revert "remove ed25519" This reverts commit 66d2e1d. * remove ed25519 & sr25519 * Apply suggestions from code review * remove codec Co-authored-by: Marko Baricevic <marbar3778@yahoo.com> Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
Description
This PR updates pubkey references from tendermint to
sdk/crypto/keys/*
closes: #7008
ref: #7047
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes