@arcblock/did-util
Advanced tools
Comparing version 1.18.136 to 1.18.137
@@ -56,3 +56,3 @@ "use strict"; | ||
function toStakeAddress(sender, receiver, nonce) { | ||
const buffer = Buffer.concat([sender, receiver, nonce].filter(Boolean).map(Buffer.from)); | ||
const buffer = Buffer.concat([sender, receiver, nonce].filter(Boolean).map((x) => Buffer.from(x))); | ||
const hash = mcrypto_1.Hasher.SHA3.hash256(buffer); | ||
@@ -59,0 +59,0 @@ return (0, did_1.fromHash)(hash, mcrypto_1.types.RoleType.ROLE_STAKE); |
{ | ||
"name": "@arcblock/did-util", | ||
"description": "Helper function to calculate did", | ||
"version": "1.18.136", | ||
"version": "1.18.137", | ||
"author": { | ||
@@ -21,9 +21,9 @@ "name": "wangshijun", | ||
"dependencies": { | ||
"@arcblock/did": "1.18.136", | ||
"@ocap/mcrypto": "1.18.136", | ||
"@ocap/message": "1.18.136", | ||
"@ocap/proto": "1.18.136", | ||
"@ocap/types": "1.18.136", | ||
"@ocap/util": "1.18.136", | ||
"@ocap/wallet": "1.18.136" | ||
"@arcblock/did": "1.18.137", | ||
"@ocap/mcrypto": "1.18.137", | ||
"@ocap/message": "1.18.137", | ||
"@ocap/proto": "1.18.137", | ||
"@ocap/types": "1.18.137", | ||
"@ocap/util": "1.18.137", | ||
"@ocap/wallet": "1.18.137" | ||
}, | ||
@@ -63,3 +63,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "8e44085441f85e55745174537173419219b9aec9" | ||
"gitHead": "e9ebb514f4dfde8347992f0ab275b9d269d443c5" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7790
17
+ Added@arcblock/did@1.18.137(transitive)
+ Added@ocap/mcrypto@1.18.137(transitive)
+ Added@ocap/message@1.18.137(transitive)
+ Added@ocap/proto@1.18.137(transitive)
+ Added@ocap/types@1.18.137(transitive)
+ Added@ocap/util@1.18.137(transitive)
+ Added@ocap/wallet@1.18.137(transitive)
- Removed@arcblock/did@1.18.136(transitive)
- Removed@ocap/mcrypto@1.18.136(transitive)
- Removed@ocap/message@1.18.136(transitive)
- Removed@ocap/proto@1.18.136(transitive)
- Removed@ocap/types@1.18.136(transitive)
- Removed@ocap/util@1.18.136(transitive)
- Removed@ocap/wallet@1.18.136(transitive)
Updated@arcblock/did@1.18.137
Updated@ocap/mcrypto@1.18.137
Updated@ocap/message@1.18.137
Updated@ocap/proto@1.18.137
Updated@ocap/types@1.18.137
Updated@ocap/util@1.18.137
Updated@ocap/wallet@1.18.137