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

@arcblock/did-util

Package Overview
Dependencies
Maintainers
1
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 0.18.0 to 0.19.0

4

lib/index.js

@@ -7,3 +7,3 @@ const { types, Hasher } = require('@arcblock/mcrypto');

function toAssetAddress(type, itx, sender) {
function toAssetAddress(itx, sender) {
const walletType = toTypeInfo(sender);

@@ -15,3 +15,3 @@ walletType.role = types.RoleType.ROLE_ASSET;

const addressBuffer = Buffer.from(sender);
const message = createMessage(type, itx);
const message = createMessage('CreateAssetTx', itx);
const itxBytes = message.serializeBinary();

@@ -18,0 +18,0 @@ const itxSha3Buffer = Buffer.from(hexToBytes(Hasher.SHA3.hash256(itxBytes)));

{
"name": "@arcblock/did-util",
"description": "Helper function to calculate did",
"version": "0.18.0",
"version": "0.19.0",
"author": "wangshijun <shijun@arcblock.io> (https://ocap.arcblock.io)",

@@ -20,3 +20,3 @@ "engines": {

"dependencies": {
"@arcblock/abt-did": "^0.18.0",
"@arcblock/abt-did": "^0.19.0",
"@arcblock/forge-message": "^0.20.0",

@@ -68,3 +68,3 @@ "@arcblock/forge-util": "^0.20.0",

},
"gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e"
"gitHead": "f9d68609b618835cba11b9b0b4902d9c7bebd646"
}
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