toP2wshScript method

Script toP2wshScript({
  1. bool compressed = true,
})

return 1-1 multisig segwit script

Implementation

Script toP2wshScript({bool compressed = true}) {
  return Script(script: [
    'OP_1',
    toHex(compressed: compressed),
    "OP_1",
    "OP_CHECKMULTISIG"
  ]);
}