@rabby-wallet/eth-hd-keyring 4.3.0-beta.1 → 4.3.0-beta.2
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/index.js +3 -1
- package/package.json +1 -1
- package/patches/slip39+0.1.9.patch +7 -4
package/dist/index.js
CHANGED
|
@@ -2171,7 +2171,8 @@ var require_slip39_helper = __commonJS({
|
|
|
2171
2171
|
crypt,
|
|
2172
2172
|
bitsToBytes,
|
|
2173
2173
|
WORD_LIST,
|
|
2174
|
-
decodeMnemonics
|
|
2174
|
+
decodeMnemonics,
|
|
2175
|
+
decodeMnemonic
|
|
2175
2176
|
};
|
|
2176
2177
|
}
|
|
2177
2178
|
});
|
|
@@ -2356,6 +2357,7 @@ var require_slip39 = __commonJS({
|
|
|
2356
2357
|
}
|
|
2357
2358
|
};
|
|
2358
2359
|
__publicField(_Slip39, "decodeMnemonics", slipHelper.decodeMnemonics);
|
|
2360
|
+
__publicField(_Slip39, "decodeMnemonic", slipHelper.decodeMnemonic);
|
|
2359
2361
|
var Slip39 = _Slip39;
|
|
2360
2362
|
exports2 = module2.exports = Slip39;
|
|
2361
2363
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
diff --git a/node_modules/slip39/src/slip39.js b/node_modules/slip39/src/slip39.js
|
|
2
|
-
index aff1c16..
|
|
2
|
+
index aff1c16..bd3ba54 100644
|
|
3
3
|
--- a/node_modules/slip39/src/slip39.js
|
|
4
4
|
+++ b/node_modules/slip39/src/slip39.js
|
|
5
|
-
@@ -180,6 +180,
|
|
5
|
+
@@ -180,6 +180,10 @@ class Slip39 {
|
|
6
6
|
return slipHelper.validateMnemonic(mnemonic);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
+ static decodeMnemonics = slipHelper.decodeMnemonics;
|
|
10
|
+
+
|
|
11
|
+
+ static decodeMnemonic = slipHelper.decodeMnemonic;
|
|
10
12
|
+
|
|
11
13
|
fromPath(path) {
|
|
12
14
|
this.validatePath(path);
|
|
13
15
|
|
|
14
16
|
diff --git a/node_modules/slip39/src/slip39_helper.js b/node_modules/slip39/src/slip39_helper.js
|
|
15
|
-
index 8bcb956..
|
|
17
|
+
index 8bcb956..3bf2210 100644
|
|
16
18
|
--- a/node_modules/slip39/src/slip39_helper.js
|
|
17
19
|
+++ b/node_modules/slip39/src/slip39_helper.js
|
|
18
20
|
@@ -100,21 +100,6 @@ Array.prototype.slip39Generate = function (m, v = (_) => _) {
|
|
@@ -37,9 +39,10 @@ index 8bcb956..ed4a207 100644
|
|
|
37
39
|
const BIGINT_WORD_BITS = BigInt(8);
|
|
38
40
|
|
|
39
41
|
function decodeBigInt(bytes) {
|
|
40
|
-
@@ -1886,4 +1871,
|
|
42
|
+
@@ -1886,4 +1871,6 @@ exports = module.exports = {
|
|
41
43
|
crypt,
|
|
42
44
|
bitsToBytes,
|
|
43
45
|
WORD_LIST,
|
|
44
46
|
+ decodeMnemonics,
|
|
47
|
+
+ decodeMnemonic,
|
|
45
48
|
};
|