merkel v1.0.5 Merkel.Crypto

Module to perform merkle tree hashing

Link to this section Summary

Functions

Performs hash

Public helper routine to concat hashes takes hash binaries or Nodes as args

Public helper for bitcoin double hash

Link to this section Functions

Performs hash

Either uses the default Erlang crypto library or accepts a user specified anonymous function with arity 1 which accepts a binary argument

Link to this function

hash(bin, type)

Link to this function

hash(bin, type, func)

hash(binary(), none() | atom(), none() | function()) :: binary()
Link to this function

hash_concat(lh, rh)

Public helper routine to concat hashes takes hash binaries or Nodes as args

Link to this function

sha256_2_hash(bin)

sha256_2_hash(binary()) :: binary()

Public helper for bitcoin double hash