sha256()
: The operator performs sha256 hashing on the bytes data passed and returns a 256-bit numeric hash
keccak()
:The operator performs keccak256 hashing on the bytes data passed and returns a 256-bit numeric hash
blake2b()
: The operator performs blake2b hashing on the bytes data passed and returns a 256-bit numeric hash
sigverify()
:It verifies the given data and signature are signed by the private key corresponding to the given public key and signature
coco Builtins
endpoint invokable TestBuiltins(data Bytes) -> (hash U256):
hash = sha256(data)
hash = keccak(data)
hash = blake2b(data)