File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 1- /**
2- * @prettier
3- */
4- import { signMessage , verifyMessage } from '@bitgo/sdk-core' ;
51import * as crypto from 'crypto' ;
6- import { bip32 } from '@bitgo/utxo-lib' ;
7- import 'should' ;
82
93import * as utxolib from '@bitgo/utxo-lib' ;
4+ import 'should' ;
5+
6+ import { signMessage , verifyMessage } from '../src/bip32utils' ;
107
11- describe ( 'bip32util ' , function ( ) {
8+ describe ( 'bip32utils ' , function ( ) {
129 function getSeedBuffers ( length : number ) {
1310 return Array . from ( { length } ) . map ( ( _ , i ) => crypto . createHash ( 'sha256' ) . update ( `${ i } ` ) . digest ( ) ) ;
1411 }
1512 it ( 'signMessage/verifyMessage' , function ( ) {
16- const keys = getSeedBuffers ( 4 ) . map ( ( seed ) => bip32 . fromSeed ( seed ) ) ;
13+ const keys = getSeedBuffers ( 4 ) . map ( ( seed ) => utxolib . bip32 . fromSeed ( seed ) ) ;
1714 const messages = [ 'hello' , 'goodbye' ] ;
1815 keys . forEach ( ( key ) => {
1916 messages . forEach ( ( message ) => {
You can’t perform that action at this time.
0 commit comments