A UTXO payment input for token transactions.
The signing_key field accepts a BSV.Tokens.SigningKey.t():
{:single, PrivateKey.t()}for P2PKH{:multi, [PrivateKey.t()], multisig_script}for P2MPKH
For backward compatibility, the private_key field is still accepted but
deprecated — use signing_key instead.
Summary
Functions
Resolve the effective signing key: prefers signing_key, falls back to
wrapping private_key for backward compatibility.
Types
@type t() :: %BSV.Tokens.Payment{ locking_script: BSV.Script.t(), private_key: BSV.PrivateKey.t() | nil, satoshis: non_neg_integer(), signing_key: BSV.Tokens.SigningKey.t(), txid: binary(), vout: non_neg_integer() }
Functions
@spec resolve_signing_key(t()) :: BSV.Tokens.SigningKey.t()
Resolve the effective signing key: prefers signing_key, falls back to
wrapping private_key for backward compatibility.