-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
adr-028 address generation #8415
Conversation
This pull request introduces 1 alert when merging 5eb4e97 into 31fdee0 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 90a0a39 into e2f510a - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #8415 +/- ##
==========================================
+ Coverage 61.46% 61.48% +0.02%
==========================================
Files 656 658 +2
Lines 37542 37569 +27
==========================================
+ Hits 23074 23100 +26
Misses 12059 12059
- Partials 2409 2410 +1
|
09592af
to
98cdf6d
Compare
|
Let's continue a discussion re |
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
// It's needed for Any serialization and SDK compatibility. | ||
// It must not be used in a non Tendermint key context because it doesn't implement | ||
// ADR-28. Nevertheless, you will like to use ed25519 in app user level | ||
// then you must create a new proto message and follow ADR-28 for Address construction. |
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.
I think it could be useful to explicity say in the comments how the address is formed for these pubkeys.
hasher := sha256.New() | ||
hasher.Write(unsafeStrToByteArray(typ)) | ||
th := hasher.Sum(nil) |
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.
Let's cache this?
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.
It can be cached in a public key structure, not here. O you have some better idea?
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.
Looks good overall! Just small nits and tests refactoring request.
I was also wondering about Submodule
account addresses, don't we wanna add that too in here?
Co-authored-by: Marie Gauthier <[email protected]>
Co-authored-by: Marie Gauthier <[email protected]>
@@ -0,0 +1,90 @@ | |||
package address |
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.
Can we use test packages, please?
package address | |
package address_test |
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.
These are unit tests.
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.
I was also wondering about
Submodule
account addresses, don't we wanna add that too in here?
It doesn't seem like this question has been addressed.
Lint command is still failing.
Sorry, I missed it. You mean the The linter was complaining locally re |
Description
ADR-028 implementation
closes: ADR-028 address generation algorithm #8414
closes: Extensible address format #5694
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