Versions in this module Expand all Collapse all v1 v1.1.0 Sep 30, 2020 Changes in this version + var ErrIntOverflowCrypto = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthCrypto = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupCrypto = fmt.Errorf("proto: unexpected end of group") + type CompactBitArray struct + Elems []byte + ExtraBitsStored uint32 + func CompactUnmarshal(bz []byte) (*CompactBitArray, error) + func NewCompactBitArray(bits int) *CompactBitArray + func (*CompactBitArray) Descriptor() ([]byte, []int) + func (*CompactBitArray) ProtoMessage() + func (bA *CompactBitArray) CompactMarshal() []byte + func (bA *CompactBitArray) Copy() *CompactBitArray + func (bA *CompactBitArray) Count() int + func (bA *CompactBitArray) GetIndex(i int) bool + func (bA *CompactBitArray) MarshalJSON() ([]byte, error) + func (bA *CompactBitArray) NumTrueBitsBefore(index int) int + func (bA *CompactBitArray) SetIndex(i int, v bool) bool + func (bA *CompactBitArray) String() string + func (bA *CompactBitArray) StringIndented(indent string) string + func (bA *CompactBitArray) UnmarshalJSON(bz []byte) error + func (m *CompactBitArray) GetElems() []byte + func (m *CompactBitArray) GetExtraBitsStored() uint32 + func (m *CompactBitArray) Marshal() (dAtA []byte, err error) + func (m *CompactBitArray) MarshalTo(dAtA []byte) (int, error) + func (m *CompactBitArray) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CompactBitArray) Reset() + func (m *CompactBitArray) Size() (n int) + func (m *CompactBitArray) Unmarshal(dAtA []byte) error + func (m *CompactBitArray) XXX_DiscardUnknown() + func (m *CompactBitArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CompactBitArray) XXX_Merge(src proto.Message) + func (m *CompactBitArray) XXX_Size() int + func (m *CompactBitArray) XXX_Unmarshal(b []byte) error + type MultiSignature struct + Signatures [][]byte + XXX_unrecognized []byte + func (*MultiSignature) Descriptor() ([]byte, []int) + func (*MultiSignature) ProtoMessage() + func (m *MultiSignature) GetSignatures() [][]byte + func (m *MultiSignature) Marshal() (dAtA []byte, err error) + func (m *MultiSignature) MarshalTo(dAtA []byte) (int, error) + func (m *MultiSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MultiSignature) Reset() + func (m *MultiSignature) Size() (n int) + func (m *MultiSignature) String() string + func (m *MultiSignature) Unmarshal(dAtA []byte) error + func (m *MultiSignature) XXX_DiscardUnknown() + func (m *MultiSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MultiSignature) XXX_Merge(src proto.Message) + func (m *MultiSignature) XXX_Size() int + func (m *MultiSignature) XXX_Unmarshal(b []byte) error + type PubKeyMultisigThreshold struct + K uint32 + PubKeys []*PublicKey + func (*PubKeyMultisigThreshold) Descriptor() ([]byte, []int) + func (*PubKeyMultisigThreshold) ProtoMessage() + func (m *PubKeyMultisigThreshold) GetK() uint32 + func (m *PubKeyMultisigThreshold) GetPubKeys() []*PublicKey + func (m *PubKeyMultisigThreshold) Marshal() (dAtA []byte, err error) + func (m *PubKeyMultisigThreshold) MarshalTo(dAtA []byte) (int, error) + func (m *PubKeyMultisigThreshold) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PubKeyMultisigThreshold) Reset() + func (m *PubKeyMultisigThreshold) Size() (n int) + func (m *PubKeyMultisigThreshold) String() string + func (m *PubKeyMultisigThreshold) Unmarshal(dAtA []byte) error + func (m *PubKeyMultisigThreshold) XXX_DiscardUnknown() + func (m *PubKeyMultisigThreshold) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PubKeyMultisigThreshold) XXX_Merge(src proto.Message) + func (m *PubKeyMultisigThreshold) XXX_Size() int + func (m *PubKeyMultisigThreshold) XXX_Unmarshal(b []byte) error + type PublicKey struct + Sum isPublicKey_Sum + func (*PublicKey) Descriptor() ([]byte, []int) + func (*PublicKey) ProtoMessage() + func (*PublicKey) XXX_OneofWrappers() []interface{} + func (m *PublicKey) GetAnyPubkey() *types.Any + func (m *PublicKey) GetEd25519() []byte + func (m *PublicKey) GetMultisig() *PubKeyMultisigThreshold + func (m *PublicKey) GetSecp256K1() []byte + func (m *PublicKey) GetSecp256R1() []byte + func (m *PublicKey) GetSm2() []byte + func (m *PublicKey) GetSr25519() []byte + func (m *PublicKey) GetSum() isPublicKey_Sum + func (m *PublicKey) Marshal() (dAtA []byte, err error) + func (m *PublicKey) MarshalTo(dAtA []byte) (int, error) + func (m *PublicKey) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PublicKey) Reset() + func (m *PublicKey) Size() (n int) + func (m *PublicKey) String() string + func (m *PublicKey) Unmarshal(dAtA []byte) error + func (m *PublicKey) XXX_DiscardUnknown() + func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PublicKey) XXX_Merge(src proto.Message) + func (m *PublicKey) XXX_Size() int + func (m *PublicKey) XXX_Unmarshal(b []byte) error + type PublicKeyCodec interface + Decode func(key *PublicKey) (crypto.PubKey, error) + Encode func(key crypto.PubKey) (*PublicKey, error) + type PublicKey_AnyPubkey struct + AnyPubkey *types.Any + func (m *PublicKey_AnyPubkey) MarshalTo(dAtA []byte) (int, error) + func (m *PublicKey_AnyPubkey) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PublicKey_AnyPubkey) Size() (n int) + type PublicKey_Ed25519 struct + Ed25519 []byte + func (m *PublicKey_Ed25519) MarshalTo(dAtA []byte) (int, error) + func (m *PublicKey_Ed25519) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PublicKey_Ed25519) Size() (n int) + type PublicKey_Multisig struct + Multisig *PubKeyMultisigThreshold + func (m *PublicKey_Multisig) MarshalTo(dAtA []byte) (int, error) + func (m *PublicKey_Multisig) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PublicKey_Multisig) Size() (n int) + type PublicKey_Secp256K1 struct + Secp256K1 []byte + func (m *PublicKey_Secp256K1) MarshalTo(dAtA []byte) (int, error) + func (m *PublicKey_Secp256K1) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PublicKey_Secp256K1) Size() (n int) + type PublicKey_Secp256R1 struct + Secp256R1 []byte + func (m *PublicKey_Secp256R1) MarshalTo(dAtA []byte) (int, error) + func (m *PublicKey_Secp256R1) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PublicKey_Secp256R1) Size() (n int) + type PublicKey_Sm2 struct + Sm2 []byte + func (m *PublicKey_Sm2) MarshalTo(dAtA []byte) (int, error) + func (m *PublicKey_Sm2) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PublicKey_Sm2) Size() (n int) + type PublicKey_Sr25519 struct + Sr25519 []byte + func (m *PublicKey_Sr25519) MarshalTo(dAtA []byte) (int, error) + func (m *PublicKey_Sr25519) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PublicKey_Sr25519) Size() (n int)