Crypto
let blake2b: (b: bytes) => bytes
Runs the blake2b hash algorithm
over the given bytes
data and returns a bytes
representing the hash.
let sha256: (b: bytes) => bytes
Runs the sha256 hash algorithm
over the given bytes
data and returns a bytes
representing the
hash.
let sha512: (b: bytes) => bytes
Runs the sha512 hash algorithm over the given
bytes
data and returns a bytes
representing the hash.
let sha3: (b: bytes) => bytes
Runs the sha3 hash algorithm over the given
bytes
data and returns a bytes
representing the hash.
let keccak: (b: bytes) => bytes
Runs the keccak over the given
bytes
data and returns a bytes
representing the hash.
let hash_key: (k: key) => key_hash
Hashes a key for easy comparison and storage.
let check: (k: key, s: signature, b: bytes) => bool
Check that a message has been signed by a particular key.
⚠️ There is no way to generate a signed message in LIGO. This is because that would require storing a private key on chain, at which point it isn't very private anymore.