@blocklet/meta 1.16.34-beta-20241213-135509-c2832f80 → 1.16.34-beta-20241216-230644-e9ec07d8

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/lib/info.js CHANGED
@@ -62,7 +62,8 @@ const getBlockletInfo = (state, nodeSk, { returnWallet = true } = {}) => {
62
62
  wallet = (0, wallet_1.default)(state.meta.did, nodeSk);
63
63
  }
64
64
  }
65
- const secret = mcrypto_1.Hasher.SHA3.hash256(Buffer.concat([wallet.secretKey, wallet.address].map((v) => Buffer.from(v))));
65
+ const salt = state.settings?.session?.salt || '';
66
+ const secret = mcrypto_1.Hasher.SHA3.hash256(Buffer.concat([wallet.secretKey, wallet.address, salt].filter(Boolean).map((v) => Buffer.from(v))));
66
67
  return {
67
68
  did,
68
69
  version,
package/lib/util.js CHANGED
@@ -424,6 +424,8 @@ const wipeSensitiveData = (blocklet) => {
424
424
  delete blocklet.configObj;
425
425
  // @ts-ignore
426
426
  delete blocklet.environmentObj;
427
+ // @ts-ignore
428
+ delete blocklet.settings?.session?.salt;
427
429
  }, { sync: true });
428
430
  return blocklet;
429
431
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.34-beta-20241213-135509-c2832f80",
6
+ "version": "1.16.34-beta-20241216-230644-e9ec07d8",
7
7
  "description": "Library to parse/validate/fix blocklet meta",
8
8
  "main": "./lib/index.js",
9
9
  "typings": "./lib/index.d.ts",
@@ -25,12 +25,12 @@
25
25
  "author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@abtnode/constant": "1.16.34-beta-20241213-135509-c2832f80",
28
+ "@abtnode/constant": "1.16.34-beta-20241216-230644-e9ec07d8",
29
29
  "@arcblock/did": "1.18.161",
30
30
  "@arcblock/did-ext": "1.18.161",
31
31
  "@arcblock/did-util": "1.18.161",
32
32
  "@arcblock/jwt": "1.18.161",
33
- "@blocklet/constant": "1.16.34-beta-20241213-135509-c2832f80",
33
+ "@blocklet/constant": "1.16.34-beta-20241216-230644-e9ec07d8",
34
34
  "@ocap/asset": "1.18.161",
35
35
  "@ocap/mcrypto": "1.18.161",
36
36
  "@ocap/types": "1.18.161",
@@ -79,5 +79,5 @@
79
79
  "ts-node": "^10.9.1",
80
80
  "typescript": "^5.6.3"
81
81
  },
82
- "gitHead": "9e8b37f36d17a288a66ccc05e92c8f87825eeb57"
82
+ "gitHead": "053345d37470cb508a807085f14690cfec6073af"
83
83
  }