BitcoinElixir.Hash (bitcoin_elixir v0.1.0)

Copy Markdown View Source

The hash functions Bitcoin Cash uses, from Erlang's :crypto.

Summary

Functions

RIPEMD-160 of SHA-256 (used for P2PKH and P2SH20 payloads).

SHA-256 applied twice (used for txids, block hashes and checksums).

SHA-256.

Functions

hash160(data)

@spec hash160(iodata()) :: binary()

RIPEMD-160 of SHA-256 (used for P2PKH and P2SH20 payloads).

hash256(data)

@spec hash256(iodata()) :: binary()

SHA-256 applied twice (used for txids, block hashes and checksums).

sha256(data)

@spec sha256(iodata()) :: binary()

SHA-256.