@midnight-ntwrk/wallet-sdk-hd 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/HDWallet.js +1 -1
- package/dist/MnemonicUtils.js +2 -2
- package/dist/index.js +1 -1
- package/package.json +5 -13
package/dist/HDWallet.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is part of MIDNIGHT-WALLET-SDK.
|
|
2
|
-
// Copyright (C)
|
|
2
|
+
// Copyright (C) Midnight Foundation
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// You may not use this file except in compliance with the License.
|
package/dist/MnemonicUtils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is part of MIDNIGHT-WALLET-SDK.
|
|
2
|
-
// Copyright (C)
|
|
2
|
+
// Copyright (C) Midnight Foundation
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// You may not use this file except in compliance with the License.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
import * as bip39 from '@scure/bip39';
|
|
14
|
-
import { wordlist as english } from '@scure/bip39/wordlists/english';
|
|
14
|
+
import { wordlist as english } from '@scure/bip39/wordlists/english.js';
|
|
15
15
|
export const mnemonicToWords = (mnemonic) => mnemonic.split(' ');
|
|
16
16
|
/** A wrapper around the bip39 package function, with default strength applied to produce 24 words */
|
|
17
17
|
export const generateMnemonicWords = (strength = 256) => mnemonicToWords(bip39.generateMnemonic(english, strength));
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is part of MIDNIGHT-WALLET-SDK.
|
|
2
|
-
// Copyright (C)
|
|
2
|
+
// Copyright (C) Midnight Foundation
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// You may not use this file except in compliance with the License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midnight-ntwrk/wallet-sdk-hd",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -24,22 +24,14 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@scure/
|
|
28
|
-
"@scure/
|
|
29
|
-
"@scure/bip39": "^1.5.4"
|
|
27
|
+
"@scure/bip32": "^2.0.1",
|
|
28
|
+
"@scure/bip39": "^2.0.1"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
|
-
"@ethereumjs/wallet": "^
|
|
33
|
-
"eslint": "^9.37.0",
|
|
34
|
-
"fast-check": "^4.2.0",
|
|
35
|
-
"prettier": "^3.7.0",
|
|
36
|
-
"publint": "~0.3.14",
|
|
37
|
-
"rimraf": "^6.0.1",
|
|
38
|
-
"typescript": "^5.9.3",
|
|
39
|
-
"vitest": "^4.0.16"
|
|
31
|
+
"@ethereumjs/wallet": "^10.0.0"
|
|
40
32
|
},
|
|
41
33
|
"scripts": {
|
|
42
|
-
"typecheck": "tsc -b ./tsconfig.json --noEmit",
|
|
34
|
+
"typecheck": "tsc -b ./tsconfig.json --noEmit --force",
|
|
43
35
|
"test": "vitest run",
|
|
44
36
|
"lint": "eslint --max-warnings 0",
|
|
45
37
|
"format": "prettier --write \"**/*.{ts,js,json,yaml,yml,md}\"",
|