P2shAddress.fromSegwitScript constructor

P2shAddress.fromSegwitScript({
  1. Script? script,
  2. AddressType type = AddressType.p2sh,
})

Implementation

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