Documentation ¶
Overview ¶
Package crypto_pb is a generated protocol buffer package.
It is generated from these files:
crypto.proto
It has these top-level messages:
PublicKey PrivateKey
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KeyType_name = map[int32]string{
0: "RSA",
1: "Ed25519",
2: "Secp256k1",
}
View Source
var KeyType_value = map[string]int32{
"RSA": 0,
"Ed25519": 1,
"Secp256k1": 2,
}
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct { Type *KeyType `protobuf:"varint,1,req,enum=crypto.pb.KeyType" json:"Type,omitempty"` Data []byte `protobuf:"bytes,2,req" json:"Data,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*PrivateKey) GetData ¶
func (m *PrivateKey) GetData() []byte
func (*PrivateKey) GetType ¶
func (m *PrivateKey) GetType() KeyType
func (*PrivateKey) ProtoMessage ¶
func (*PrivateKey) ProtoMessage()
func (*PrivateKey) Reset ¶
func (m *PrivateKey) Reset()
func (*PrivateKey) String ¶
func (m *PrivateKey) String() string
Click to show internal directories.
Click to hide internal directories.