-
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
R4R: Make gaiacli keys show
multisig-ready
#2554
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2554 +/- ##
==========================================
- Coverage 60.32% 60.3% -0.03%
==========================================
Files 150 150
Lines 8613 8613
==========================================
- Hits 5196 5194 -2
- Misses 3069 3071 +2
Partials 348 348 |
gaiacli keys show
multisig-ready
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.
Thanks @alessio! Left some minor feedback :)
client/keys/show.go
Outdated
@@ -18,30 +22,67 @@ const ( | |||
FlagPublicKey = "pubkey" | |||
// FlagBechPrefix defines a desired Bech32 prefix encoding for a key. | |||
FlagBechPrefix = "bech" | |||
|
|||
flagMultiSigThreshold = "multisig-threshold" |
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.
Is there a case where we'd want this exposed?
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 there is presently no case for it to be exposed.
) | ||
|
||
var _ keys.Info = (keys.Info)(nil) | ||
|
||
type multiSigKey struct { |
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.
Will multiSigKey
be used elsewhere, besides just via show
? If so, may I suggest to moving it to it's own file, even though it's fairly small.
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's presently not used elsewhere.
docs/sdk/clients.md
Outdated
gaiacli show -m K key1 key2...keyK | ||
``` | ||
|
||
`K` is the minimum number of private keys that must have signed the transactions that carry the generated public key. |
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.
Should be minimum weight, and each shown key should show its own weight.
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.
utACK 👍
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.
utACK
I think this is useful, and we can merge it, but I don't think this is sufficient. I think we'll also want users to be able to store named aliases of multisignature pubkeys in their local account DB - for easy tracking, minimal risk of mistakes, etc. - worth discussing the exact UX we want in a future issue.
One more thing to keep in mind: this does not handle multisig keys recursively, e.g. keyA = k{B + C} with C = k{D + E}, though I doubt that that would be helpful |
docs/
)PENDING.md
with issue #Files changed
in the github PR explorerFor Admin Use: