Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
klouskingsley committed Jan 10, 2025
1 parent 860c8ea commit d1d8bc4
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions ts_src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,16 @@ export class Transaction {
annex?: Uint8Array,
codeseparatorPos?: number,
): Uint8Array {
const preimage = this.shPreimageForWitnessV1(inIndex, prevOutScripts, values, hashType, leafHash, annex, codeseparatorPos);
return sha256(preimage);
const preimage = this.shPreimageForWitnessV1(
inIndex,
prevOutScripts,
values,
hashType,
leafHash,
annex,
codeseparatorPos,
);
return sha256(preimage);
}

shPreimageForWitnessV1(
Expand Down Expand Up @@ -530,7 +538,11 @@ export class Transaction {

// Extra zero byte because:
// https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#cite_note-19
return tools.concat([bcrypto.TAGGED_HASH_PREFIXES.TapSighash, Uint8Array.from([0x00]), sigMsgWriter.end()])
return tools.concat([
bcrypto.TAGGED_HASH_PREFIXES.TapSighash,
Uint8Array.from([0x00]),
sigMsgWriter.end(),
]);
}

hashForWitnessV0(
Expand Down

0 comments on commit d1d8bc4

Please sign in to comment.