Module script

Module script 

Source
Expand description

Script building utilities.

Modules§

opcodes
Script opcodes.

Functions§

build_p2pkh_script
Build a P2PKH (Pay-to-Public-Key-Hash) script.
build_p2tr_script
Build a P2TR (Pay-to-Taproot) script.
build_p2wpkh_script
Build a P2WPKH (Pay-to-Witness-Public-Key-Hash) script.
extract_p2pkh_hash
Extract pubkey hash from P2PKH script.
extract_p2wpkh_hash
Extract pubkey hash from P2WPKH script.
hash160
Hash160 (SHA256 + RIPEMD160).
is_p2pkh
Check if script is P2PKH.
is_p2tr
Check if script is P2TR.
is_p2wpkh
Check if script is P2WPKH.
p2pkh_script_from_pubkey
Build P2PKH scriptPubKey from compressed public key.
p2wpkh_script_from_pubkey
Build P2WPKH scriptPubKey from compressed public key.