Skip to content

Commit 000a3c5

Browse files
OttoAllmendingerllm-git
andcommitted
test(utxo-core): move bip32utils tests from bitgo to utxo-core
Issue: BTC-0 Co-authored-by: llm-git <[email protected]>
1 parent 52c7cc2 commit 000a3c5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
/**
2-
* @prettier
3-
*/
4-
import { signMessage, verifyMessage } from '@bitgo/sdk-core';
51
import * as crypto from 'crypto';
6-
import { bip32 } from '@bitgo/utxo-lib';
7-
import 'should';
82

93
import * 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) => {

0 commit comments

Comments
 (0)