Pay to Public Key Hash contract.
Lock parameters
:pubkey_hash— 20-byte public key hash
Unlock parameters
:signature— DER-encoded signature with sighash flag appended:pubkey— 33-byte compressed public key
Summary
Functions
Create a locking contract with the given satoshis and parameters.
Create an unlocking contract with the given UTXO info and parameters.
Functions
@spec lock(non_neg_integer(), map(), keyword()) :: BSV.Contract.t()
Create a locking contract with the given satoshis and parameters.
@spec unlock(map(), map(), keyword()) :: BSV.Contract.t()
Create an unlocking contract with the given UTXO info and parameters.