// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v5.29.2
// source: core/crypto/pb/crypto.proto

package pb

import (
	protoreflect 
	protoimpl 
	reflect 
	sync 
	unsafe 
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type KeyType int32

const (
	KeyType_RSA       KeyType = 0
	KeyType_Ed25519   KeyType = 1
	KeyType_Secp256k1 KeyType = 2
	KeyType_ECDSA     KeyType = 3
)

// Enum value maps for KeyType.
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,
	}
)

func ( KeyType) () *KeyType {
	 := new(KeyType)
	* = 
	return 
}

func ( KeyType) () string {
	return protoimpl.X.EnumStringOf(.Descriptor(), protoreflect.EnumNumber())
}

func (KeyType) () protoreflect.EnumDescriptor {
	return file_core_crypto_pb_crypto_proto_enumTypes[0].Descriptor()
}

func (KeyType) () protoreflect.EnumType {
	return &file_core_crypto_pb_crypto_proto_enumTypes[0]
}

func ( KeyType) () protoreflect.EnumNumber {
	return protoreflect.EnumNumber()
}

// Deprecated: Do not use.
func ( *KeyType) ( []byte) error {
	,  := protoimpl.X.UnmarshalJSONEnum(.Descriptor(), )
	if  != nil {
		return 
	}
	* = KeyType()
	return nil
}

// Deprecated: Use KeyType.Descriptor instead.
func (KeyType) () ([]byte, []int) {
	return file_core_crypto_pb_crypto_proto_rawDescGZIP(), []int{0}
}

type PublicKey struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	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"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func ( *PublicKey) () {
	* = PublicKey{}
	 := &file_core_crypto_pb_crypto_proto_msgTypes[0]
	 := protoimpl.X.MessageStateOf(protoimpl.Pointer())
	.StoreMessageInfo()
}

func ( *PublicKey) () string {
	return protoimpl.X.MessageStringOf()
}

func (*PublicKey) () {}

func ( *PublicKey) () protoreflect.Message {
	 := &file_core_crypto_pb_crypto_proto_msgTypes[0]
	if  != nil {
		 := protoimpl.X.MessageStateOf(protoimpl.Pointer())
		if .LoadMessageInfo() == nil {
			.StoreMessageInfo()
		}
		return 
	}
	return .MessageOf()
}

// Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.
func (*PublicKey) () ([]byte, []int) {
	return file_core_crypto_pb_crypto_proto_rawDescGZIP(), []int{0}
}

func ( *PublicKey) () KeyType {
	if  != nil && .Type != nil {
		return *.Type
	}
	return KeyType_RSA
}

func ( *PublicKey) () []byte {
	if  != nil {
		return .Data
	}
	return nil
}

type PrivateKey struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	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"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func ( *PrivateKey) () {
	* = PrivateKey{}
	 := &file_core_crypto_pb_crypto_proto_msgTypes[1]
	 := protoimpl.X.MessageStateOf(protoimpl.Pointer())
	.StoreMessageInfo()
}

func ( *PrivateKey) () string {
	return protoimpl.X.MessageStringOf()
}

func (*PrivateKey) () {}

func ( *PrivateKey) () protoreflect.Message {
	 := &file_core_crypto_pb_crypto_proto_msgTypes[1]
	if  != nil {
		 := protoimpl.X.MessageStateOf(protoimpl.Pointer())
		if .LoadMessageInfo() == nil {
			.StoreMessageInfo()
		}
		return 
	}
	return .MessageOf()
}

// Deprecated: Use PrivateKey.ProtoReflect.Descriptor instead.
func (*PrivateKey) () ([]byte, []int) {
	return file_core_crypto_pb_crypto_proto_rawDescGZIP(), []int{1}
}

func ( *PrivateKey) () KeyType {
	if  != nil && .Type != nil {
		return *.Type
	}
	return KeyType_RSA
}

func ( *PrivateKey) () []byte {
	if  != nil {
		return .Data
	}
	return nil
}

var File_core_crypto_pb_crypto_proto protoreflect.FileDescriptor

const file_core_crypto_pb_crypto_proto_rawDesc = "" +
	"\n" +
	"\x1bcore/crypto/pb/crypto.proto\x12\tcrypto.pb\"G\n" +
	"\tPublicKey\x12&\n" +
	"\x04Type\x18\x01 \x02(\x0e2\x12.crypto.pb.KeyTypeR\x04Type\x12\x12\n" +
	"\x04Data\x18\x02 \x02(\fR\x04Data\"H\n" +
	"\n" +
	"PrivateKey\x12&\n" +
	"\x04Type\x18\x01 \x02(\x0e2\x12.crypto.pb.KeyTypeR\x04Type\x12\x12\n" +
	"\x04Data\x18\x02 \x02(\fR\x04Data*9\n" +
	"\aKeyType\x12\a\n" +
	"\x03RSA\x10\x00\x12\v\n" +
	"\aEd25519\x10\x01\x12\r\n" +
	"\tSecp256k1\x10\x02\x12\t\n" +
	"\x05ECDSA\x10\x03B,Z*github.com/libp2p/go-libp2p/core/crypto/pb"

var (
	file_core_crypto_pb_crypto_proto_rawDescOnce sync.Once
	file_core_crypto_pb_crypto_proto_rawDescData []byte
)

func file_core_crypto_pb_crypto_proto_rawDescGZIP() []byte {
	file_core_crypto_pb_crypto_proto_rawDescOnce.Do(func() {
		file_core_crypto_pb_crypto_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_core_crypto_pb_crypto_proto_rawDesc), len(file_core_crypto_pb_crypto_proto_rawDesc)))
	})
	return file_core_crypto_pb_crypto_proto_rawDescData
}

var file_core_crypto_pb_crypto_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_core_crypto_pb_crypto_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_core_crypto_pb_crypto_proto_goTypes = []any{
	(KeyType)(0),       // 0: crypto.pb.KeyType
	(*PublicKey)(nil),  // 1: crypto.pb.PublicKey
	(*PrivateKey)(nil), // 2: crypto.pb.PrivateKey
}
var file_core_crypto_pb_crypto_proto_depIdxs = []int32{
	0, // 0: crypto.pb.PublicKey.Type:type_name -> crypto.pb.KeyType
	0, // 1: crypto.pb.PrivateKey.Type:type_name -> crypto.pb.KeyType
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_core_crypto_pb_crypto_proto_init() }
func file_core_crypto_pb_crypto_proto_init() {
	if File_core_crypto_pb_crypto_proto != nil {
		return
	}
	type  struct{}
	 := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf({}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_core_crypto_pb_crypto_proto_rawDesc), len(file_core_crypto_pb_crypto_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_core_crypto_pb_crypto_proto_goTypes,
		DependencyIndexes: file_core_crypto_pb_crypto_proto_depIdxs,
		EnumInfos:         file_core_crypto_pb_crypto_proto_enumTypes,
		MessageInfos:      file_core_crypto_pb_crypto_proto_msgTypes,
	}.Build()
	File_core_crypto_pb_crypto_proto = .File
	file_core_crypto_pb_crypto_proto_goTypes = nil
	file_core_crypto_pb_crypto_proto_depIdxs = nil
}