Versions in this module Expand all Collapse all v1 v1.7.1 Jan 29, 2021 v1.7.0 Dec 8, 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") + var KeyType_name = map[int32]string + var KeyType_value = map[string]int32 + type KeyType int32 + const KeyType_ECDSA + const KeyType_Ed25519 + const KeyType_RSA + const KeyType_Secp256k1 + func (KeyType) EnumDescriptor() ([]byte, []int) + func (x *KeyType) UnmarshalJSON(data []byte) error + func (x KeyType) Enum() *KeyType + func (x KeyType) String() string + type PrivateKey struct + Data []byte + Type KeyType + func (*PrivateKey) Descriptor() ([]byte, []int) + func (*PrivateKey) ProtoMessage() + func (m *PrivateKey) GetData() []byte + func (m *PrivateKey) GetType() KeyType + func (m *PrivateKey) Marshal() (dAtA []byte, err error) + func (m *PrivateKey) MarshalTo(dAtA []byte) (int, error) + func (m *PrivateKey) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PrivateKey) Reset() + func (m *PrivateKey) Size() (n int) + func (m *PrivateKey) String() string + func (m *PrivateKey) Unmarshal(dAtA []byte) error + func (m *PrivateKey) XXX_DiscardUnknown() + func (m *PrivateKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PrivateKey) XXX_Merge(src proto.Message) + func (m *PrivateKey) XXX_Size() int + func (m *PrivateKey) XXX_Unmarshal(b []byte) error + type PublicKey struct + Data []byte + Type KeyType + func (*PublicKey) Descriptor() ([]byte, []int) + func (*PublicKey) ProtoMessage() + func (m *PublicKey) GetData() []byte + func (m *PublicKey) GetType() KeyType + 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