go-libp2p-core: github.com/libp2p/go-libp2p-core/crypto/pb Index | Files

package crypto_pb

import "github.com/libp2p/go-libp2p-core/crypto/pb"

Index

Package Files

crypto.pb.go

Variables

var (
    ErrInvalidLengthCrypto        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowCrypto          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupCrypto = fmt.Errorf("proto: unexpected end of group")
)
var KeyType_name = map[int32]string{
    0:  "RSA",
    1:  "Ed25519",
    2:  "Secp256k1",
    3:  "ECDSA",
}
var KeyType_value = map[string]int32{
    "RSA":       0,
    "Ed25519":   1,
    "Secp256k1": 2,
    "ECDSA":     3,
}

type KeyType Uses

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

func (KeyType) Enum Uses

func (x KeyType) Enum() *KeyType

func (KeyType) EnumDescriptor Uses

func (KeyType) EnumDescriptor() ([]byte, []int)

func (KeyType) String Uses

func (x KeyType) String() string

func (*KeyType) UnmarshalJSON Uses

func (x *KeyType) UnmarshalJSON(data []byte) error

type PrivateKey Uses

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"`
}

func (*PrivateKey) Descriptor Uses

func (*PrivateKey) Descriptor() ([]byte, []int)

func (*PrivateKey) GetData Uses

func (m *PrivateKey) GetData() []byte

func (*PrivateKey) GetType Uses

func (m *PrivateKey) GetType() KeyType

func (*PrivateKey) Marshal Uses

func (m *PrivateKey) Marshal() (dAtA []byte, err error)

func (*PrivateKey) MarshalTo Uses

func (m *PrivateKey) MarshalTo(dAtA []byte) (int, error)

func (*PrivateKey) MarshalToSizedBuffer Uses

func (m *PrivateKey) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PrivateKey) ProtoMessage Uses

func (*PrivateKey) ProtoMessage()

func (*PrivateKey) Reset Uses

func (m *PrivateKey) Reset()

func (*PrivateKey) Size Uses

func (m *PrivateKey) Size() (n int)

func (*PrivateKey) String Uses

func (m *PrivateKey) String() string

func (*PrivateKey) Unmarshal Uses

func (m *PrivateKey) Unmarshal(dAtA []byte) error

func (*PrivateKey) XXX_DiscardUnknown Uses

func (m *PrivateKey) XXX_DiscardUnknown()

func (*PrivateKey) XXX_Marshal Uses

func (m *PrivateKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PrivateKey) XXX_Merge Uses

func (m *PrivateKey) XXX_Merge(src proto.Message)

func (*PrivateKey) XXX_Size Uses

func (m *PrivateKey) XXX_Size() int

func (*PrivateKey) XXX_Unmarshal Uses

func (m *PrivateKey) XXX_Unmarshal(b []byte) error

type PublicKey Uses

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"`
}

func (*PublicKey) Descriptor Uses

func (*PublicKey) Descriptor() ([]byte, []int)

func (*PublicKey) GetData Uses

func (m *PublicKey) GetData() []byte

func (*PublicKey) GetType Uses

func (m *PublicKey) GetType() KeyType

func (*PublicKey) Marshal Uses

func (m *PublicKey) Marshal() (dAtA []byte, err error)

func (*PublicKey) MarshalTo Uses

func (m *PublicKey) MarshalTo(dAtA []byte) (int, error)

func (*PublicKey) MarshalToSizedBuffer Uses

func (m *PublicKey) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PublicKey) ProtoMessage Uses

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset Uses

func (m *PublicKey) Reset()

func (*PublicKey) Size Uses

func (m *PublicKey) Size() (n int)

func (*PublicKey) String Uses

func (m *PublicKey) String() string

func (*PublicKey) Unmarshal Uses

func (m *PublicKey) Unmarshal(dAtA []byte) error

func (*PublicKey) XXX_DiscardUnknown Uses

func (m *PublicKey) XXX_DiscardUnknown()

func (*PublicKey) XXX_Marshal Uses

func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublicKey) XXX_Merge Uses

func (m *PublicKey) XXX_Merge(src proto.Message)

func (*PublicKey) XXX_Size Uses

func (m *PublicKey) XXX_Size() int

func (*PublicKey) XXX_Unmarshal Uses

func (m *PublicKey) XXX_Unmarshal(b []byte) error

Package crypto_pb imports 5 packages (graph) and is imported by 23 packages. Updated 2020-02-20. Refresh now. Tools for package owners.