Cryptography Builtins
Builtins.Sha256(data Bytes) -> (hash U256)
: The operator performs sha256 hashing on the bytes data passed and returns a 256-bit numeric hash
Builtins.Keccak(data Bytes) -> (hash U256)
:The operator performs keccak256 hashing on the bytes data passed and returns a 256-bit numeric hash
Builtins.Blake2b(data Bytes) -> (hash U256)
: The operator performs blake2b hashing on the bytes data passed and returns a 256-bit numeric hash
Builtins.Sigverify(data, signature Bytes) -> (ok Bool)
:It verifies the given data and signature are signed by the private key corresponding to the given public key and signature
coco Builtins
endpoint invoke TestBuiltins(data Bytes) -> (hash U256):
hash = Builtins.Sha256(data)
hash = Builtins.Keccak(data)
hash = Builtins.Blake2b(data)
memory ok = Builtins.Sigverify(data, signature: data, pubkey: data)