Documentation ¶
Index ¶
- Variables
- type KeyType
- func (KeyType) Descriptor() protoreflect.EnumDescriptor
- func (x KeyType) Enum() *KeyType
- func (KeyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x KeyType) Number() protoreflect.EnumNumber
- func (x KeyType) String() string
- func (KeyType) Type() protoreflect.EnumType
- func (x *KeyType) UnmarshalJSON(b []byte) errordeprecated
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyType_name = map[int32]string{ 0: "RSA", 1: "Ed25519", 2: "Secp256k1", 3: "ECDSA", } KeyType_value = map[string]int32{ "RSA": 0, "Ed25519": 1, "Secp256k1": 2, "ECDSA": 3, } )
Enum value maps for KeyType.
View Source
var File_pb_crypto_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type KeyType ¶
type KeyType int32
func (KeyType) Descriptor ¶
func (KeyType) Descriptor() protoreflect.EnumDescriptor
func (KeyType) EnumDescriptor
deprecated
func (KeyType) Number ¶
func (x KeyType) Number() protoreflect.EnumNumber
func (KeyType) Type ¶
func (KeyType) Type() protoreflect.EnumType
func (*KeyType) UnmarshalJSON
deprecated
type PrivateKey ¶
type PrivateKey struct { Type *KeyType `protobuf:"varint,1,req,name=Type,enum=crypto.pb.KeyType" json:"Type,omitempty"` Data []byte `protobuf:"bytes,2,req,name=Data" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*PrivateKey) Descriptor
deprecated
func (*PrivateKey) Descriptor() ([]byte, []int)
Deprecated: Use PrivateKey.ProtoReflect.Descriptor instead.
func (*PrivateKey) GetData ¶
func (x *PrivateKey) GetData() []byte
func (*PrivateKey) GetType ¶
func (x *PrivateKey) GetType() KeyType
func (*PrivateKey) ProtoMessage ¶
func (*PrivateKey) ProtoMessage()
func (*PrivateKey) ProtoReflect ¶
func (x *PrivateKey) ProtoReflect() protoreflect.Message
func (*PrivateKey) Reset ¶
func (x *PrivateKey) Reset()
func (*PrivateKey) String ¶
func (x *PrivateKey) String() string
type PublicKey ¶
type PublicKey struct { Type *KeyType `protobuf:"varint,1,req,name=Type,enum=crypto.pb.KeyType" json:"Type,omitempty"` Data []byte `protobuf:"bytes,2,req,name=Data" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*PublicKey) Descriptor
deprecated
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶
func (x *PublicKey) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.