Owner address for token destinations — either a standard address (P2PKH) or a 20-byte MPKH (P2MPKH).
Both produce the same 20-byte hash in the locking script. The difference is in how the unlocking script is constructed at spend time.
Variants
{:address, String.t()} — Base58Check address string
{:mpkh, <<_::160>>} — 20-byte HASH160 of multisig script
Summary
Functions
Create from a Base58Check address string.
Create from a 20-byte MPKH.
Create from a multisig script.
Get the 20-byte hash (PKH or MPKH).
Types
@type t() :: {:address, String.t()} | {:mpkh, <<_::160>>}
Functions
Create from a Base58Check address string.
@spec from_mpkh(<<_::160>>) :: t()
Create from a 20-byte MPKH.
@spec from_multisig(BSV.Transaction.P2MPKH.multisig_script()) :: t()
Create from a multisig script.
Get the 20-byte hash (PKH or MPKH).