Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhfnjust committed Jan 9, 2025
1 parent 4578784 commit d071a76
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/integration/taproot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,9 @@ function buildLeafIndexFinalizer(
const witness = scriptSolution
.concat(tapLeafScript.script)
.concat(tapLeafScript.controlBlock);
return { finalScriptWitness: psbtutils.witnessStackToScriptWitness(witness) };
return {
finalScriptWitness: psbtutils.witnessStackToScriptWitness(witness),
};
} catch (err) {
throw new Error(`Can not finalize taproot input #${inputIndex}: ${err}`);
}
Expand Down
16 changes: 15 additions & 1 deletion ts_src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,24 @@ export {
vectorSize,
} from './transaction.js';
export { initEccLib } from './ecc_lib.js';
export { BufferWriter, BufferReader } from './bufferutils.js';
export {
BufferWriter,
BufferReader,
reverseBuffer,
cloneBuffer,
} from './bufferutils.js';
export { Interpreter } from './interpreter.js';
export { bn2Buf, buf2BN } from './bn.js';
export { tapTreeFromList, tapTreeToList } from './psbt/bip371.js';
export {
LEAF_VERSION_TAPSCRIPT,
HashTree,
rootHashFromPath,
toHashTree,
findScriptPath,
tapleafHash,
tapTweakHash,
} from './payments/bip341.js';
export type { Taptree } from './types.js';

// scrypt exports
Expand Down

0 comments on commit d071a76

Please sign in to comment.