Crypto
function blake2b : bytes -> bytes
Runs the blake2b hash algorithm
over the given bytes
data and returns a bytes
representing the hash.
Note that
blake2b
is deprecated. Please useCrypto.blake2b
.
function sha256 : bytes -> bytes
Runs the sha256 hash algorithm over the given
bytes
data and returns a bytes
representing the hash.
Note that
sha_256
is deprecated. Please useCrypto.sha256
.
function sha512 : bytes -> bytes
Runs the sha512 hash algorithm over the given
bytes
data and returns a bytes
representing the hash.
Note that
sha_512
is deprecated. Please useCrypto.sha512
.
function hash_key : key -> key_hash
Hashes a key for easy comparison and storage.
Note that
hash_key
is deprecated. Please useCrypto.hash_key
.
function check : key -> signature -> 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.
Note that
crypto_check
is deprecated. Please useCrypto.check
.