P2PKH signing template.
Summary
Functions
Estimated unlocking script length in bytes (sig + pubkey ≈ 106).
Create a P2PKH locking script from an address string.
Sign a transaction input, producing a P2PKH unlocking script.
Create an unlocker struct.
Types
@type t() :: %BSV.Transaction.P2PKH{ private_key: BSV.PrivateKey.t(), sighash_flag: non_neg_integer() }
Functions
Estimated unlocking script length in bytes (sig + pubkey ≈ 106).
@spec lock(String.t()) :: {:ok, BSV.Script.t()} | {:error, term()}
Create a P2PKH locking script from an address string.
Sign a transaction input, producing a P2PKH unlocking script.
@spec unlock( BSV.PrivateKey.t(), keyword() ) :: t()
Create an unlocker struct.