Skip to content

Commit 3aa1763

Browse files
authored
fix: export TweakedPublicKey and fix JSDoc comments in bip341.d.ts
1 parent 248789d commit 3aa1763

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cjs/payments/bip341.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface HashBranch {
99
left: HashTree;
1010
right: HashTree;
1111
}
12-
interface TweakedPublicKey {
12+
export interface TweakedPublicKey {
1313
parity: number;
1414
x: Uint8Array;
1515
}
@@ -45,7 +45,7 @@ export declare function findScriptPath(node: HashTree, hash: Uint8Array): Uint8A
4545
/**
4646
* Calculates the tapleaf hash for a given Tapleaf object.
4747
* @param leaf - The Tapleaf object to calculate the hash for.
48-
* @returns The tapleaf hash as a Buffer.
48+
* @returns The tapleaf hash as a Uint8Array.
4949
*/
5050
export declare function tapleafHash(leaf: Tapleaf): Uint8Array;
5151
/**
@@ -61,7 +61,7 @@ export declare function tapTweakHash(pubKey: Uint8Array, h: Uint8Array | undefin
6161
/**
6262
* Tweak a public key with a given tweak hash.
6363
* @param pubKey - The public key to be tweaked.
64-
* @param h - The tweak hash.
64+
* @param h - The optional tweak hash.
6565
* @returns The tweaked public key or null if the input is invalid.
6666
*/
6767
export declare function tweakKey(pubKey: Uint8Array, h: Uint8Array | undefined): TweakedPublicKey | null;

0 commit comments

Comments
 (0)