@arcblock/did-util 1.18.136 → 1.18.137
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/index.js +1 -1
- 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.
|
4
|
+
"version": "1.18.137",
|
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.
|
22
|
-
"@ocap/mcrypto": "1.18.
|
23
|
-
"@ocap/message": "1.18.
|
24
|
-
"@ocap/proto": "1.18.
|
25
|
-
"@ocap/types": "1.18.
|
26
|
-
"@ocap/util": "1.18.
|
27
|
-
"@ocap/wallet": "1.18.
|
21
|
+
"@arcblock/did": "1.18.137",
|
22
|
+
"@ocap/mcrypto": "1.18.137",
|
23
|
+
"@ocap/message": "1.18.137",
|
24
|
+
"@ocap/proto": "1.18.137",
|
25
|
+
"@ocap/types": "1.18.137",
|
26
|
+
"@ocap/util": "1.18.137",
|
27
|
+
"@ocap/wallet": "1.18.137"
|
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": "
|
62
|
+
"gitHead": "e9ebb514f4dfde8347992f0ab275b9d269d443c5"
|
63
63
|
}
|