Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BLS ¶
type BLS interface { VerifyBLS(key []byte, msg []byte, sig []byte) error VerifyAggregatedSig(pubKeysSigners [][]byte, message []byte, aggSig []byte) error }
BLS defines the functionality of a component able to verify BLS signatures
type Hasher ¶
type Hasher interface { Sha256(data []byte) ([]byte, error) Keccak256(data []byte) ([]byte, error) Ripemd160(data []byte) ([]byte, error) }
Hasher defines the functionality of a component able to generate hashes
type Secp256 ¶ added in v1.5.30
type Secp256 interface { VerifySecp256k1(key []byte, msg []byte, sig []byte, hashType uint8) error EncodeSecp256k1DERSignature(r, s []byte) []byte VerifySecp256r1(key []byte, msg []byte, sig []byte) error }
Secp256 defines the functionality of a component able to verify and encode Secp256 signatures
Click to show internal directories.
Click to hide internal directories.