Const
Bitcoin address encoding, decoding, and creation.
Decode a Bitcoin address string and return detailed info. Calls Go: btcutil.DecodeAddress() from btcutil.
Create a P2PK address from a serialized public key (hex). Calls Go: btcutil.NewAddressPubKey() from btcutil.
Create a P2PKH address from a 20-byte pubkey hash (hex). Calls Go: btcutil.NewAddressPubKeyHash() from btcutil.
Create a P2SH address by hashing a serialized script (hex). Calls Go: btcutil.NewAddressScriptHash() from btcutil.
Create a P2SH address from a 20-byte script hash (hex). Calls Go: btcutil.NewAddressScriptHashFromHash() from btcutil.
Create a P2TR (Taproot) address from a 32-byte witness program (hex). Calls Go: btcutil.NewAddressTaproot() from btcutil.
Create a P2WPKH address from a 20-byte witness program (hex). Calls Go: btcutil.NewAddressWitnessPubKeyHash() from btcutil.
Create a P2WSH address from a 32-byte witness program (hex). Calls Go: btcutil.NewAddressWitnessScriptHash() from btcutil.
Bitcoin address encoding, decoding, and creation.