P2shAddress.fromSegwitScript constructor
P2shAddress.fromSegwitScript({
- Script? script,
- AddressType type = AddressType.p2sh,
Implementation
P2shAddress.fromSegwitScript({super.script, this.type = AddressType.p2sh})
: assert(type == AddressType.p2sh ||
type == AddressType.p2wpkhInP2sh ||
type == AddressType.p2wshInP2sh);