-
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
Multisig Display UX Improvements #3748
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3748 +/- ##
===========================================
- Coverage 61.4% 60.99% -0.41%
===========================================
Files 190 191 +1
Lines 14122 14174 +52
===========================================
- Hits 8671 8645 -26
- Misses 4894 4975 +81
+ Partials 557 554 -3 |
* [\#3738] Improve multisig UX: | ||
* `gaiacli keys show -o json` now includes constituent pubkeys, respective weights and threshold | ||
* `gaiacli keys show --show-multisig` now displays constituent pubkeys, respective weights and threshold | ||
* `gaiacli tx sign --validate-signatures` now displays multisig signers with their respective weights |
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.
💪 ++
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.
-o json
implies --show-multisig
then, doesn't it?
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.
yes
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.
A user can either 1. -o json
which will show multi-sig info OR 2. --show-multisig
which will show multisig info in plaintext (non-JSON).
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.
Much improved here! Thank you @alexanderbez! LGTM 👍
@@ -14,10 +14,11 @@ import ( | |||
|
|||
cmn "github.com/tendermint/tendermint/libs/common" | |||
|
|||
"github.com/cosmos/cosmos-sdk/client/keys" | |||
clientkeys "github.com/cosmos/cosmos-sdk/client/keys" |
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 remember to have seen this import being aliased with clkeys
somewhere else in the codebase. It'd be nice if we could stay consistent. Not a blocker though.
multiSigMsg = b.String() | ||
} | ||
|
||
fmt.Printf(" %d: %s\t\t\t[%s]%s%s\n", i, sigAddr.String(), sigSanity, multiSigHeader, multiSigMsg) | ||
} | ||
|
||
fmt.Println("") |
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't recally why we wanted to print an extra new line...
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.
Nihil obstat
client/keys
tocrypto/keys
multiInfo
type which includes constituent pubkeys and respective weights and thresholdgaiacli
docs wrt to multisigsgaiacli tx sign --validate-signatures
to include multisig infocloses: #3738
You can view the composition of a multisig via two ways:
gaiacli keys show multi1 -o json | prettyjson
gaiacli keys show multi1 --show-multisig
gaiacli tx sign --validate-signatures
now displays the following for multisig-based txs:/cc @zmanian
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added entries in
PENDING.md
with issue #rereviewed
Files changed
in the github PR explorerFor Admin Use: