Documentation
¶
Index ¶
Constants ¶
View Source
const (
PubKeyName = "cometbft/PubKeyBls12_381"
)
Variables ¶
This section is empty.
Functions ¶
func GetHrpPrefix ¶ added in v0.14.0
GetHrpPrefix returns the human-readable prefix for a given address. Examples of valid address HRPs are "cosmosvalcons", "cosmosvaloper". So this will return "cosmos" as the prefix
func PubKeyAddress ¶ added in v0.13.0
func PubKeyAddressHelper ¶ added in v0.14.0
Types ¶
type Bls12PubKey ¶
type Bls12PubKey []byte
func (Bls12PubKey) Address ¶
func (pubKey Bls12PubKey) Address() crypto.Address
Address is the SHA256-20 of the raw pubkey bytes.
func (Bls12PubKey) Bytes ¶
func (pubKey Bls12PubKey) Bytes() []byte
Bytes returns the PubKey byte format.
func (Bls12PubKey) String ¶
func (pubKey Bls12PubKey) String() string
func (Bls12PubKey) Type ¶
func (Bls12PubKey) Type() string
func (Bls12PubKey) VerifySignature ¶
func (pubKey Bls12PubKey) VerifySignature(msg []byte, sig []byte) bool
Click to show internal directories.
Click to hide internal directories.