deps: rm web-bip39 in favor of @scure/bip39

This commit is contained in:
yigid balaban 2024-10-05 22:12:51 +03:00
parent 0cd7ca7f65
commit a25028b37c
Signed by: fyb
GPG Key ID: CF1BBD1336C0A3D6
5 changed files with 71 additions and 17 deletions

2
dist/bundle.js vendored

File diff suppressed because one or more lines are too long

View File

@ -86,14 +86,38 @@
!*** ./node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js ***!
\*************************************************************************************/
/*!**************************************************************************************!*\
!*** ./node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_md.js ***!
\**************************************************************************************/
/*!**************************************************************************************!*\
!*** ./node_modules/.pnpm/@scure+bip39@1.4.0/node_modules/@scure/bip39/esm/index.js ***!
\**************************************************************************************/
/*!**************************************************************************************!*\
!*** ./node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/sha/common.js ***!
\**************************************************************************************/
/*!***************************************************************************************!*\
!*** ./node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_u64.js ***!
\***************************************************************************************/
/*!***************************************************************************************!*\
!*** ./node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/hmac.js ***!
\***************************************************************************************/
/*!***************************************************************************************!*\
!*** ./node_modules/.pnpm/elliptic@6.5.7/node_modules/elliptic/lib/elliptic/utils.js ***!
\***************************************************************************************/
/*!****************************************************************************************!*\
!*** ./node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/utils.js ***!
\****************************************************************************************/
/*!****************************************************************************************!*\
!*** ./node_modules/.pnpm/@scure+base@1.1.9/node_modules/@scure/base/lib/esm/index.js ***!
\****************************************************************************************/
/*!****************************************************************************************!*\
!*** ./node_modules/.pnpm/elliptic@6.5.7/node_modules/elliptic/lib/elliptic/curves.js ***!
\****************************************************************************************/
@ -102,14 +126,26 @@
!*** ./node_modules/.pnpm/elliptic@6.5.7/node_modules/elliptic/lib/elliptic/ec/key.js ***!
\****************************************************************************************/
/*!****************************************************************************************!*\
!*** ./node_modules/.pnpm/web-bip39@0.0.3/node_modules/web-bip39/wordlists/english.js ***!
\****************************************************************************************/
/*!*****************************************************************************************!*\
!*** ./node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/crypto.js ***!
\*****************************************************************************************/
/*!*****************************************************************************************!*\
!*** ./node_modules/.pnpm/web-bip39@0.0.3/node_modules/web-bip39/dist/web-bip39.esm.js ***!
!*** ./node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/pbkdf2.js ***!
\*****************************************************************************************/
/*!*****************************************************************************************!*\
!*** ./node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/sha256.js ***!
\*****************************************************************************************/
/*!*****************************************************************************************!*\
!*** ./node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/sha512.js ***!
\*****************************************************************************************/
/*!******************************************************************************************!*\
!*** ./node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.js ***!
\******************************************************************************************/
/*!******************************************************************************************!*\
!*** ./node_modules/.pnpm/elliptic@6.5.7/node_modules/elliptic/lib/elliptic/ec/index.js ***!
\******************************************************************************************/
@ -154,6 +190,10 @@
!*** ./node_modules/.pnpm/elliptic@6.5.7/node_modules/elliptic/lib/elliptic/eddsa/signature.js ***!
\*************************************************************************************************/
/*!**************************************************************************************************!*\
!*** ./node_modules/.pnpm/@scure+bip39@1.4.0/node_modules/@scure/bip39/esm/wordlists/english.js ***!
\**************************************************************************************************/
/*!*******************************************************************************************************!*\
!*** ./node_modules/.pnpm/elliptic@6.5.7/node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js ***!
\*******************************************************************************************************/

View File

@ -1,8 +1,8 @@
import {
generateMnemonic as generateMnemonic_bip39,
mnemonicToSeed
} from "web-bip39";
import wordlist from "web-bip39/wordlists/english";
} from "@scure/bip39";
import { wordlist } from "@scure/bip39/wordlists/english";
import elliptic from "elliptic";
import { Key } from "./key";

View File

@ -10,8 +10,8 @@
"author": "Yigid BALABAN <fyb@fybx.dev>",
"license": "LGPL-2.0-only",
"dependencies": {
"elliptic": "^6.5.7",
"web-bip39": "^0.0.3"
"@scure/bip39": "^1.4.0",
"elliptic": "^6.5.7"
},
"devDependencies": {
"terser-webpack-plugin": "^5.3.10",

30
pnpm-lock.yaml generated
View File

@ -8,12 +8,12 @@ importers:
.:
dependencies:
'@scure/bip39':
specifier: ^1.4.0
version: 1.4.0
elliptic:
specifier: ^6.5.7
version: 6.5.7
web-bip39:
specifier: ^0.0.3
version: 0.0.3
devDependencies:
terser-webpack-plugin:
specifier: ^5.3.10
@ -52,6 +52,16 @@ packages:
'@jridgewell/trace-mapping@0.3.25':
resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
'@noble/hashes@1.5.0':
resolution: {integrity: sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==}
engines: {node: ^14.21.3 || >=16}
'@scure/base@1.1.9':
resolution: {integrity: sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==}
'@scure/bip39@1.4.0':
resolution: {integrity: sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw==}
'@types/eslint-scope@3.7.7':
resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==}
@ -486,9 +496,6 @@ packages:
resolution: {integrity: sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==}
engines: {node: '>=10.13.0'}
web-bip39@0.0.3:
resolution: {integrity: sha512-JJcfUM1n02DViMamBM9n1UcgVPAF5c/nEbAveU/g76RsQEYj82lVcFyWBLW0zCsBrEVPLHEI2tTaN+urP30Xig==}
webpack-cli@5.1.4:
resolution: {integrity: sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg==}
engines: {node: '>=14.15.0'}
@ -558,6 +565,15 @@ snapshots:
'@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.5.0
'@noble/hashes@1.5.0': {}
'@scure/base@1.1.9': {}
'@scure/bip39@1.4.0':
dependencies:
'@noble/hashes': 1.5.0
'@scure/base': 1.1.9
'@types/eslint-scope@3.7.7':
dependencies:
'@types/eslint': 9.6.0
@ -966,8 +982,6 @@ snapshots:
glob-to-regexp: 0.4.1
graceful-fs: 4.2.11
web-bip39@0.0.3: {}
webpack-cli@5.1.4(webpack@5.93.0):
dependencies:
'@discoveryjs/json-ext': 0.5.7