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.