File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/// <reference types="node" />
2
2
import { Tapleaf , Taptree } from '../types' ;
3
3
export declare const LEAF_VERSION_TAPSCRIPT = 192 ;
4
- export declare function rootHashFromPath ( controlBlock : Buffer , tapleafMsg : Buffer ) : Buffer ;
4
+ export declare function rootHashFromPath ( controlBlock : Buffer , tapleafHash : Buffer ) : Buffer ;
5
5
interface HashLeaf {
6
6
hash : Buffer ;
7
7
}
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ const bcrypto = require('../crypto');
6
6
const bufferutils_1 = require ( '../bufferutils' ) ;
7
7
const types_1 = require ( '../types' ) ;
8
8
exports . LEAF_VERSION_TAPSCRIPT = 0xc0 ;
9
- function rootHashFromPath ( controlBlock , tapleafMsg ) {
9
+ function rootHashFromPath ( controlBlock , tapleafHash ) {
10
10
const m = ( controlBlock . length - 33 ) / 32 ;
11
- let kj = tapleafMsg ;
11
+ let kj = tapleafHash ;
12
12
for ( let j = 0 ; j < m ; j ++ ) {
13
13
const ej = controlBlock . slice ( 33 + 32 * j , 65 + 32 * j ) ;
14
14
if ( kj . compare ( ej ) < 0 ) {
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ export const LEAF_VERSION_TAPSCRIPT = 0xc0;
8
8
9
9
export function rootHashFromPath (
10
10
controlBlock : Buffer ,
11
- tapleafMsg : Buffer ,
11
+ tapleafHash : Buffer ,
12
12
) : Buffer {
13
13
const m = ( controlBlock . length - 33 ) / 32 ;
14
14
15
- let kj = tapleafMsg ;
15
+ let kj = tapleafHash ;
16
16
for ( let j = 0 ; j < m ; j ++ ) {
17
17
const ej = controlBlock . slice ( 33 + 32 * j , 65 + 32 * j ) ;
18
18
if ( kj . compare ( ej ) < 0 ) {
You can’t perform that action at this time.
0 commit comments