# Functions
BlsPrivKeyToHex converts a BLS private key to a hex string.
BlsPubKeyToHex converts a BLS public key to a hex string.
BlsSignatureToHex converts a BLS signature to a hex string.
Bytes2Hex converts bytes to a hex string.
GetContext returns a context with a default timeout.
GetContextWithCancel returns a context with a timeout and a cancel function.
GetContextWithTimeout returns a context with a timeout.
No description provided by the author
GetSignatureAffine returns the affine coordinates of the signature.
GetSigner returns a transaction signer.
GetValidAddress returns a valid address from the given hex string.
Hash calculates the keccak hash of elements.
Hex2Bytes converts a hex string to bytes.
HexToBlsPrivKey converts a hex string to a BLS private key.
HexToBlsPubKey converts a hex string to a BLS public key.
HexToBlsSignature converts a hex string to a BLS signature.
NewCache creates a new Cache instance.
PoseidonHash calculates the poseidon hash of elements.
RandomBlsKey generates a random BLS key pair for testing.
RandomHex generates a random hex string of length n.
Uint64ToBytes converts a uint64 to bytes.
VerifyECDSASignature verifies the ecdsa signature of the given data.
VerifySignature verifies the signature of the given data.
# Constants
DefaultContextTimeout is the default timeout for context.
# Type aliases
TimeDuration is a wrapper around time.Duration that allows us to unmarshal in TOML.