dop-wallet-v6 1.2.16 → 1.2.17
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/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dop-wallet-v6",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.17",
|
|
4
4
|
"description": "DOP Wallet SDK, compatible with mobile, browser and nodejs environments.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/**/*",
|
|
9
|
+
"patches",
|
|
9
10
|
"*.js",
|
|
10
11
|
"README.md",
|
|
11
12
|
"node-polyfills/**/*",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"eslint": "eslint src/**/* --ext .ts,.tsx --ignore-pattern **/*.graphql --fix",
|
|
31
32
|
"lint": "npm run check-circular-deps && npm run eslint && npm run tsc && npm run tsc-test",
|
|
32
33
|
"prepare": "npm run build",
|
|
33
|
-
"postinstall": "
|
|
34
|
+
"postinstall": "node postinstall.js && patch-package",
|
|
34
35
|
"verify-rn-compatibility": "node verify-react-native-compatibility.cjs"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
diff --git a/node_modules/dop-engine-v3/dist/utils/keys-utils.js b/node_modules/dop-engine-v3/dist/utils/keys-utils.js
|
|
2
|
+
index c6e9aca..653041a 100644
|
|
3
|
+
--- a/node_modules/dop-engine-v3/dist/utils/keys-utils.js
|
|
4
|
+
+++ b/node_modules/dop-engine-v3/dist/utils/keys-utils.js
|
|
5
|
+
@@ -7,6 +7,11 @@ const poseidon_1 = require("./poseidon");
|
|
6
|
+
const bytes_1 = require("./bytes");
|
|
7
|
+
const hash_1 = require("./hash");
|
|
8
|
+
const scalar_multiply_1 = require("./scalar-multiply");
|
|
9
|
+
+const hashes = require('@noble/hashes/sha2.js');
|
|
10
|
+
+
|
|
11
|
+
+ed25519_1.utils.sha512 = hashes.sha512;
|
|
12
|
+
+ed25519_1.utils.sha512Async = (m) => Promise.resolve(hashes.sha512(m));
|
|
13
|
+
+
|
|
14
|
+
const { bytesToHex, randomBytes } = ed25519_1.utils;
|
|
15
|
+
function getPublicSpendingKey(privateKey) {
|
|
16
|
+
if (privateKey.length !== 32)
|