@@ -2,7 +2,7 @@ import { Buffer as NBuffer } from 'buffer';
22import * as bcrypto from '../crypto' ;
33
44import { varuint } from '../bufferutils' ;
5- import { TaprootLeaf } from '../types' ;
5+ import { Taptree } from '../types' ;
66
77const TAP_LEAF_TAG = 'TapLeaf' ;
88const TAP_BRANCH_TAG = 'TapBranch' ;
@@ -45,7 +45,7 @@ export interface HashTree {
4545 * - a pair of two taproot leafs [(output, version), (output, version)], or
4646 * - one taproot leaf and a list of elements
4747 */
48- export function toHashTree ( scriptTree : TaprootLeaf [ ] ) : HashTree {
48+ export function toHashTree ( scriptTree : Taptree ) : HashTree {
4949 if ( scriptTree . length === 1 ) {
5050 const script = scriptTree [ 0 ] ;
5151 if ( Array . isArray ( script ) ) {
@@ -71,9 +71,9 @@ export function toHashTree(scriptTree: TaprootLeaf[]): HashTree {
7171 } ;
7272}
7373/**
74- * Check if the tree is a binary tree with leafs of type TaprootLeaf
74+ * Check if the tree is a binary tree with leafs of type Tapleaf
7575 */
76- export function isTapTree ( scriptTree : TaprootLeaf [ ] ) : boolean {
76+ export function isTapTree ( scriptTree : Taptree ) : boolean {
7777 if ( scriptTree . length > 2 ) return false ;
7878 if ( scriptTree . length === 1 ) {
7979 const script = scriptTree [ 0 ] ;
0 commit comments