-
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
Update auth cli commands #6717
Update auth cli commands #6717
Changes from all commits
9b4a4a1
eaeef54
b2c8997
5abd7f1
0a80caa
c2b4cc7
d9bbef8
d1eb8c1
2d5335b
cc2b7e0
688e9cd
d4cbf42
425cbfe
27a57a5
64f7aaf
987af37
167df15
8f82734
baebff4
ed36414
3122b59
57c8798
39bc7f4
1afa4d3
d101c34
012e320
e955ca6
3dec8f7
7a42cfe
ac46abe
ff733fc
30bca25
b390579
695b77d
4be2e51
b4f8c77
6fe5838
467d692
3a0efa5
6d3297e
15613cf
4f2b71a
819aa66
07f22b2
e004e1b
1fe8088
2e2099d
88bdb62
9f04601
013c481
1252fbf
72d3982
f95810a
28bbc0f
5aa68e7
62ff121
5b3c906
6c1a0fa
29dab69
750c5ac
074ee7b
0c94f78
7771328
423cbcb
d9b15df
0136c11
2073e3f
af89c16
c5d7181
c6a7353
ecf0679
8a4c583
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
syntax = "proto3"; | ||
package cosmos.tx.signing; | ||
|
||
import "cosmos/crypto/crypto.proto"; | ||
|
||
option go_package = "github.com/cosmos/cosmos-sdk/types/tx/signing"; | ||
|
||
// SignMode represents a signing mode with its own security guarantees | ||
|
@@ -20,3 +22,49 @@ enum SignMode { | |
// Amino JSON and will be removed in the future | ||
SIGN_MODE_LEGACY_AMINO_JSON = 127; | ||
} | ||
|
||
// SignatureDescriptors wraps multiple SignatureDescriptor's. | ||
message SignatureDescriptors { | ||
// signatures are the signature descriptors | ||
repeated SignatureDescriptor signatures = 1; | ||
} | ||
|
||
// SignatureDescriptor is a convenience type which represents the full data for a | ||
// signature including the public key of the signer, signing modes and the signature | ||
// itself. It is primarily used for coordinating signatures between clients. | ||
message SignatureDescriptor { | ||
// public_key is the public key of the signer | ||
cosmos.crypto.PublicKey public_key = 1; | ||
|
||
Data data = 2; | ||
|
||
// Data represents signature data | ||
message Data { | ||
// sum is the oneof that specifies whether this represents single or multi-signature data | ||
oneof sum { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We already have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not without adding a field on ModeInfo that will be unused in transactions. The challenge is that you still need to distinguish between single and multisigs. |
||
// single represents a single signer | ||
Single single = 1; | ||
|
||
// multi represents a multisig signer | ||
Multi multi = 2; | ||
} | ||
|
||
// Single is the signature data for a single signer | ||
message Single { | ||
// mode is the signing mode of the single signer | ||
cosmos.tx.signing.SignMode mode = 1; | ||
|
||
// signature is the raw signature bytes | ||
bytes signature = 2; | ||
} | ||
|
||
// Multi is the signature data for a multisig public key | ||
message Multi { | ||
// bitarray specifies which keys within the multisig are signing | ||
cosmos.crypto.CompactBitArray bitarray = 1; | ||
|
||
// signatures is the signatures of the multi-signature | ||
repeated Data signatures = 2; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 super similar to SignatureV2. Could we remove SignatureV2 and use this one everywhere?
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.
That's fine we can. But it will probably be a decent size refactor. Are you fine with that in this PR?