Skip to content

Commit

Permalink
Make preimageWitness public. Closes gh-61
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Dec 12, 2023
1 parent 9a8d39d commit 9cbb3a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,7 @@ export class Transaction {
});
return sha256x2(tmpTx, P.I32LE.encode(hashType));
}
private preimageWitnessV0(idx: number, prevOutScript: Bytes, hashType: number, amount: bigint) {
preimageWitnessV0(idx: number, prevOutScript: Bytes, hashType: number, amount: bigint) {
const { isAny, isNone, isSingle } = unpackSighash(hashType);
let inputHash = EMPTY32;
let sequenceHash = EMPTY32;
Expand Down Expand Up @@ -2139,7 +2139,7 @@ export class Transaction {
P.U32LE.encode(hashType)
);
}
private preimageWitnessV1(
preimageWitnessV1(
idx: number,
prevOutScript: Bytes[],
hashType: number,
Expand Down

0 comments on commit 9cbb3a8

Please sign in to comment.