SingleSigHashMode
— hash160(public-key), same as bitcoin's p2pkh
Legacy MultiSigHashMode
— hash160(multisig-redeem-script), same as bitcoin's multisig p2sh
Non-Sequential MultiSigHashMode
— hash160(multisig-redeem-script), same as bitcoin's multisig p2sh
SingleSigHashMode
— hash160(segwit-program-00(p2pkh)), same as bitcoin's p2sh-p2wpkh
Legacy MultiSigHashMode
— hash160(segwit-program-00(public-keys)), same as bitcoin's p2sh-p2wsh
Non-Sequential MultiSigHashMode
— hash160(segwit-program-00(public-keys)), same as bitcoin's p2sh-p2wsh
Generated using TypeDoc
Serialization modes for public keys to addresses. Four different modes are supported due to legacy compatibility with Stacks v1 addresses.