merkle v0.2.2
Merkle
Summary
The hexadecimal representation of a cryptographic hash
Decodes hexadecimal string (digest) into binary string (hash)
Encodes binary string (hash) into hexadecimal string (digest)
This macro implements methods for handling Merkle Trees
Types
The hexadecimal representation of a cryptographic hash.
Functions
Decodes hexadecimal string (digest) into binary string (hash).
Examples
iex> Merkle.hexDecode("FABADA")
<<255, 186, 218>>
Encodes binary string (hash) into hexadecimal string (digest).
Examples
iex> Merkle.hexEncode(<<255, 186, 218>>)
"FABADA"
Macros
This macro implements methods for handling Merkle Trees.
Examples
iex> defmodule Tree do
...> use Merkle, &Merkle.Mixers.Bin.sha256/2
...> end
{:module, Tree, <<...>>, {:module, Tree.Helpers, <<...>>, {:random, 1}}}