BIP-143 style signature hash computation for BSV (with FORKID).
Summary
Functions
@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.
@spec signature_hash( BSV.Transaction.t(), non_neg_integer(), binary(), non_neg_integer(), non_neg_integer() ) :: {:ok, <<_::256>>} | {:error, term()}
Compute the signature hash for an input.