@@ -2,6 +2,7 @@ syntax = "proto3";
22package cosmos.tx.signing.v1beta1 ;
33
44import "cosmos/base/crypto/v1beta1/crypto.proto" ;
5+ import "google/protobuf/any.proto" ;
56
67option go_package = "github.com/cosmos/cosmos-sdk/types/tx/signing" ;
78
@@ -33,43 +34,43 @@ message SignatureDescriptors {
3334// signature including the public key of the signer, signing modes and the signature
3435// itself. It is primarily used for coordinating signatures between clients.
3536message SignatureDescriptor {
36- // public_key is the public key of the signer
37- cosmos.base.crypto.v1beta1.PublicKey public_key = 1 ;
38-
39- Data data = 2 ;
40-
41- // sequence is the sequence of the account, which describes the
42- // number of committed transactions signed by a given address. It is used to prevent
43- // replay attacks.
44- uint64 sequence = 3 ;
45-
46- // Data represents signature data
47- message Data {
48- // sum is the oneof that specifies whether this represents single or multi-signature data
49- oneof sum {
50- // single represents a single signer
51- Single single = 1 ;
52-
53- // multi represents a multisig signer
54- Multi multi = 2 ;
55- }
56-
57- // Single is the signature data for a single signer
58- message Single {
59- // mode is the signing mode of the single signer
60- SignMode mode = 1 ;
61-
62- // signature is the raw signature bytes
63- bytes signature = 2 ;
64- }
65-
66- // Multi is the signature data for a multisig public key
67- message Multi {
68- // bitarray specifies which keys within the multisig are signing
69- cosmos.base.crypto.v1beta1.CompactBitArray bitarray = 1 ;
70-
71- // signatures is the signatures of the multi-signature
72- repeated Data signatures = 2 ;
37+ // public_key is the public key of the signer
38+ google.protobuf.Any public_key = 1 ;
39+
40+ Data data = 2 ;
41+
42+ // sequence is the sequence of the account, which describes the
43+ // number of committed transactions signed by a given address. It is used to prevent
44+ // replay attacks.
45+ uint64 sequence = 3 ;
46+
47+ // Data represents signature data
48+ message Data {
49+ // sum is the oneof that specifies whether this represents single or multi-signature data
50+ oneof sum {
51+ // single represents a single signer
52+ Single single = 1 ;
53+
54+ // multi represents a multisig signer
55+ Multi multi = 2 ;
56+ }
57+
58+ // Single is the signature data for a single signer
59+ message Single {
60+ // mode is the signing mode of the single signer
61+ SignMode mode = 1 ;
62+
63+ // signature is the raw signature bytes
64+ bytes signature = 2 ;
65+ }
66+
67+ // Multi is the signature data for a multisig public key
68+ message Multi {
69+ // bitarray specifies which keys within the multisig are signing
70+ cosmos.base.crypto.v1beta1.CompactBitArray bitarray = 1 ;
71+
72+ // signatures is the signatures of the multi-signature
73+ repeated Data signatures = 2 ;
74+ }
7375 }
74- }
7576}
0 commit comments