sr25519

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrivKeySize = 32
	PrivKeyName = "tendermint/PrivKeySr25519"
)
View Source
const PubKeyName = "tendermint/PubKeySr25519"

Variables

View Source
var (
	ErrInvalidLengthKeys        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowKeys          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupKeys = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Sr25519 = sr25519Algo{}

Functions

This section is empty.

Types

type PrivKey

type PrivKey struct {
	tmsr25519.PrivKey
}

func GenPrivKey

func GenPrivKey() *PrivKey

func (*PrivKey) Equals

func (m *PrivKey) Equals(other cryptotypes.LedgerPrivKey) bool

type conversion

func (*PrivKey) ProtoMessage

func (m *PrivKey) ProtoMessage()

func (*PrivKey) PubKey

func (m *PrivKey) PubKey() cryptotypes.PubKey

type conversion

func (*PrivKey) Reset

func (m *PrivKey) Reset()

func (*PrivKey) String

func (m *PrivKey) String() string

type PubKey

type PubKey struct {
	Key github_com_cometbft_cometbft_crypto_sr25519.PubKey `protobuf:"bytes,1,opt,name=key,proto3,casttype=github.com/cometbft/cometbft/crypto/sr25519.PubKey" json:"key,omitempty"`
}

PubKey defines a sr25519 ECDSA public key.

func (*PubKey) Address

func (m *PubKey) Address() crypto.Address

func (PubKey) Bytes

func (m PubKey) Bytes() []byte

func (*PubKey) Descriptor

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

func (*PubKey) Equals

func (m *PubKey) Equals(other cryptotypes.PubKey) bool

func (*PubKey) Marshal

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

func (*PubKey) MarshalTo

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

func (*PubKey) MarshalToSizedBuffer

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

func (*PubKey) ProtoMessage

func (*PubKey) ProtoMessage()

func (*PubKey) Reset

func (m *PubKey) Reset()

func (*PubKey) Size

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

func (PubKey) String

func (m PubKey) String() string

func (PubKey) Type

func (m PubKey) Type() string

func (*PubKey) Unmarshal

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

func (PubKey) VerifySignature

func (m PubKey) VerifySignature(msg []byte, sigBytes []byte) bool

func (*PubKey) XXX_DiscardUnknown

func (m *PubKey) XXX_DiscardUnknown()

func (*PubKey) XXX_Marshal

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

func (*PubKey) XXX_Merge

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

func (*PubKey) XXX_MessageName

func (*PubKey) XXX_MessageName() string

func (*PubKey) XXX_Size

func (m *PubKey) XXX_Size() int

func (*PubKey) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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