Skip to main content

build_p2pkh_unlocking_script

Function build_p2pkh_unlocking_script 

Source
pub fn build_p2pkh_unlocking_script(
    tx_sig: &TransactionSignature,
    private_key: &PrivateKey,
) -> UnlockingScript
Expand description

Helper function to build an unlocking script from signature and public key.

Creates an unlocking script with the signature in checksig format followed by the compressed public key.