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'))

View File

@@ -10,12 +10,12 @@
"dependencies": {
"@noble/hashes": "^0.5.7",
"@noble/secp256k1": "^1.5.2",
"@scure/bip32": "^1.1.1",
"@scure/bip39": "^1.1.0",
"browserify-cipher": ">=1",
"buffer": ">=5",
"create-hash": "^1.2.0",
"cross-fetch": "^3.1.4",
"micro-bip32": "^0.1.0",
"micro-bip39": "^0.1.3",
"websocket-polyfill": "^0.0.3"
},
"keywords": [