# `BSV.Transaction.Sighash`
[🔗](https://github.com/Bittoku/bsv_sdk_elixir/blob/main/lib/bsv/transaction/sighash.ex#L1)

BIP-143 style signature hash computation for BSV (with FORKID).

# `calc_preimage`

```elixir
@spec calc_preimage(
  BSV.Transaction.t(),
  non_neg_integer(),
  binary(),
  non_neg_integer(),
  non_neg_integer()
) :: {:ok, binary()} | {:error, term()}
```

Compute the BIP-143 preimage.

# `signature_hash`

```elixir
@spec signature_hash(
  BSV.Transaction.t(),
  non_neg_integer(),
  binary(),
  non_neg_integer(),
  non_neg_integer()
) :: {:ok, &lt;&lt;_::256&gt;&gt;} | {:error, term()}
```

Compute the signature hash for an input.

---

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