A token input for STAS 3.0 spend operations.
The signing_key field accepts a BSV.Tokens.SigningKey.t().
For backward compatibility, private_key is still accepted but deprecated.
Summary
Functions
Resolve the effective signing key.
Types
@type t() :: %BSV.Tokens.TokenInput{ 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.