@arcblock/did-util 1.18.136 → 1.18.138

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +9 -9
package/lib/index.js CHANGED
@@ -53,7 +53,7 @@ exports.toRollupAddress = toRollupAddress;
53
53
  * Generate an stake address, eg: the did of the stake
54
54
  */
55
55
  function toStakeAddress(sender, receiver, nonce) {
56
- const buffer = Buffer.concat([sender, receiver, nonce].filter(Boolean).map(Buffer.from));
56
+ const buffer = Buffer.concat([sender, receiver, nonce].filter(Boolean).map((x) => Buffer.from(x)));
57
57
  const hash = mcrypto_1.Hasher.SHA3.hash256(buffer);
58
58
  return (0, did_1.fromHash)(hash, mcrypto_1.types.RoleType.ROLE_STAKE);
59
59
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcblock/did-util",
3
3
  "description": "Helper function to calculate did",
4
- "version": "1.18.136",
4
+ "version": "1.18.138",
5
5
  "author": {
6
6
  "name": "wangshijun",
7
7
  "email": "shijun@arcblock.io",
@@ -18,13 +18,13 @@
18
18
  "wangshijun <shijun@arcblock.io> (https://github.com/wangshijun)"
19
19
  ],
20
20
  "dependencies": {
21
- "@arcblock/did": "1.18.136",
22
- "@ocap/mcrypto": "1.18.136",
23
- "@ocap/message": "1.18.136",
24
- "@ocap/proto": "1.18.136",
25
- "@ocap/types": "1.18.136",
26
- "@ocap/util": "1.18.136",
27
- "@ocap/wallet": "1.18.136"
21
+ "@arcblock/did": "1.18.138",
22
+ "@ocap/mcrypto": "1.18.138",
23
+ "@ocap/message": "1.18.138",
24
+ "@ocap/proto": "1.18.138",
25
+ "@ocap/types": "1.18.138",
26
+ "@ocap/util": "1.18.138",
27
+ "@ocap/wallet": "1.18.138"
28
28
  },
29
29
  "main": "lib/index.js",
30
30
  "typings": "lib/index.d.ts",
@@ -59,5 +59,5 @@
59
59
  "build": "tsc",
60
60
  "build:watch": "npm run build -- -w"
61
61
  },
62
- "gitHead": "8e44085441f85e55745174537173419219b9aec9"
62
+ "gitHead": "61ab154a7f575a2e3eb1c9ce86e1cdd2ce18e928"
63
63
  }