github.com/Finschia/finschia-sdk@v0.48.1/types/tx/signing/signing.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/tx/signing/v1beta1/signing.proto
     3  
     4  package signing
     5  
     6  import (
     7  	fmt "fmt"
     8  	types "github.com/Finschia/finschia-sdk/codec/types"
     9  	types1 "github.com/Finschia/finschia-sdk/crypto/types"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	io "io"
    12  	math "math"
    13  	math_bits "math/bits"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  // SignMode represents a signing mode with its own security guarantees.
    28  type SignMode int32
    29  
    30  const (
    31  	// SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
    32  	// rejected
    33  	SignMode_SIGN_MODE_UNSPECIFIED SignMode = 0
    34  	// SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
    35  	// verified with raw bytes from Tx
    36  	SignMode_SIGN_MODE_DIRECT SignMode = 1
    37  	// SIGN_MODE_TEXTUAL is a future signing mode that will verify some
    38  	// human-readable textual representation on top of the binary representation
    39  	// from SIGN_MODE_DIRECT
    40  	SignMode_SIGN_MODE_TEXTUAL SignMode = 2
    41  	// SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
    42  	// Amino JSON and will be removed in the future
    43  	SignMode_SIGN_MODE_LEGACY_AMINO_JSON SignMode = 127
    44  	// SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos
    45  	// SDK. Ref: https://eips.ethereum.org/EIPS/eip-191
    46  	//
    47  	// Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant,
    48  	// but is not implemented on the SDK by default. To enable EIP-191, you need
    49  	// to pass a custom `TxConfig` that has an implementation of
    50  	// `SignModeHandler` for EIP-191. The SDK may decide to fully support
    51  	// EIP-191 in the future.
    52  	//
    53  	// Since: cosmos-sdk 0.45.2
    54  	SignMode_SIGN_MODE_EIP_191 SignMode = 191
    55  )
    56  
    57  var SignMode_name = map[int32]string{
    58  	0:   "SIGN_MODE_UNSPECIFIED",
    59  	1:   "SIGN_MODE_DIRECT",
    60  	2:   "SIGN_MODE_TEXTUAL",
    61  	127: "SIGN_MODE_LEGACY_AMINO_JSON",
    62  	191: "SIGN_MODE_EIP_191",
    63  }
    64  
    65  var SignMode_value = map[string]int32{
    66  	"SIGN_MODE_UNSPECIFIED":       0,
    67  	"SIGN_MODE_DIRECT":            1,
    68  	"SIGN_MODE_TEXTUAL":           2,
    69  	"SIGN_MODE_LEGACY_AMINO_JSON": 127,
    70  	"SIGN_MODE_EIP_191":           191,
    71  }
    72  
    73  func (x SignMode) String() string {
    74  	return proto.EnumName(SignMode_name, int32(x))
    75  }
    76  
    77  func (SignMode) EnumDescriptor() ([]byte, []int) {
    78  	return fileDescriptor_9a54958ff3d0b1b9, []int{0}
    79  }
    80  
    81  // SignatureDescriptors wraps multiple SignatureDescriptor's.
    82  type SignatureDescriptors struct {
    83  	// signatures are the signature descriptors
    84  	Signatures []*SignatureDescriptor `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
    85  }
    86  
    87  func (m *SignatureDescriptors) Reset()         { *m = SignatureDescriptors{} }
    88  func (m *SignatureDescriptors) String() string { return proto.CompactTextString(m) }
    89  func (*SignatureDescriptors) ProtoMessage()    {}
    90  func (*SignatureDescriptors) Descriptor() ([]byte, []int) {
    91  	return fileDescriptor_9a54958ff3d0b1b9, []int{0}
    92  }
    93  func (m *SignatureDescriptors) XXX_Unmarshal(b []byte) error {
    94  	return m.Unmarshal(b)
    95  }
    96  func (m *SignatureDescriptors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    97  	if deterministic {
    98  		return xxx_messageInfo_SignatureDescriptors.Marshal(b, m, deterministic)
    99  	} else {
   100  		b = b[:cap(b)]
   101  		n, err := m.MarshalToSizedBuffer(b)
   102  		if err != nil {
   103  			return nil, err
   104  		}
   105  		return b[:n], nil
   106  	}
   107  }
   108  func (m *SignatureDescriptors) XXX_Merge(src proto.Message) {
   109  	xxx_messageInfo_SignatureDescriptors.Merge(m, src)
   110  }
   111  func (m *SignatureDescriptors) XXX_Size() int {
   112  	return m.Size()
   113  }
   114  func (m *SignatureDescriptors) XXX_DiscardUnknown() {
   115  	xxx_messageInfo_SignatureDescriptors.DiscardUnknown(m)
   116  }
   117  
   118  var xxx_messageInfo_SignatureDescriptors proto.InternalMessageInfo
   119  
   120  func (m *SignatureDescriptors) GetSignatures() []*SignatureDescriptor {
   121  	if m != nil {
   122  		return m.Signatures
   123  	}
   124  	return nil
   125  }
   126  
   127  // SignatureDescriptor is a convenience type which represents the full data for
   128  // a signature including the public key of the signer, signing modes and the
   129  // signature itself. It is primarily used for coordinating signatures between
   130  // clients.
   131  type SignatureDescriptor struct {
   132  	// public_key is the public key of the signer
   133  	PublicKey *types.Any                `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
   134  	Data      *SignatureDescriptor_Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
   135  	// sequence is the sequence of the account, which describes the
   136  	// number of committed transactions signed by a given address. It is used to prevent
   137  	// replay attacks.
   138  	Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
   139  }
   140  
   141  func (m *SignatureDescriptor) Reset()         { *m = SignatureDescriptor{} }
   142  func (m *SignatureDescriptor) String() string { return proto.CompactTextString(m) }
   143  func (*SignatureDescriptor) ProtoMessage()    {}
   144  func (*SignatureDescriptor) Descriptor() ([]byte, []int) {
   145  	return fileDescriptor_9a54958ff3d0b1b9, []int{1}
   146  }
   147  func (m *SignatureDescriptor) XXX_Unmarshal(b []byte) error {
   148  	return m.Unmarshal(b)
   149  }
   150  func (m *SignatureDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   151  	if deterministic {
   152  		return xxx_messageInfo_SignatureDescriptor.Marshal(b, m, deterministic)
   153  	} else {
   154  		b = b[:cap(b)]
   155  		n, err := m.MarshalToSizedBuffer(b)
   156  		if err != nil {
   157  			return nil, err
   158  		}
   159  		return b[:n], nil
   160  	}
   161  }
   162  func (m *SignatureDescriptor) XXX_Merge(src proto.Message) {
   163  	xxx_messageInfo_SignatureDescriptor.Merge(m, src)
   164  }
   165  func (m *SignatureDescriptor) XXX_Size() int {
   166  	return m.Size()
   167  }
   168  func (m *SignatureDescriptor) XXX_DiscardUnknown() {
   169  	xxx_messageInfo_SignatureDescriptor.DiscardUnknown(m)
   170  }
   171  
   172  var xxx_messageInfo_SignatureDescriptor proto.InternalMessageInfo
   173  
   174  func (m *SignatureDescriptor) GetPublicKey() *types.Any {
   175  	if m != nil {
   176  		return m.PublicKey
   177  	}
   178  	return nil
   179  }
   180  
   181  func (m *SignatureDescriptor) GetData() *SignatureDescriptor_Data {
   182  	if m != nil {
   183  		return m.Data
   184  	}
   185  	return nil
   186  }
   187  
   188  func (m *SignatureDescriptor) GetSequence() uint64 {
   189  	if m != nil {
   190  		return m.Sequence
   191  	}
   192  	return 0
   193  }
   194  
   195  // Data represents signature data
   196  type SignatureDescriptor_Data struct {
   197  	// sum is the oneof that specifies whether this represents single or multi-signature data
   198  	//
   199  	// Types that are valid to be assigned to Sum:
   200  	//	*SignatureDescriptor_Data_Single_
   201  	//	*SignatureDescriptor_Data_Multi_
   202  	Sum isSignatureDescriptor_Data_Sum `protobuf_oneof:"sum"`
   203  }
   204  
   205  func (m *SignatureDescriptor_Data) Reset()         { *m = SignatureDescriptor_Data{} }
   206  func (m *SignatureDescriptor_Data) String() string { return proto.CompactTextString(m) }
   207  func (*SignatureDescriptor_Data) ProtoMessage()    {}
   208  func (*SignatureDescriptor_Data) Descriptor() ([]byte, []int) {
   209  	return fileDescriptor_9a54958ff3d0b1b9, []int{1, 0}
   210  }
   211  func (m *SignatureDescriptor_Data) XXX_Unmarshal(b []byte) error {
   212  	return m.Unmarshal(b)
   213  }
   214  func (m *SignatureDescriptor_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   215  	if deterministic {
   216  		return xxx_messageInfo_SignatureDescriptor_Data.Marshal(b, m, deterministic)
   217  	} else {
   218  		b = b[:cap(b)]
   219  		n, err := m.MarshalToSizedBuffer(b)
   220  		if err != nil {
   221  			return nil, err
   222  		}
   223  		return b[:n], nil
   224  	}
   225  }
   226  func (m *SignatureDescriptor_Data) XXX_Merge(src proto.Message) {
   227  	xxx_messageInfo_SignatureDescriptor_Data.Merge(m, src)
   228  }
   229  func (m *SignatureDescriptor_Data) XXX_Size() int {
   230  	return m.Size()
   231  }
   232  func (m *SignatureDescriptor_Data) XXX_DiscardUnknown() {
   233  	xxx_messageInfo_SignatureDescriptor_Data.DiscardUnknown(m)
   234  }
   235  
   236  var xxx_messageInfo_SignatureDescriptor_Data proto.InternalMessageInfo
   237  
   238  type isSignatureDescriptor_Data_Sum interface {
   239  	isSignatureDescriptor_Data_Sum()
   240  	MarshalTo([]byte) (int, error)
   241  	Size() int
   242  }
   243  
   244  type SignatureDescriptor_Data_Single_ struct {
   245  	Single *SignatureDescriptor_Data_Single `protobuf:"bytes,1,opt,name=single,proto3,oneof" json:"single,omitempty"`
   246  }
   247  type SignatureDescriptor_Data_Multi_ struct {
   248  	Multi *SignatureDescriptor_Data_Multi `protobuf:"bytes,2,opt,name=multi,proto3,oneof" json:"multi,omitempty"`
   249  }
   250  
   251  func (*SignatureDescriptor_Data_Single_) isSignatureDescriptor_Data_Sum() {}
   252  func (*SignatureDescriptor_Data_Multi_) isSignatureDescriptor_Data_Sum()  {}
   253  
   254  func (m *SignatureDescriptor_Data) GetSum() isSignatureDescriptor_Data_Sum {
   255  	if m != nil {
   256  		return m.Sum
   257  	}
   258  	return nil
   259  }
   260  
   261  func (m *SignatureDescriptor_Data) GetSingle() *SignatureDescriptor_Data_Single {
   262  	if x, ok := m.GetSum().(*SignatureDescriptor_Data_Single_); ok {
   263  		return x.Single
   264  	}
   265  	return nil
   266  }
   267  
   268  func (m *SignatureDescriptor_Data) GetMulti() *SignatureDescriptor_Data_Multi {
   269  	if x, ok := m.GetSum().(*SignatureDescriptor_Data_Multi_); ok {
   270  		return x.Multi
   271  	}
   272  	return nil
   273  }
   274  
   275  // XXX_OneofWrappers is for the internal use of the proto package.
   276  func (*SignatureDescriptor_Data) XXX_OneofWrappers() []interface{} {
   277  	return []interface{}{
   278  		(*SignatureDescriptor_Data_Single_)(nil),
   279  		(*SignatureDescriptor_Data_Multi_)(nil),
   280  	}
   281  }
   282  
   283  // Single is the signature data for a single signer
   284  type SignatureDescriptor_Data_Single struct {
   285  	// mode is the signing mode of the single signer
   286  	Mode SignMode `protobuf:"varint,1,opt,name=mode,proto3,enum=cosmos.tx.signing.v1beta1.SignMode" json:"mode,omitempty"`
   287  	// signature is the raw signature bytes
   288  	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
   289  }
   290  
   291  func (m *SignatureDescriptor_Data_Single) Reset()         { *m = SignatureDescriptor_Data_Single{} }
   292  func (m *SignatureDescriptor_Data_Single) String() string { return proto.CompactTextString(m) }
   293  func (*SignatureDescriptor_Data_Single) ProtoMessage()    {}
   294  func (*SignatureDescriptor_Data_Single) Descriptor() ([]byte, []int) {
   295  	return fileDescriptor_9a54958ff3d0b1b9, []int{1, 0, 0}
   296  }
   297  func (m *SignatureDescriptor_Data_Single) XXX_Unmarshal(b []byte) error {
   298  	return m.Unmarshal(b)
   299  }
   300  func (m *SignatureDescriptor_Data_Single) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   301  	if deterministic {
   302  		return xxx_messageInfo_SignatureDescriptor_Data_Single.Marshal(b, m, deterministic)
   303  	} else {
   304  		b = b[:cap(b)]
   305  		n, err := m.MarshalToSizedBuffer(b)
   306  		if err != nil {
   307  			return nil, err
   308  		}
   309  		return b[:n], nil
   310  	}
   311  }
   312  func (m *SignatureDescriptor_Data_Single) XXX_Merge(src proto.Message) {
   313  	xxx_messageInfo_SignatureDescriptor_Data_Single.Merge(m, src)
   314  }
   315  func (m *SignatureDescriptor_Data_Single) XXX_Size() int {
   316  	return m.Size()
   317  }
   318  func (m *SignatureDescriptor_Data_Single) XXX_DiscardUnknown() {
   319  	xxx_messageInfo_SignatureDescriptor_Data_Single.DiscardUnknown(m)
   320  }
   321  
   322  var xxx_messageInfo_SignatureDescriptor_Data_Single proto.InternalMessageInfo
   323  
   324  func (m *SignatureDescriptor_Data_Single) GetMode() SignMode {
   325  	if m != nil {
   326  		return m.Mode
   327  	}
   328  	return SignMode_SIGN_MODE_UNSPECIFIED
   329  }
   330  
   331  func (m *SignatureDescriptor_Data_Single) GetSignature() []byte {
   332  	if m != nil {
   333  		return m.Signature
   334  	}
   335  	return nil
   336  }
   337  
   338  // Multi is the signature data for a multisig public key
   339  type SignatureDescriptor_Data_Multi struct {
   340  	// bitarray specifies which keys within the multisig are signing
   341  	Bitarray *types1.CompactBitArray `protobuf:"bytes,1,opt,name=bitarray,proto3" json:"bitarray,omitempty"`
   342  	// signatures is the signatures of the multi-signature
   343  	Signatures []*SignatureDescriptor_Data `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
   344  }
   345  
   346  func (m *SignatureDescriptor_Data_Multi) Reset()         { *m = SignatureDescriptor_Data_Multi{} }
   347  func (m *SignatureDescriptor_Data_Multi) String() string { return proto.CompactTextString(m) }
   348  func (*SignatureDescriptor_Data_Multi) ProtoMessage()    {}
   349  func (*SignatureDescriptor_Data_Multi) Descriptor() ([]byte, []int) {
   350  	return fileDescriptor_9a54958ff3d0b1b9, []int{1, 0, 1}
   351  }
   352  func (m *SignatureDescriptor_Data_Multi) XXX_Unmarshal(b []byte) error {
   353  	return m.Unmarshal(b)
   354  }
   355  func (m *SignatureDescriptor_Data_Multi) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   356  	if deterministic {
   357  		return xxx_messageInfo_SignatureDescriptor_Data_Multi.Marshal(b, m, deterministic)
   358  	} else {
   359  		b = b[:cap(b)]
   360  		n, err := m.MarshalToSizedBuffer(b)
   361  		if err != nil {
   362  			return nil, err
   363  		}
   364  		return b[:n], nil
   365  	}
   366  }
   367  func (m *SignatureDescriptor_Data_Multi) XXX_Merge(src proto.Message) {
   368  	xxx_messageInfo_SignatureDescriptor_Data_Multi.Merge(m, src)
   369  }
   370  func (m *SignatureDescriptor_Data_Multi) XXX_Size() int {
   371  	return m.Size()
   372  }
   373  func (m *SignatureDescriptor_Data_Multi) XXX_DiscardUnknown() {
   374  	xxx_messageInfo_SignatureDescriptor_Data_Multi.DiscardUnknown(m)
   375  }
   376  
   377  var xxx_messageInfo_SignatureDescriptor_Data_Multi proto.InternalMessageInfo
   378  
   379  func (m *SignatureDescriptor_Data_Multi) GetBitarray() *types1.CompactBitArray {
   380  	if m != nil {
   381  		return m.Bitarray
   382  	}
   383  	return nil
   384  }
   385  
   386  func (m *SignatureDescriptor_Data_Multi) GetSignatures() []*SignatureDescriptor_Data {
   387  	if m != nil {
   388  		return m.Signatures
   389  	}
   390  	return nil
   391  }
   392  
   393  func init() {
   394  	proto.RegisterEnum("cosmos.tx.signing.v1beta1.SignMode", SignMode_name, SignMode_value)
   395  	proto.RegisterType((*SignatureDescriptors)(nil), "cosmos.tx.signing.v1beta1.SignatureDescriptors")
   396  	proto.RegisterType((*SignatureDescriptor)(nil), "cosmos.tx.signing.v1beta1.SignatureDescriptor")
   397  	proto.RegisterType((*SignatureDescriptor_Data)(nil), "cosmos.tx.signing.v1beta1.SignatureDescriptor.Data")
   398  	proto.RegisterType((*SignatureDescriptor_Data_Single)(nil), "cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single")
   399  	proto.RegisterType((*SignatureDescriptor_Data_Multi)(nil), "cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi")
   400  }
   401  
   402  func init() {
   403  	proto.RegisterFile("cosmos/tx/signing/v1beta1/signing.proto", fileDescriptor_9a54958ff3d0b1b9)
   404  }
   405  
   406  var fileDescriptor_9a54958ff3d0b1b9 = []byte{
   407  	// 568 bytes of a gzipped FileDescriptorProto
   408  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcf, 0x6e, 0xd3, 0x4e,
   409  	0x10, 0xc7, 0xed, 0x26, 0xad, 0xda, 0xed, 0x4f, 0x3f, 0x99, 0xa5, 0x45, 0xa9, 0x41, 0xa6, 0x2a,
   410  	0x07, 0x2a, 0xa4, 0xae, 0x95, 0xe6, 0x80, 0xca, 0x2d, 0x7f, 0xdc, 0xd4, 0xa4, 0x49, 0x8a, 0x9d,
   411  	0x4a, 0xc0, 0xc5, 0xb2, 0x9d, 0x8d, 0xbb, 0x6a, 0xec, 0x35, 0xde, 0x35, 0xaa, 0x4f, 0x3c, 0x00,
   412  	0x17, 0x5e, 0x83, 0xa7, 0xe0, 0xc0, 0x85, 0x63, 0x8f, 0x1c, 0x51, 0xf2, 0x0c, 0xdc, 0x51, 0xfc,
   413  	0x27, 0x09, 0x52, 0x11, 0x22, 0xb7, 0xcc, 0xcc, 0x77, 0x3e, 0xf3, 0x5d, 0xcd, 0xc4, 0xe0, 0xa9,
   414  	0x4b, 0x99, 0x4f, 0x99, 0xca, 0x6f, 0x54, 0x46, 0xbc, 0x80, 0x04, 0x9e, 0xfa, 0xbe, 0xea, 0x60,
   415  	0x6e, 0x57, 0x8b, 0x18, 0x85, 0x11, 0xe5, 0x14, 0xee, 0x65, 0x42, 0xc4, 0x6f, 0x50, 0x51, 0xc8,
   416  	0x85, 0xf2, 0x51, 0xce, 0x70, 0xa3, 0x24, 0xe4, 0x54, 0xf5, 0xe3, 0x31, 0x27, 0x8c, 0x2c, 0x40,
   417  	0x45, 0x22, 0x23, 0xc9, 0x7b, 0x1e, 0xa5, 0xde, 0x18, 0xab, 0x69, 0xe4, 0xc4, 0x23, 0xd5, 0x0e,
   418  	0x92, 0xac, 0x74, 0x30, 0x02, 0x3b, 0x26, 0xf1, 0x02, 0x9b, 0xc7, 0x11, 0x6e, 0x61, 0xe6, 0x46,
   419  	0x24, 0xe4, 0x34, 0x62, 0xb0, 0x07, 0x00, 0x2b, 0xf2, 0xac, 0x22, 0xee, 0x97, 0x0e, 0xb7, 0x8f,
   420  	0x11, 0xfa, 0xa3, 0x23, 0x74, 0x07, 0xc4, 0x58, 0x22, 0x1c, 0xfc, 0x2c, 0x83, 0xfb, 0x77, 0x68,
   421  	0x60, 0x0d, 0x80, 0x30, 0x76, 0xc6, 0xc4, 0xb5, 0xae, 0x71, 0x52, 0x11, 0xf7, 0xc5, 0xc3, 0xed,
   422  	0xe3, 0x1d, 0x94, 0xf9, 0x45, 0x85, 0x5f, 0x54, 0x0f, 0x12, 0x63, 0x2b, 0xd3, 0x75, 0x70, 0x02,
   423  	0xdb, 0xa0, 0x3c, 0xb4, 0xb9, 0x5d, 0x59, 0x4b, 0xe5, 0xb5, 0x7f, 0xb3, 0x85, 0x5a, 0x36, 0xb7,
   424  	0x8d, 0x14, 0x00, 0x65, 0xb0, 0xc9, 0xf0, 0xbb, 0x18, 0x07, 0x2e, 0xae, 0x94, 0xf6, 0xc5, 0xc3,
   425  	0xb2, 0x31, 0x8f, 0xe5, 0xaf, 0x25, 0x50, 0x9e, 0x49, 0xe1, 0x00, 0x6c, 0x30, 0x12, 0x78, 0x63,
   426  	0x9c, 0xdb, 0x7b, 0xb1, 0xc2, 0x3c, 0x64, 0xa6, 0x84, 0x33, 0xc1, 0xc8, 0x59, 0xf0, 0x15, 0x58,
   427  	0x4f, 0xb7, 0x94, 0x3f, 0xe2, 0x64, 0x15, 0x68, 0x77, 0x06, 0x38, 0x13, 0x8c, 0x8c, 0x24, 0x5b,
   428  	0x60, 0x23, 0x1b, 0x03, 0x9f, 0x83, 0xb2, 0x4f, 0x87, 0x99, 0xe1, 0xff, 0x8f, 0x9f, 0xfc, 0x85,
   429  	0xdd, 0xa5, 0x43, 0x6c, 0xa4, 0x0d, 0xf0, 0x11, 0xd8, 0x9a, 0x2f, 0x2d, 0x75, 0xf6, 0x9f, 0xb1,
   430  	0x48, 0xc8, 0x9f, 0x45, 0xb0, 0x9e, 0xce, 0x84, 0x1d, 0xb0, 0xe9, 0x10, 0x6e, 0x47, 0x91, 0x5d,
   431  	0x2c, 0x4d, 0x2d, 0x86, 0x64, 0x37, 0x89, 0xe6, 0x27, 0x58, 0x4c, 0x6a, 0x52, 0x3f, 0xb4, 0x5d,
   432  	0xde, 0x20, 0xbc, 0x3e, 0x6b, 0x33, 0xe6, 0x00, 0x68, 0xfe, 0x76, 0x6b, 0x6b, 0xe9, 0xad, 0xad,
   433  	0xb4, 0xd4, 0x25, 0x4c, 0x63, 0x1d, 0x94, 0x58, 0xec, 0x3f, 0xfb, 0x28, 0x82, 0xcd, 0xe2, 0x8d,
   434  	0x70, 0x0f, 0xec, 0x9a, 0x7a, 0xbb, 0x67, 0x75, 0xfb, 0x2d, 0xcd, 0xba, 0xec, 0x99, 0x17, 0x5a,
   435  	0x53, 0x3f, 0xd5, 0xb5, 0x96, 0x24, 0xc0, 0x1d, 0x20, 0x2d, 0x4a, 0x2d, 0xdd, 0xd0, 0x9a, 0x03,
   436  	0x49, 0x84, 0xbb, 0xe0, 0xde, 0x22, 0x3b, 0xd0, 0x5e, 0x0f, 0x2e, 0xeb, 0xe7, 0xd2, 0x1a, 0x7c,
   437  	0x0c, 0x1e, 0x2e, 0xd2, 0xe7, 0x5a, 0xbb, 0xde, 0x7c, 0x63, 0xd5, 0xbb, 0x7a, 0xaf, 0x6f, 0xbd,
   438  	0x34, 0xfb, 0x3d, 0xe9, 0x03, 0x7c, 0xb0, 0xdc, 0xa7, 0xe9, 0x17, 0x56, 0xf5, 0xa4, 0x2a, 0x7d,
   439  	0x11, 0x1b, 0x9d, 0x6f, 0x13, 0x45, 0xbc, 0x9d, 0x28, 0xe2, 0x8f, 0x89, 0x22, 0x7e, 0x9a, 0x2a,
   440  	0xc2, 0xed, 0x54, 0x11, 0xbe, 0x4f, 0x15, 0xe1, 0x6d, 0xd5, 0x23, 0xfc, 0x2a, 0x76, 0x90, 0x4b,
   441  	0x7d, 0xf5, 0x94, 0x04, 0xcc, 0xbd, 0x22, 0xb6, 0x3a, 0xca, 0x7f, 0x1c, 0xb1, 0xe1, 0xb5, 0xca,
   442  	0x93, 0x10, 0x2f, 0x7f, 0x35, 0x9c, 0x8d, 0xf4, 0xef, 0x51, 0xfb, 0x15, 0x00, 0x00, 0xff, 0xff,
   443  	0x59, 0xa6, 0x33, 0xc9, 0x51, 0x04, 0x00, 0x00,
   444  }
   445  
   446  func (m *SignatureDescriptors) Marshal() (dAtA []byte, err error) {
   447  	size := m.Size()
   448  	dAtA = make([]byte, size)
   449  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   450  	if err != nil {
   451  		return nil, err
   452  	}
   453  	return dAtA[:n], nil
   454  }
   455  
   456  func (m *SignatureDescriptors) MarshalTo(dAtA []byte) (int, error) {
   457  	size := m.Size()
   458  	return m.MarshalToSizedBuffer(dAtA[:size])
   459  }
   460  
   461  func (m *SignatureDescriptors) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   462  	i := len(dAtA)
   463  	_ = i
   464  	var l int
   465  	_ = l
   466  	if len(m.Signatures) > 0 {
   467  		for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- {
   468  			{
   469  				size, err := m.Signatures[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   470  				if err != nil {
   471  					return 0, err
   472  				}
   473  				i -= size
   474  				i = encodeVarintSigning(dAtA, i, uint64(size))
   475  			}
   476  			i--
   477  			dAtA[i] = 0xa
   478  		}
   479  	}
   480  	return len(dAtA) - i, nil
   481  }
   482  
   483  func (m *SignatureDescriptor) Marshal() (dAtA []byte, err error) {
   484  	size := m.Size()
   485  	dAtA = make([]byte, size)
   486  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   487  	if err != nil {
   488  		return nil, err
   489  	}
   490  	return dAtA[:n], nil
   491  }
   492  
   493  func (m *SignatureDescriptor) MarshalTo(dAtA []byte) (int, error) {
   494  	size := m.Size()
   495  	return m.MarshalToSizedBuffer(dAtA[:size])
   496  }
   497  
   498  func (m *SignatureDescriptor) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   499  	i := len(dAtA)
   500  	_ = i
   501  	var l int
   502  	_ = l
   503  	if m.Sequence != 0 {
   504  		i = encodeVarintSigning(dAtA, i, uint64(m.Sequence))
   505  		i--
   506  		dAtA[i] = 0x18
   507  	}
   508  	if m.Data != nil {
   509  		{
   510  			size, err := m.Data.MarshalToSizedBuffer(dAtA[:i])
   511  			if err != nil {
   512  				return 0, err
   513  			}
   514  			i -= size
   515  			i = encodeVarintSigning(dAtA, i, uint64(size))
   516  		}
   517  		i--
   518  		dAtA[i] = 0x12
   519  	}
   520  	if m.PublicKey != nil {
   521  		{
   522  			size, err := m.PublicKey.MarshalToSizedBuffer(dAtA[:i])
   523  			if err != nil {
   524  				return 0, err
   525  			}
   526  			i -= size
   527  			i = encodeVarintSigning(dAtA, i, uint64(size))
   528  		}
   529  		i--
   530  		dAtA[i] = 0xa
   531  	}
   532  	return len(dAtA) - i, nil
   533  }
   534  
   535  func (m *SignatureDescriptor_Data) Marshal() (dAtA []byte, err error) {
   536  	size := m.Size()
   537  	dAtA = make([]byte, size)
   538  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   539  	if err != nil {
   540  		return nil, err
   541  	}
   542  	return dAtA[:n], nil
   543  }
   544  
   545  func (m *SignatureDescriptor_Data) MarshalTo(dAtA []byte) (int, error) {
   546  	size := m.Size()
   547  	return m.MarshalToSizedBuffer(dAtA[:size])
   548  }
   549  
   550  func (m *SignatureDescriptor_Data) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   551  	i := len(dAtA)
   552  	_ = i
   553  	var l int
   554  	_ = l
   555  	if m.Sum != nil {
   556  		{
   557  			size := m.Sum.Size()
   558  			i -= size
   559  			if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
   560  				return 0, err
   561  			}
   562  		}
   563  	}
   564  	return len(dAtA) - i, nil
   565  }
   566  
   567  func (m *SignatureDescriptor_Data_Single_) MarshalTo(dAtA []byte) (int, error) {
   568  	size := m.Size()
   569  	return m.MarshalToSizedBuffer(dAtA[:size])
   570  }
   571  
   572  func (m *SignatureDescriptor_Data_Single_) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   573  	i := len(dAtA)
   574  	if m.Single != nil {
   575  		{
   576  			size, err := m.Single.MarshalToSizedBuffer(dAtA[:i])
   577  			if err != nil {
   578  				return 0, err
   579  			}
   580  			i -= size
   581  			i = encodeVarintSigning(dAtA, i, uint64(size))
   582  		}
   583  		i--
   584  		dAtA[i] = 0xa
   585  	}
   586  	return len(dAtA) - i, nil
   587  }
   588  func (m *SignatureDescriptor_Data_Multi_) MarshalTo(dAtA []byte) (int, error) {
   589  	size := m.Size()
   590  	return m.MarshalToSizedBuffer(dAtA[:size])
   591  }
   592  
   593  func (m *SignatureDescriptor_Data_Multi_) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   594  	i := len(dAtA)
   595  	if m.Multi != nil {
   596  		{
   597  			size, err := m.Multi.MarshalToSizedBuffer(dAtA[:i])
   598  			if err != nil {
   599  				return 0, err
   600  			}
   601  			i -= size
   602  			i = encodeVarintSigning(dAtA, i, uint64(size))
   603  		}
   604  		i--
   605  		dAtA[i] = 0x12
   606  	}
   607  	return len(dAtA) - i, nil
   608  }
   609  func (m *SignatureDescriptor_Data_Single) Marshal() (dAtA []byte, err error) {
   610  	size := m.Size()
   611  	dAtA = make([]byte, size)
   612  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   613  	if err != nil {
   614  		return nil, err
   615  	}
   616  	return dAtA[:n], nil
   617  }
   618  
   619  func (m *SignatureDescriptor_Data_Single) MarshalTo(dAtA []byte) (int, error) {
   620  	size := m.Size()
   621  	return m.MarshalToSizedBuffer(dAtA[:size])
   622  }
   623  
   624  func (m *SignatureDescriptor_Data_Single) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   625  	i := len(dAtA)
   626  	_ = i
   627  	var l int
   628  	_ = l
   629  	if len(m.Signature) > 0 {
   630  		i -= len(m.Signature)
   631  		copy(dAtA[i:], m.Signature)
   632  		i = encodeVarintSigning(dAtA, i, uint64(len(m.Signature)))
   633  		i--
   634  		dAtA[i] = 0x12
   635  	}
   636  	if m.Mode != 0 {
   637  		i = encodeVarintSigning(dAtA, i, uint64(m.Mode))
   638  		i--
   639  		dAtA[i] = 0x8
   640  	}
   641  	return len(dAtA) - i, nil
   642  }
   643  
   644  func (m *SignatureDescriptor_Data_Multi) Marshal() (dAtA []byte, err error) {
   645  	size := m.Size()
   646  	dAtA = make([]byte, size)
   647  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   648  	if err != nil {
   649  		return nil, err
   650  	}
   651  	return dAtA[:n], nil
   652  }
   653  
   654  func (m *SignatureDescriptor_Data_Multi) MarshalTo(dAtA []byte) (int, error) {
   655  	size := m.Size()
   656  	return m.MarshalToSizedBuffer(dAtA[:size])
   657  }
   658  
   659  func (m *SignatureDescriptor_Data_Multi) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   660  	i := len(dAtA)
   661  	_ = i
   662  	var l int
   663  	_ = l
   664  	if len(m.Signatures) > 0 {
   665  		for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- {
   666  			{
   667  				size, err := m.Signatures[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   668  				if err != nil {
   669  					return 0, err
   670  				}
   671  				i -= size
   672  				i = encodeVarintSigning(dAtA, i, uint64(size))
   673  			}
   674  			i--
   675  			dAtA[i] = 0x12
   676  		}
   677  	}
   678  	if m.Bitarray != nil {
   679  		{
   680  			size, err := m.Bitarray.MarshalToSizedBuffer(dAtA[:i])
   681  			if err != nil {
   682  				return 0, err
   683  			}
   684  			i -= size
   685  			i = encodeVarintSigning(dAtA, i, uint64(size))
   686  		}
   687  		i--
   688  		dAtA[i] = 0xa
   689  	}
   690  	return len(dAtA) - i, nil
   691  }
   692  
   693  func encodeVarintSigning(dAtA []byte, offset int, v uint64) int {
   694  	offset -= sovSigning(v)
   695  	base := offset
   696  	for v >= 1<<7 {
   697  		dAtA[offset] = uint8(v&0x7f | 0x80)
   698  		v >>= 7
   699  		offset++
   700  	}
   701  	dAtA[offset] = uint8(v)
   702  	return base
   703  }
   704  func (m *SignatureDescriptors) Size() (n int) {
   705  	if m == nil {
   706  		return 0
   707  	}
   708  	var l int
   709  	_ = l
   710  	if len(m.Signatures) > 0 {
   711  		for _, e := range m.Signatures {
   712  			l = e.Size()
   713  			n += 1 + l + sovSigning(uint64(l))
   714  		}
   715  	}
   716  	return n
   717  }
   718  
   719  func (m *SignatureDescriptor) Size() (n int) {
   720  	if m == nil {
   721  		return 0
   722  	}
   723  	var l int
   724  	_ = l
   725  	if m.PublicKey != nil {
   726  		l = m.PublicKey.Size()
   727  		n += 1 + l + sovSigning(uint64(l))
   728  	}
   729  	if m.Data != nil {
   730  		l = m.Data.Size()
   731  		n += 1 + l + sovSigning(uint64(l))
   732  	}
   733  	if m.Sequence != 0 {
   734  		n += 1 + sovSigning(uint64(m.Sequence))
   735  	}
   736  	return n
   737  }
   738  
   739  func (m *SignatureDescriptor_Data) Size() (n int) {
   740  	if m == nil {
   741  		return 0
   742  	}
   743  	var l int
   744  	_ = l
   745  	if m.Sum != nil {
   746  		n += m.Sum.Size()
   747  	}
   748  	return n
   749  }
   750  
   751  func (m *SignatureDescriptor_Data_Single_) Size() (n int) {
   752  	if m == nil {
   753  		return 0
   754  	}
   755  	var l int
   756  	_ = l
   757  	if m.Single != nil {
   758  		l = m.Single.Size()
   759  		n += 1 + l + sovSigning(uint64(l))
   760  	}
   761  	return n
   762  }
   763  func (m *SignatureDescriptor_Data_Multi_) Size() (n int) {
   764  	if m == nil {
   765  		return 0
   766  	}
   767  	var l int
   768  	_ = l
   769  	if m.Multi != nil {
   770  		l = m.Multi.Size()
   771  		n += 1 + l + sovSigning(uint64(l))
   772  	}
   773  	return n
   774  }
   775  func (m *SignatureDescriptor_Data_Single) Size() (n int) {
   776  	if m == nil {
   777  		return 0
   778  	}
   779  	var l int
   780  	_ = l
   781  	if m.Mode != 0 {
   782  		n += 1 + sovSigning(uint64(m.Mode))
   783  	}
   784  	l = len(m.Signature)
   785  	if l > 0 {
   786  		n += 1 + l + sovSigning(uint64(l))
   787  	}
   788  	return n
   789  }
   790  
   791  func (m *SignatureDescriptor_Data_Multi) Size() (n int) {
   792  	if m == nil {
   793  		return 0
   794  	}
   795  	var l int
   796  	_ = l
   797  	if m.Bitarray != nil {
   798  		l = m.Bitarray.Size()
   799  		n += 1 + l + sovSigning(uint64(l))
   800  	}
   801  	if len(m.Signatures) > 0 {
   802  		for _, e := range m.Signatures {
   803  			l = e.Size()
   804  			n += 1 + l + sovSigning(uint64(l))
   805  		}
   806  	}
   807  	return n
   808  }
   809  
   810  func sovSigning(x uint64) (n int) {
   811  	return (math_bits.Len64(x|1) + 6) / 7
   812  }
   813  func sozSigning(x uint64) (n int) {
   814  	return sovSigning(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   815  }
   816  func (m *SignatureDescriptors) Unmarshal(dAtA []byte) error {
   817  	l := len(dAtA)
   818  	iNdEx := 0
   819  	for iNdEx < l {
   820  		preIndex := iNdEx
   821  		var wire uint64
   822  		for shift := uint(0); ; shift += 7 {
   823  			if shift >= 64 {
   824  				return ErrIntOverflowSigning
   825  			}
   826  			if iNdEx >= l {
   827  				return io.ErrUnexpectedEOF
   828  			}
   829  			b := dAtA[iNdEx]
   830  			iNdEx++
   831  			wire |= uint64(b&0x7F) << shift
   832  			if b < 0x80 {
   833  				break
   834  			}
   835  		}
   836  		fieldNum := int32(wire >> 3)
   837  		wireType := int(wire & 0x7)
   838  		if wireType == 4 {
   839  			return fmt.Errorf("proto: SignatureDescriptors: wiretype end group for non-group")
   840  		}
   841  		if fieldNum <= 0 {
   842  			return fmt.Errorf("proto: SignatureDescriptors: illegal tag %d (wire type %d)", fieldNum, wire)
   843  		}
   844  		switch fieldNum {
   845  		case 1:
   846  			if wireType != 2 {
   847  				return fmt.Errorf("proto: wrong wireType = %d for field Signatures", wireType)
   848  			}
   849  			var msglen int
   850  			for shift := uint(0); ; shift += 7 {
   851  				if shift >= 64 {
   852  					return ErrIntOverflowSigning
   853  				}
   854  				if iNdEx >= l {
   855  					return io.ErrUnexpectedEOF
   856  				}
   857  				b := dAtA[iNdEx]
   858  				iNdEx++
   859  				msglen |= int(b&0x7F) << shift
   860  				if b < 0x80 {
   861  					break
   862  				}
   863  			}
   864  			if msglen < 0 {
   865  				return ErrInvalidLengthSigning
   866  			}
   867  			postIndex := iNdEx + msglen
   868  			if postIndex < 0 {
   869  				return ErrInvalidLengthSigning
   870  			}
   871  			if postIndex > l {
   872  				return io.ErrUnexpectedEOF
   873  			}
   874  			m.Signatures = append(m.Signatures, &SignatureDescriptor{})
   875  			if err := m.Signatures[len(m.Signatures)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   876  				return err
   877  			}
   878  			iNdEx = postIndex
   879  		default:
   880  			iNdEx = preIndex
   881  			skippy, err := skipSigning(dAtA[iNdEx:])
   882  			if err != nil {
   883  				return err
   884  			}
   885  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   886  				return ErrInvalidLengthSigning
   887  			}
   888  			if (iNdEx + skippy) > l {
   889  				return io.ErrUnexpectedEOF
   890  			}
   891  			iNdEx += skippy
   892  		}
   893  	}
   894  
   895  	if iNdEx > l {
   896  		return io.ErrUnexpectedEOF
   897  	}
   898  	return nil
   899  }
   900  func (m *SignatureDescriptor) Unmarshal(dAtA []byte) error {
   901  	l := len(dAtA)
   902  	iNdEx := 0
   903  	for iNdEx < l {
   904  		preIndex := iNdEx
   905  		var wire uint64
   906  		for shift := uint(0); ; shift += 7 {
   907  			if shift >= 64 {
   908  				return ErrIntOverflowSigning
   909  			}
   910  			if iNdEx >= l {
   911  				return io.ErrUnexpectedEOF
   912  			}
   913  			b := dAtA[iNdEx]
   914  			iNdEx++
   915  			wire |= uint64(b&0x7F) << shift
   916  			if b < 0x80 {
   917  				break
   918  			}
   919  		}
   920  		fieldNum := int32(wire >> 3)
   921  		wireType := int(wire & 0x7)
   922  		if wireType == 4 {
   923  			return fmt.Errorf("proto: SignatureDescriptor: wiretype end group for non-group")
   924  		}
   925  		if fieldNum <= 0 {
   926  			return fmt.Errorf("proto: SignatureDescriptor: illegal tag %d (wire type %d)", fieldNum, wire)
   927  		}
   928  		switch fieldNum {
   929  		case 1:
   930  			if wireType != 2 {
   931  				return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType)
   932  			}
   933  			var msglen int
   934  			for shift := uint(0); ; shift += 7 {
   935  				if shift >= 64 {
   936  					return ErrIntOverflowSigning
   937  				}
   938  				if iNdEx >= l {
   939  					return io.ErrUnexpectedEOF
   940  				}
   941  				b := dAtA[iNdEx]
   942  				iNdEx++
   943  				msglen |= int(b&0x7F) << shift
   944  				if b < 0x80 {
   945  					break
   946  				}
   947  			}
   948  			if msglen < 0 {
   949  				return ErrInvalidLengthSigning
   950  			}
   951  			postIndex := iNdEx + msglen
   952  			if postIndex < 0 {
   953  				return ErrInvalidLengthSigning
   954  			}
   955  			if postIndex > l {
   956  				return io.ErrUnexpectedEOF
   957  			}
   958  			if m.PublicKey == nil {
   959  				m.PublicKey = &types.Any{}
   960  			}
   961  			if err := m.PublicKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   962  				return err
   963  			}
   964  			iNdEx = postIndex
   965  		case 2:
   966  			if wireType != 2 {
   967  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
   968  			}
   969  			var msglen int
   970  			for shift := uint(0); ; shift += 7 {
   971  				if shift >= 64 {
   972  					return ErrIntOverflowSigning
   973  				}
   974  				if iNdEx >= l {
   975  					return io.ErrUnexpectedEOF
   976  				}
   977  				b := dAtA[iNdEx]
   978  				iNdEx++
   979  				msglen |= int(b&0x7F) << shift
   980  				if b < 0x80 {
   981  					break
   982  				}
   983  			}
   984  			if msglen < 0 {
   985  				return ErrInvalidLengthSigning
   986  			}
   987  			postIndex := iNdEx + msglen
   988  			if postIndex < 0 {
   989  				return ErrInvalidLengthSigning
   990  			}
   991  			if postIndex > l {
   992  				return io.ErrUnexpectedEOF
   993  			}
   994  			if m.Data == nil {
   995  				m.Data = &SignatureDescriptor_Data{}
   996  			}
   997  			if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   998  				return err
   999  			}
  1000  			iNdEx = postIndex
  1001  		case 3:
  1002  			if wireType != 0 {
  1003  				return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
  1004  			}
  1005  			m.Sequence = 0
  1006  			for shift := uint(0); ; shift += 7 {
  1007  				if shift >= 64 {
  1008  					return ErrIntOverflowSigning
  1009  				}
  1010  				if iNdEx >= l {
  1011  					return io.ErrUnexpectedEOF
  1012  				}
  1013  				b := dAtA[iNdEx]
  1014  				iNdEx++
  1015  				m.Sequence |= uint64(b&0x7F) << shift
  1016  				if b < 0x80 {
  1017  					break
  1018  				}
  1019  			}
  1020  		default:
  1021  			iNdEx = preIndex
  1022  			skippy, err := skipSigning(dAtA[iNdEx:])
  1023  			if err != nil {
  1024  				return err
  1025  			}
  1026  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1027  				return ErrInvalidLengthSigning
  1028  			}
  1029  			if (iNdEx + skippy) > l {
  1030  				return io.ErrUnexpectedEOF
  1031  			}
  1032  			iNdEx += skippy
  1033  		}
  1034  	}
  1035  
  1036  	if iNdEx > l {
  1037  		return io.ErrUnexpectedEOF
  1038  	}
  1039  	return nil
  1040  }
  1041  func (m *SignatureDescriptor_Data) Unmarshal(dAtA []byte) error {
  1042  	l := len(dAtA)
  1043  	iNdEx := 0
  1044  	for iNdEx < l {
  1045  		preIndex := iNdEx
  1046  		var wire uint64
  1047  		for shift := uint(0); ; shift += 7 {
  1048  			if shift >= 64 {
  1049  				return ErrIntOverflowSigning
  1050  			}
  1051  			if iNdEx >= l {
  1052  				return io.ErrUnexpectedEOF
  1053  			}
  1054  			b := dAtA[iNdEx]
  1055  			iNdEx++
  1056  			wire |= uint64(b&0x7F) << shift
  1057  			if b < 0x80 {
  1058  				break
  1059  			}
  1060  		}
  1061  		fieldNum := int32(wire >> 3)
  1062  		wireType := int(wire & 0x7)
  1063  		if wireType == 4 {
  1064  			return fmt.Errorf("proto: Data: wiretype end group for non-group")
  1065  		}
  1066  		if fieldNum <= 0 {
  1067  			return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  1068  		}
  1069  		switch fieldNum {
  1070  		case 1:
  1071  			if wireType != 2 {
  1072  				return fmt.Errorf("proto: wrong wireType = %d for field Single", wireType)
  1073  			}
  1074  			var msglen int
  1075  			for shift := uint(0); ; shift += 7 {
  1076  				if shift >= 64 {
  1077  					return ErrIntOverflowSigning
  1078  				}
  1079  				if iNdEx >= l {
  1080  					return io.ErrUnexpectedEOF
  1081  				}
  1082  				b := dAtA[iNdEx]
  1083  				iNdEx++
  1084  				msglen |= int(b&0x7F) << shift
  1085  				if b < 0x80 {
  1086  					break
  1087  				}
  1088  			}
  1089  			if msglen < 0 {
  1090  				return ErrInvalidLengthSigning
  1091  			}
  1092  			postIndex := iNdEx + msglen
  1093  			if postIndex < 0 {
  1094  				return ErrInvalidLengthSigning
  1095  			}
  1096  			if postIndex > l {
  1097  				return io.ErrUnexpectedEOF
  1098  			}
  1099  			v := &SignatureDescriptor_Data_Single{}
  1100  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1101  				return err
  1102  			}
  1103  			m.Sum = &SignatureDescriptor_Data_Single_{v}
  1104  			iNdEx = postIndex
  1105  		case 2:
  1106  			if wireType != 2 {
  1107  				return fmt.Errorf("proto: wrong wireType = %d for field Multi", wireType)
  1108  			}
  1109  			var msglen int
  1110  			for shift := uint(0); ; shift += 7 {
  1111  				if shift >= 64 {
  1112  					return ErrIntOverflowSigning
  1113  				}
  1114  				if iNdEx >= l {
  1115  					return io.ErrUnexpectedEOF
  1116  				}
  1117  				b := dAtA[iNdEx]
  1118  				iNdEx++
  1119  				msglen |= int(b&0x7F) << shift
  1120  				if b < 0x80 {
  1121  					break
  1122  				}
  1123  			}
  1124  			if msglen < 0 {
  1125  				return ErrInvalidLengthSigning
  1126  			}
  1127  			postIndex := iNdEx + msglen
  1128  			if postIndex < 0 {
  1129  				return ErrInvalidLengthSigning
  1130  			}
  1131  			if postIndex > l {
  1132  				return io.ErrUnexpectedEOF
  1133  			}
  1134  			v := &SignatureDescriptor_Data_Multi{}
  1135  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1136  				return err
  1137  			}
  1138  			m.Sum = &SignatureDescriptor_Data_Multi_{v}
  1139  			iNdEx = postIndex
  1140  		default:
  1141  			iNdEx = preIndex
  1142  			skippy, err := skipSigning(dAtA[iNdEx:])
  1143  			if err != nil {
  1144  				return err
  1145  			}
  1146  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1147  				return ErrInvalidLengthSigning
  1148  			}
  1149  			if (iNdEx + skippy) > l {
  1150  				return io.ErrUnexpectedEOF
  1151  			}
  1152  			iNdEx += skippy
  1153  		}
  1154  	}
  1155  
  1156  	if iNdEx > l {
  1157  		return io.ErrUnexpectedEOF
  1158  	}
  1159  	return nil
  1160  }
  1161  func (m *SignatureDescriptor_Data_Single) Unmarshal(dAtA []byte) error {
  1162  	l := len(dAtA)
  1163  	iNdEx := 0
  1164  	for iNdEx < l {
  1165  		preIndex := iNdEx
  1166  		var wire uint64
  1167  		for shift := uint(0); ; shift += 7 {
  1168  			if shift >= 64 {
  1169  				return ErrIntOverflowSigning
  1170  			}
  1171  			if iNdEx >= l {
  1172  				return io.ErrUnexpectedEOF
  1173  			}
  1174  			b := dAtA[iNdEx]
  1175  			iNdEx++
  1176  			wire |= uint64(b&0x7F) << shift
  1177  			if b < 0x80 {
  1178  				break
  1179  			}
  1180  		}
  1181  		fieldNum := int32(wire >> 3)
  1182  		wireType := int(wire & 0x7)
  1183  		if wireType == 4 {
  1184  			return fmt.Errorf("proto: Single: wiretype end group for non-group")
  1185  		}
  1186  		if fieldNum <= 0 {
  1187  			return fmt.Errorf("proto: Single: illegal tag %d (wire type %d)", fieldNum, wire)
  1188  		}
  1189  		switch fieldNum {
  1190  		case 1:
  1191  			if wireType != 0 {
  1192  				return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
  1193  			}
  1194  			m.Mode = 0
  1195  			for shift := uint(0); ; shift += 7 {
  1196  				if shift >= 64 {
  1197  					return ErrIntOverflowSigning
  1198  				}
  1199  				if iNdEx >= l {
  1200  					return io.ErrUnexpectedEOF
  1201  				}
  1202  				b := dAtA[iNdEx]
  1203  				iNdEx++
  1204  				m.Mode |= SignMode(b&0x7F) << shift
  1205  				if b < 0x80 {
  1206  					break
  1207  				}
  1208  			}
  1209  		case 2:
  1210  			if wireType != 2 {
  1211  				return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType)
  1212  			}
  1213  			var byteLen int
  1214  			for shift := uint(0); ; shift += 7 {
  1215  				if shift >= 64 {
  1216  					return ErrIntOverflowSigning
  1217  				}
  1218  				if iNdEx >= l {
  1219  					return io.ErrUnexpectedEOF
  1220  				}
  1221  				b := dAtA[iNdEx]
  1222  				iNdEx++
  1223  				byteLen |= int(b&0x7F) << shift
  1224  				if b < 0x80 {
  1225  					break
  1226  				}
  1227  			}
  1228  			if byteLen < 0 {
  1229  				return ErrInvalidLengthSigning
  1230  			}
  1231  			postIndex := iNdEx + byteLen
  1232  			if postIndex < 0 {
  1233  				return ErrInvalidLengthSigning
  1234  			}
  1235  			if postIndex > l {
  1236  				return io.ErrUnexpectedEOF
  1237  			}
  1238  			m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...)
  1239  			if m.Signature == nil {
  1240  				m.Signature = []byte{}
  1241  			}
  1242  			iNdEx = postIndex
  1243  		default:
  1244  			iNdEx = preIndex
  1245  			skippy, err := skipSigning(dAtA[iNdEx:])
  1246  			if err != nil {
  1247  				return err
  1248  			}
  1249  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1250  				return ErrInvalidLengthSigning
  1251  			}
  1252  			if (iNdEx + skippy) > l {
  1253  				return io.ErrUnexpectedEOF
  1254  			}
  1255  			iNdEx += skippy
  1256  		}
  1257  	}
  1258  
  1259  	if iNdEx > l {
  1260  		return io.ErrUnexpectedEOF
  1261  	}
  1262  	return nil
  1263  }
  1264  func (m *SignatureDescriptor_Data_Multi) Unmarshal(dAtA []byte) error {
  1265  	l := len(dAtA)
  1266  	iNdEx := 0
  1267  	for iNdEx < l {
  1268  		preIndex := iNdEx
  1269  		var wire uint64
  1270  		for shift := uint(0); ; shift += 7 {
  1271  			if shift >= 64 {
  1272  				return ErrIntOverflowSigning
  1273  			}
  1274  			if iNdEx >= l {
  1275  				return io.ErrUnexpectedEOF
  1276  			}
  1277  			b := dAtA[iNdEx]
  1278  			iNdEx++
  1279  			wire |= uint64(b&0x7F) << shift
  1280  			if b < 0x80 {
  1281  				break
  1282  			}
  1283  		}
  1284  		fieldNum := int32(wire >> 3)
  1285  		wireType := int(wire & 0x7)
  1286  		if wireType == 4 {
  1287  			return fmt.Errorf("proto: Multi: wiretype end group for non-group")
  1288  		}
  1289  		if fieldNum <= 0 {
  1290  			return fmt.Errorf("proto: Multi: illegal tag %d (wire type %d)", fieldNum, wire)
  1291  		}
  1292  		switch fieldNum {
  1293  		case 1:
  1294  			if wireType != 2 {
  1295  				return fmt.Errorf("proto: wrong wireType = %d for field Bitarray", wireType)
  1296  			}
  1297  			var msglen int
  1298  			for shift := uint(0); ; shift += 7 {
  1299  				if shift >= 64 {
  1300  					return ErrIntOverflowSigning
  1301  				}
  1302  				if iNdEx >= l {
  1303  					return io.ErrUnexpectedEOF
  1304  				}
  1305  				b := dAtA[iNdEx]
  1306  				iNdEx++
  1307  				msglen |= int(b&0x7F) << shift
  1308  				if b < 0x80 {
  1309  					break
  1310  				}
  1311  			}
  1312  			if msglen < 0 {
  1313  				return ErrInvalidLengthSigning
  1314  			}
  1315  			postIndex := iNdEx + msglen
  1316  			if postIndex < 0 {
  1317  				return ErrInvalidLengthSigning
  1318  			}
  1319  			if postIndex > l {
  1320  				return io.ErrUnexpectedEOF
  1321  			}
  1322  			if m.Bitarray == nil {
  1323  				m.Bitarray = &types1.CompactBitArray{}
  1324  			}
  1325  			if err := m.Bitarray.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1326  				return err
  1327  			}
  1328  			iNdEx = postIndex
  1329  		case 2:
  1330  			if wireType != 2 {
  1331  				return fmt.Errorf("proto: wrong wireType = %d for field Signatures", wireType)
  1332  			}
  1333  			var msglen int
  1334  			for shift := uint(0); ; shift += 7 {
  1335  				if shift >= 64 {
  1336  					return ErrIntOverflowSigning
  1337  				}
  1338  				if iNdEx >= l {
  1339  					return io.ErrUnexpectedEOF
  1340  				}
  1341  				b := dAtA[iNdEx]
  1342  				iNdEx++
  1343  				msglen |= int(b&0x7F) << shift
  1344  				if b < 0x80 {
  1345  					break
  1346  				}
  1347  			}
  1348  			if msglen < 0 {
  1349  				return ErrInvalidLengthSigning
  1350  			}
  1351  			postIndex := iNdEx + msglen
  1352  			if postIndex < 0 {
  1353  				return ErrInvalidLengthSigning
  1354  			}
  1355  			if postIndex > l {
  1356  				return io.ErrUnexpectedEOF
  1357  			}
  1358  			m.Signatures = append(m.Signatures, &SignatureDescriptor_Data{})
  1359  			if err := m.Signatures[len(m.Signatures)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1360  				return err
  1361  			}
  1362  			iNdEx = postIndex
  1363  		default:
  1364  			iNdEx = preIndex
  1365  			skippy, err := skipSigning(dAtA[iNdEx:])
  1366  			if err != nil {
  1367  				return err
  1368  			}
  1369  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1370  				return ErrInvalidLengthSigning
  1371  			}
  1372  			if (iNdEx + skippy) > l {
  1373  				return io.ErrUnexpectedEOF
  1374  			}
  1375  			iNdEx += skippy
  1376  		}
  1377  	}
  1378  
  1379  	if iNdEx > l {
  1380  		return io.ErrUnexpectedEOF
  1381  	}
  1382  	return nil
  1383  }
  1384  func skipSigning(dAtA []byte) (n int, err error) {
  1385  	l := len(dAtA)
  1386  	iNdEx := 0
  1387  	depth := 0
  1388  	for iNdEx < l {
  1389  		var wire uint64
  1390  		for shift := uint(0); ; shift += 7 {
  1391  			if shift >= 64 {
  1392  				return 0, ErrIntOverflowSigning
  1393  			}
  1394  			if iNdEx >= l {
  1395  				return 0, io.ErrUnexpectedEOF
  1396  			}
  1397  			b := dAtA[iNdEx]
  1398  			iNdEx++
  1399  			wire |= (uint64(b) & 0x7F) << shift
  1400  			if b < 0x80 {
  1401  				break
  1402  			}
  1403  		}
  1404  		wireType := int(wire & 0x7)
  1405  		switch wireType {
  1406  		case 0:
  1407  			for shift := uint(0); ; shift += 7 {
  1408  				if shift >= 64 {
  1409  					return 0, ErrIntOverflowSigning
  1410  				}
  1411  				if iNdEx >= l {
  1412  					return 0, io.ErrUnexpectedEOF
  1413  				}
  1414  				iNdEx++
  1415  				if dAtA[iNdEx-1] < 0x80 {
  1416  					break
  1417  				}
  1418  			}
  1419  		case 1:
  1420  			iNdEx += 8
  1421  		case 2:
  1422  			var length int
  1423  			for shift := uint(0); ; shift += 7 {
  1424  				if shift >= 64 {
  1425  					return 0, ErrIntOverflowSigning
  1426  				}
  1427  				if iNdEx >= l {
  1428  					return 0, io.ErrUnexpectedEOF
  1429  				}
  1430  				b := dAtA[iNdEx]
  1431  				iNdEx++
  1432  				length |= (int(b) & 0x7F) << shift
  1433  				if b < 0x80 {
  1434  					break
  1435  				}
  1436  			}
  1437  			if length < 0 {
  1438  				return 0, ErrInvalidLengthSigning
  1439  			}
  1440  			iNdEx += length
  1441  		case 3:
  1442  			depth++
  1443  		case 4:
  1444  			if depth == 0 {
  1445  				return 0, ErrUnexpectedEndOfGroupSigning
  1446  			}
  1447  			depth--
  1448  		case 5:
  1449  			iNdEx += 4
  1450  		default:
  1451  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1452  		}
  1453  		if iNdEx < 0 {
  1454  			return 0, ErrInvalidLengthSigning
  1455  		}
  1456  		if depth == 0 {
  1457  			return iNdEx, nil
  1458  		}
  1459  	}
  1460  	return 0, io.ErrUnexpectedEOF
  1461  }
  1462  
  1463  var (
  1464  	ErrInvalidLengthSigning        = fmt.Errorf("proto: negative length found during unmarshaling")
  1465  	ErrIntOverflowSigning          = fmt.Errorf("proto: integer overflow")
  1466  	ErrUnexpectedEndOfGroupSigning = fmt.Errorf("proto: unexpected end of group")
  1467  )