Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@arcblock/did-util

Package Overview
Dependencies
Maintainers
0
Versions
577
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcblock/did-util - npm Package Compare versions

Comparing version 1.18.136 to 1.18.137

2

lib/index.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc