(pkh: Uint8Array)
| 104 | |
| 105 | it('is invariant to the values of pushed data', () => { |
| 106 | const p2pkh = (pkh: Uint8Array): Uint8Array => ( |
| 107 | concat(Op.OP_DUP, Op.OP_HASH160, Op.OP_PUSHBYTES_20, pkh, Op.OP_EQUALVERIFY, Op.OP_CHECKSIG) |
| 108 | ); |
| 109 | const bytecodeA = p2pkh(new Uint8Array(20).fill(0xaa)); |
| 110 | const bytecodeB = p2pkh(new Uint8Array(20).fill(0xbb)); |
| 111 | expect(computeBytecodeFingerprint(bytecodeA)).toBe(computeBytecodeFingerprint(bytecodeB)); |
no test coverage detected