merkle_tree v2.0.0 MerkleTree.Crypto

This module defines some cryptographic hash functions used to hash block contents.

Link to this section Summary

Link to this section Types

Link to this type

algorithm()

algorithm() :: :md5 | :sha | :sha224 | :sha256 | :sha384 | :sha512

Link to this section Functions

Link to this function

hash(data, algorithm)

hash(String.t(), algorithm()) :: String.t()
Link to this function

sha256(data)

sha256(String.t()) :: String.t()