crypto

package
v1.7.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2023 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type PrivateKey

type PrivateKey struct {
	// Types that are valid to be assigned to Sum:
	//	*PrivateKey_Ed25519
	//	*PrivateKey_Secp256K1
	Sum                  isPrivateKey_Sum `protobuf_oneof:"sum"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

PrivateKey defines the keys available for use with Tendermint Validators WARNING PrivateKey is used for internal purposes only

func (*PrivateKey) Descriptor

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

func (*PrivateKey) GetEd25519

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

func (*PrivateKey) GetSecp256K1 added in v1.6.4

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

func (*PrivateKey) GetSum

func (m *PrivateKey) GetSum() isPrivateKey_Sum

func (*PrivateKey) Marshal added in v1.3.0

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

func (*PrivateKey) MarshalTo added in v1.3.0

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

func (*PrivateKey) MarshalToSizedBuffer added in v1.3.0

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

func (*PrivateKey) ProtoMessage

func (*PrivateKey) ProtoMessage()

func (*PrivateKey) Reset

func (m *PrivateKey) Reset()

func (*PrivateKey) Size added in v1.3.0

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

func (*PrivateKey) String

func (m *PrivateKey) String() string

func (*PrivateKey) Unmarshal added in v1.3.0

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 (m *PrivateKey) XXX_Merge(src proto.Message)

func (*PrivateKey) XXX_OneofWrappers

func (*PrivateKey) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*PrivateKey) XXX_Size

func (m *PrivateKey) XXX_Size() int

func (*PrivateKey) XXX_Unmarshal

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

type PrivateKey_Ed25519

type PrivateKey_Ed25519 struct {
	Ed25519 []byte `protobuf:"bytes,1,opt,name=ed25519,proto3,oneof" json:"ed25519,omitempty"`
}

func (*PrivateKey_Ed25519) MarshalTo added in v1.3.0

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

func (*PrivateKey_Ed25519) MarshalToSizedBuffer added in v1.3.0

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

func (*PrivateKey_Ed25519) Size added in v1.3.0

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

type PrivateKey_Secp256K1 added in v1.6.4

type PrivateKey_Secp256K1 struct {
	Secp256K1 []byte `protobuf:"bytes,2,opt,name=secp256K1,proto3,oneof" json:"secp256K1,omitempty"`
}

func (*PrivateKey_Secp256K1) MarshalTo added in v1.6.4

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

func (*PrivateKey_Secp256K1) MarshalToSizedBuffer added in v1.6.4

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

func (*PrivateKey_Secp256K1) Size added in v1.6.4

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

type PublicKey

type PublicKey struct {
	// Types that are valid to be assigned to Sum:
	//	*PublicKey_Ed25519
	//	*PublicKey_Secp256K1
	Sum                  isPublicKey_Sum `protobuf_oneof:"sum"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

PublicKey defines the keys available for use with Tendermint Validators

func (*PublicKey) Compare

func (this *PublicKey) Compare(that interface{}) int

func (*PublicKey) Descriptor

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

func (*PublicKey) Equal

func (this *PublicKey) Equal(that interface{}) bool

func (*PublicKey) GetEd25519

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

func (*PublicKey) GetSecp256K1 added in v1.6.4

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

func (*PublicKey) GetSum

func (m *PublicKey) GetSum() isPublicKey_Sum

func (*PublicKey) Marshal added in v1.3.0

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

func (*PublicKey) MarshalTo added in v1.3.0

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

func (*PublicKey) MarshalToSizedBuffer added in v1.3.0

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

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset

func (m *PublicKey) Reset()

func (*PublicKey) Size added in v1.3.0

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

func (*PublicKey) String

func (m *PublicKey) String() string

func (*PublicKey) Unmarshal added in v1.3.0

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

func (*PublicKey) XXX_DiscardUnknown

func (m *PublicKey) XXX_DiscardUnknown()

func (*PublicKey) XXX_Marshal

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

func (*PublicKey) XXX_Merge

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

func (*PublicKey) XXX_OneofWrappers

func (*PublicKey) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*PublicKey) XXX_Size

func (m *PublicKey) XXX_Size() int

func (*PublicKey) XXX_Unmarshal

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

type PublicKey_Ed25519

type PublicKey_Ed25519 struct {
	Ed25519 []byte `protobuf:"bytes,1,opt,name=ed25519,proto3,oneof" json:"ed25519,omitempty"`
}

func (*PublicKey_Ed25519) Compare

func (this *PublicKey_Ed25519) Compare(that interface{}) int

func (*PublicKey_Ed25519) Equal

func (this *PublicKey_Ed25519) Equal(that interface{}) bool

func (*PublicKey_Ed25519) MarshalTo added in v1.3.0

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

func (*PublicKey_Ed25519) MarshalToSizedBuffer added in v1.3.0

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

func (*PublicKey_Ed25519) Size added in v1.3.0

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

type PublicKey_Secp256K1 added in v1.6.4

type PublicKey_Secp256K1 struct {
	Secp256K1 []byte `protobuf:"bytes,2,opt,name=secp256K1,proto3,oneof" json:"secp256K1,omitempty"`
}

func (*PublicKey_Secp256K1) Compare added in v1.6.4

func (this *PublicKey_Secp256K1) Compare(that interface{}) int

func (*PublicKey_Secp256K1) Equal added in v1.6.4

func (this *PublicKey_Secp256K1) Equal(that interface{}) bool

func (*PublicKey_Secp256K1) MarshalTo added in v1.6.4

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

func (*PublicKey_Secp256K1) MarshalToSizedBuffer added in v1.6.4

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

func (*PublicKey_Secp256K1) Size added in v1.6.4

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL