-
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
Generalise auth/types.StdSignature #4507
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4507 +/- ##
==========================================
+ Coverage 53.17% 53.18% +0.01%
==========================================
Files 259 259
Lines 16191 16193 +2
==========================================
+ Hits 8610 8613 +3
+ Misses 6935 6934 -1
Partials 646 646 |
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
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.
minor changes requested
simSig := StdSignature{PubKey: pubkey} | ||
if len(sig.Signature) == 0 { | ||
if len(sig.GetSignature()) == 0 { |
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.
what about creating a new IsEmpty()
method to the interface ?
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 the only occurrence - plus, IsEmpty()
might turn out to be ambiguous. What is the emptiness check being carried upon? Should IsEmpty()
return true when signature is not present or only when both the sig and the key are nil?
525b6d3
to
d11aca7
Compare
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.
ACK
This reverts commit a32d5a4.
New Signature interface available in the top level types package. auth.StdSignature implements such interface. User defined auth module can now define their own custom signature types. Work carried out in the context of the following issues: - cosmos#4488 - cosmos#4487
This reverts commit a32d5a4.
New Signature interface available in the top level types package.
auth.StdSignature implements such interface. User defined auth module can now
define their own custom signature types.
Work carried out in the context of the following issues:
Decouple auth module from other SDK top-level core packages #4488
Remove X package dependency - beside exported package #4487
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry:
clog add [section] [stanza] [message]
rereviewed
Files changed
in the github PR explorerFor Admin Use: