Skip to content

Commit bc6358f

Browse files
committed
fix: lint & gitdiff issues
1 parent 9f51a1a commit bc6358f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/payments/taprootutils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ function tapLeafHash(script, version) {
7878
);
7979
}
8080
exports.tapLeafHash = tapLeafHash;
81-
function tapBranchHash(a, b) {
82-
return bcrypto.taggedHash(TAP_BRANCH_TAG, buffer_1.Buffer.concat([a, b]));
83-
}
8481
function tapTweakHash(pubKey, h) {
8582
return bcrypto.taggedHash(
8683
TAP_TWEAK_TAG,
8784
buffer_1.Buffer.concat(h ? [pubKey, h] : [pubKey]),
8885
);
8986
}
9087
exports.tapTweakHash = tapTweakHash;
88+
function tapBranchHash(a, b) {
89+
return bcrypto.taggedHash(TAP_BRANCH_TAG, buffer_1.Buffer.concat([a, b]));
90+
}
9191
function serializeScript(s) {
9292
const varintLen = bufferutils_1.varuint.encodingLength(s.length);
9393
const buffer = buffer_1.Buffer.allocUnsafe(varintLen); // better

test/payments.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const payments = PaymentFactory(ecc);
88
['embed', 'p2ms', 'p2pk', 'p2pkh', 'p2sh', 'p2wpkh', 'p2wsh', 'p2tr'].forEach(
99
p => {
1010
describe(p, () => {
11-
//@ts-ignore
11+
// @ts-ignore
1212
const fn: PaymentCreator = payments[p];
1313

1414
const fixtures = require('./fixtures/' + p);

0 commit comments

Comments
 (0)