Documentation ¶
Index ¶
- Constants
- Variables
- type PrivKey
- type PubKey
- func (m *PubKey) Address() crypto.Address
- func (m PubKey) Bytes() []byte
- func (*PubKey) Descriptor() ([]byte, []int)
- func (m *PubKey) Equals(other cryptotypes.PubKey) bool
- func (m *PubKey) Marshal() (dAtA []byte, err error)
- func (m *PubKey) MarshalTo(dAtA []byte) (int, error)
- func (m *PubKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PubKey) ProtoMessage()
- func (m *PubKey) Reset()
- func (m *PubKey) Size() (n int)
- func (m PubKey) String() string
- func (m PubKey) Type() string
- func (m *PubKey) Unmarshal(dAtA []byte) error
- func (m PubKey) VerifySignature(msg []byte, sigBytes []byte) bool
- func (m *PubKey) XXX_DiscardUnknown()
- func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubKey) XXX_Merge(src proto.Message)
- func (*PubKey) XXX_MessageName() string
- func (m *PubKey) XXX_Size() int
- func (m *PubKey) XXX_Unmarshal(b []byte) error
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 ¶
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()
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) Descriptor ¶
func (*PubKey) MarshalToSizedBuffer ¶
func (*PubKey) ProtoMessage ¶
func (*PubKey) ProtoMessage()
func (*PubKey) XXX_DiscardUnknown ¶
func (m *PubKey) XXX_DiscardUnknown()
func (*PubKey) XXX_Marshal ¶
func (*PubKey) XXX_MessageName ¶
func (*PubKey) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.