replace micro-bip with @scure/bip, fix #25

This commit is contained in:
Fred
2022-10-24 14:01:06 +08:00
committed by fiatjaf
parent 1f1bcff803
commit cdb07bb175
2 changed files with 5 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
import {wordlist} from 'micro-bip39/wordlists/english.js'
import {wordlist} from '@scure/bip39/wordlists/english.js'
import {
generateMnemonic,
mnemonicToSeedSync,
validateMnemonic
} from 'micro-bip39'
import {HDKey} from 'micro-bip32'
} from '@scure/bip39'
import {HDKey} from '@scure/bip32'
export function privateKeyFromSeed(seed) {
let root = HDKey.fromMasterSeed(Buffer.from(seed, 'hex'))