package pb
import "github.com/libp2p/go-libp2p/core/crypto/pb"
Index ¶
- Variables
- type KeyType
- func (KeyType) Descriptor() protoreflect.EnumDescriptor
- func (x KeyType) Enum() *KeyType
- func (KeyType) EnumDescriptor() ([]byte, []int)
- func (x KeyType) Number() protoreflect.EnumNumber
- func (x KeyType) String() string
- func (KeyType) Type() protoreflect.EnumType
- func (x *KeyType) UnmarshalJSON(b []byte) error
- type PrivateKey
- func (*PrivateKey) Descriptor() ([]byte, []int)
- func (x *PrivateKey) GetData() []byte
- func (x *PrivateKey) GetType() KeyType
- func (*PrivateKey) ProtoMessage()
- func (x *PrivateKey) ProtoReflect() protoreflect.Message
- func (x *PrivateKey) Reset()
- func (x *PrivateKey) String() string
- type PublicKey
Variables ¶
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.
var File_core_crypto_pb_crypto_proto protoreflect.FileDescriptor
Types ¶
type KeyType ¶
type KeyType int32
const ( KeyType_RSA KeyType = 0 KeyType_Ed25519 KeyType = 1 KeyType_Secp256k1 KeyType = 2 KeyType_ECDSA KeyType = 3 )
func (KeyType) Descriptor ¶
func (KeyType) Descriptor() protoreflect.EnumDescriptor
func (KeyType) Enum ¶
func (KeyType) EnumDescriptor ¶
Deprecated: Use KeyType.Descriptor instead.
func (KeyType) Number ¶
func (x KeyType) Number() protoreflect.EnumNumber
func (KeyType) String ¶
func (KeyType) Type ¶
func (KeyType) Type() protoreflect.EnumType
func (*KeyType) UnmarshalJSON ¶
Deprecated: Do not use.
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 ¶
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: Use PublicKey.ProtoReflect.Descriptor instead.
func (*PublicKey) GetData ¶
func (*PublicKey) GetType ¶
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶
func (x *PublicKey) ProtoReflect() protoreflect.Message
func (*PublicKey) Reset ¶
func (x *PublicKey) Reset()
func (*PublicKey) String ¶
Source Files ¶
- Version
- v0.42.0 (latest)
- Published
- Jun 18, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 month ago –
Tools for package owners.