Module crypto

Source
Expand description

Cryptographic utilities for use by the domain types

Functionsยง

blake2b
Computes a BLAKE2b hash of arbitrary static length for given data
cardano_spo_public_key_and_signature
Signs the Plutus data bytes of datum_msg using key and returns it together with the verification key.
hash
Crates a 32 bytes (256 bits) BLAKE2b hash of the Plutus datum representation of msg
sc_public_key_and_signature
Calculates the public key and signature for given private key and hashed data.
sc_public_key_and_signature_for_datum
Signs the Plutus data bytes of datum_msg using key and returns it together with the verification key.