Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PrivKeySize defines the length of the PrivKey byte array. PrivKeySize = 32 // PubKeySize defines the length of the PubKey byte array. PubKeySize = 48 // KeyType is the string constant for the bls12_381 algorithm. KeyType = "bls12_381" )
View Source
const ( PrivKeyName = "cometbft/PrivKeyBLS12_381" PubKeyName = "cometbft/PubKeyBLS12_381" )
-------------------------------------.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivKey ¶
type PrivKey []byte
func GenPrivKey ¶
func NewPrivateKeyFromBytes ¶
func (PrivKey) Equals ¶
Equals returns true if two ECDSA private keys are equal and false otherwise.
type PubKey ¶
type PubKey []byte
func (PubKey) Address ¶
Address returns the address of the ECDSA public key. The function will return an empty address if the public key is invalid.
func (PubKey) Equals ¶
Equals returns true if the pubkey type is the same and their bytes are deeply equal.
func (PubKey) VerifySignature ¶
Click to show internal directories.
Click to hide internal directories.