Documentation ¶
Index ¶
- Variables
- type KeyType
- type PrivateKey
- func (*PrivateKey) Descriptor() ([]byte, []int)
- 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 (*PrivateKey) ProtoMessage()
- 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 (dst *PrivateKey) XXX_Merge(src proto.Message)
- func (m *PrivateKey) XXX_Size() int
- func (m *PrivateKey) XXX_Unmarshal(b []byte) error
- type PublicKey
- func (*PublicKey) Descriptor() ([]byte, []int)
- 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 (*PublicKey) ProtoMessage()
- 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 (dst *PublicKey) XXX_Merge(src proto.Message)
- func (m *PublicKey) XXX_Size() int
- func (m *PublicKey) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthCrypto = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCrypto = fmt.Errorf("proto: integer overflow") )
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,name=Type,enum=crypto.pb.KeyType" json:"Type"` Data []byte `protobuf:"bytes,2,req,name=Data" json:"Data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PrivateKey) Descriptor ¶
func (*PrivateKey) Descriptor() ([]byte, []int)
func (*PrivateKey) GetData ¶
func (m *PrivateKey) GetData() []byte
func (*PrivateKey) GetType ¶
func (m *PrivateKey) GetType() KeyType
func (*PrivateKey) Marshal ¶
func (m *PrivateKey) Marshal() (dAtA []byte, err error)
func (*PrivateKey) ProtoMessage ¶
func (*PrivateKey) ProtoMessage()
func (*PrivateKey) Reset ¶
func (m *PrivateKey) Reset()
func (*PrivateKey) Size ¶
func (m *PrivateKey) Size() (n int)
func (*PrivateKey) String ¶
func (m *PrivateKey) String() string
func (*PrivateKey) Unmarshal ¶
func (m *PrivateKey) Unmarshal(dAtA []byte) error
func (*PrivateKey) XXX_DiscardUnknown ¶
func (m *PrivateKey) XXX_DiscardUnknown()
func (*PrivateKey) XXX_Marshal ¶
func (m *PrivateKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivateKey) XXX_Merge ¶
func (dst *PrivateKey) XXX_Merge(src proto.Message)
func (*PrivateKey) XXX_Size ¶
func (m *PrivateKey) XXX_Size() int
func (*PrivateKey) XXX_Unmarshal ¶
func (m *PrivateKey) XXX_Unmarshal(b []byte) error
type PublicKey ¶
type PublicKey struct { Type KeyType `protobuf:"varint,1,req,name=Type,enum=crypto.pb.KeyType" json:"Type"` Data []byte `protobuf:"bytes,2,req,name=Data" json:"Data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PublicKey) Descriptor ¶
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) XXX_DiscardUnknown ¶
func (m *PublicKey) XXX_DiscardUnknown()
func (*PublicKey) XXX_Marshal ¶
func (*PublicKey) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.