Skip to content

Commit 4ef1bdc

Browse files
committed
🐞 fix: fix romat:ci
1 parent c6cb2f8 commit 4ef1bdc

File tree

13 files changed

+18
-20
lines changed

13 files changed

+18
-20
lines changed

ts_src/bufferutils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function readUInt64LE(buffer: Buffer, offset: number): number {
2525

2626
/**
2727
* Writes a 64-bit unsigned integer in little-endian format to the specified buffer at the given offset.
28-
*
28+
*
2929
* @param buffer - The buffer to write the value to.
3030
* @param value - The 64-bit unsigned integer value to write.
3131
* @param offset - The offset in the buffer where the value should be written.

ts_src/crypto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* A module for hashing functions.
2+
* A module for hashing functions.
33
* include ripemd160、sha1、sha256、hash160、hash256、taggedHash
4-
*
4+
*
55
* @packageDocumentation
66
*/
77
import { ripemd160 as _ripemd160 } from '@noble/hashes/ripemd160';

ts_src/ecc_lib.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const _ECCLIB_CACHE: { eccLib?: TinySecp256k1Interface } = {};
66
* Initializes the ECC library with the provided instance.
77
* If `eccLib` is `undefined`, the library will be cleared.
88
* If `eccLib` is a new instance, it will be verified before setting it as the active library.
9-
*
9+
*
1010
* @param eccLib The instance of the ECC library to initialize.
1111
*/
1212
export function initEccLib(eccLib: TinySecp256k1Interface | undefined): void {
@@ -39,7 +39,7 @@ const h = (hex: string): Buffer => Buffer.from(hex, 'hex');
3939

4040
/**
4141
* Verifies the ECC functionality.
42-
*
42+
*
4343
* @param ecc - The TinySecp256k1Interface object.
4444
*/
4545
function verifyEcc(ecc: TinySecp256k1Interface): void {

ts_src/merkle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Calculates the Merkle root of an array of buffers using a specified digest function.
3-
*
3+
*
44
* @param values - The array of buffers.
55
* @param digestFn - The digest function used to calculate the hash of the concatenated buffers.
66
* @returns The Merkle root as a buffer.

ts_src/networks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Dogecoin BIP32 is a proposed standard: https://bitcointalk.org/index.php?topic=409731
33

44
/**
5-
* Represents a Bitcoin network configuration,including messagePrefix, bech32, bip32, pubKeyHash, scriptHash, wif.
5+
* Represents a Bitcoin network configuration,including messagePrefix, bech32, bip32, pubKeyHash, scriptHash, wif.
66
* Support bitcoin、bitcoin testnet and bitcoin regtest.
77
* @packageDocumentation
88
*/

ts_src/payments/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Represents a payment object, which is used to create a payment.
3-
*
3+
*
44
* Supports P2PKH、P2SH、P2WPKH、P2WSH、P2TR and so on
55
*
66
* @packageDocumentation

ts_src/payments/p2pk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const OPS = bscript.OPS;
99
// output: {pubKey} OP_CHECKSIG
1010
/**
1111
* Creates a pay-to-public-key (P2PK) payment object.
12-
*
12+
*
1313
* @param a - The payment object containing the necessary data.
1414
* @param opts - Optional payment options.
1515
* @returns The P2PK payment object.

ts_src/payments/p2wsh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function chunkHasUncompressedPubkey(chunk: StackElement): boolean {
2727
// output: OP_0 {sha256(redeemScript)}
2828
/**
2929
* Creates a Pay-to-Witness-Script-Hash (P2WSH) payment object.
30-
*
30+
*
3131
* @param a - The payment object containing the necessary data.
3232
* @param opts - Optional payment options.
3333
* @returns The P2WSH payment object.

ts_src/psbt/bip371.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ function isTapLeafInTree(tapLeaf: TapLeafScript, merkleRoot?: Buffer): boolean {
392392

393393
/**
394394
* Sorts the signatures in the input's tapScriptSig array based on their position in the tapLeaf script.
395-
*
395+
*
396396
* @param input - The PsbtInput object.
397397
* @param tapLeaf - The TapLeafScript object.
398398
* @returns An array of sorted signatures as Buffers.
@@ -456,7 +456,7 @@ function findTapLeafToFinalize(
456456

457457
/**
458458
* Determines whether a TapLeafScript can be finalized.
459-
*
459+
*
460460
* @param leaf - The TapLeafScript to check.
461461
* @param tapScriptSig - The array of TapScriptSig objects.
462462
* @param hash - The optional hash to compare with the leaf hash.

ts_src/psbt/psbtutils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export function signatureBlocksAction(
152152
* If the input does not have partial signatures, it checks if it has a finalScriptSig or finalScriptWitness.
153153
* If it does, it extracts the signatures from the final scripts and returns them.
154154
* If none of the above conditions are met, it returns an empty array.
155-
*
155+
*
156156
* @param input - The PsbtInput object from which to extract the signatures.
157157
* @returns An array of signatures extracted from the PsbtInput object.
158158
*/
@@ -171,7 +171,7 @@ function extractPartialSigs(input: PsbtInput): Buffer[] {
171171
* Retrieves the partial signatures (Psigs) from the input's final scripts.
172172
* Psigs are extracted from both the final scriptSig and final scriptWitness of the input.
173173
* Only canonical script signatures are considered.
174-
*
174+
*
175175
* @param input - The PsbtInput object representing the input.
176176
* @returns An array of PartialSig objects containing the extracted Psigs.
177177
*/

0 commit comments

Comments
 (0)