# `BitcoinElixir.Hash`
[🔗](https://github.com/cashlet-labs/bitcoin-elixir/blob/v0.1.0/lib/bitcoin_elixir/hash.ex#L1)

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

# `hash160`

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

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

# `hash256`

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

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

# `sha256`

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

SHA-256.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
