()
| 99 | sigHashType.inputType === SigHashTypeInputs.ANYONECANPAY; |
| 100 | |
| 101 | const writeLegacyScriptCode = () => { |
| 102 | const ops = scriptCode.ops(); |
| 103 | let nextOp: Op | undefined = undefined; |
| 104 | const newOps = []; |
| 105 | // Filter out all code separators |
| 106 | while ((nextOp = ops.next()) !== undefined) { |
| 107 | if (isPushOp(nextOp) || nextOp != OP_CODESEPARATOR) { |
| 108 | newOps.push(nextOp); |
| 109 | } |
| 110 | } |
| 111 | Script.fromOps(newOps).writeWithSize(writer); |
| 112 | }; |
| 113 | |
| 114 | const writeLegacyInput = (idx: number) => { |
| 115 | // In case of SIGHASH_ANYONECANPAY, only the input being signed is |
no test coverage detected