Enumeration AddressHashMode

Serialization modes for public keys to addresses. Four different modes are supported due to legacy compatibility with Stacks v1 addresses.

Enumeration Members

P2PKH: 0

SingleSigHashMode — hash160(public-key), same as bitcoin's p2pkh

P2SH: 1

Legacy MultiSigHashMode — hash160(multisig-redeem-script), same as bitcoin's multisig p2sh

P2SHNonSequential: 5

Non-Sequential MultiSigHashMode — hash160(multisig-redeem-script), same as bitcoin's multisig p2sh

P2WPKH: 2

SingleSigHashMode — hash160(segwit-program-00(p2pkh)), same as bitcoin's p2sh-p2wpkh

P2WSH: 3

Legacy MultiSigHashMode — hash160(segwit-program-00(public-keys)), same as bitcoin's p2sh-p2wsh

P2WSHNonSequential: 7

Non-Sequential MultiSigHashMode — hash160(segwit-program-00(public-keys)), same as bitcoin's p2sh-p2wsh

Generated using TypeDoc