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

@arcblock/abt-did

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcblock/abt-did - npm Package Compare versions

Comparing version 0.13.0 to 0.13.2

8

package.json
{
"name": "@arcblock/abt-did",
"version": "0.13.0",
"version": "0.13.2",
"description": "Javascript lib to work with ArcBlock DID",

@@ -40,4 +40,4 @@ "keywords": [

"dependencies": {
"@arcblock/forge-util": "^0.13.0",
"@arcblock/mcrypto": "^0.13.0",
"@arcblock/forge-util": "^0.13.2",
"@arcblock/mcrypto": "^0.13.2",
"base64-url": "^2.2.0",

@@ -50,3 +50,3 @@ "debug": "^4.1.1",

},
"gitHead": "9990c02d2f3fabd7e3ab1a01a163da88d505a2eb"
"gitHead": "0e6bf3aee160b0f3a28c0cacaca85c1be15c844d"
}

@@ -14,4 +14,5 @@ # `@arcblock/abt-did`

const randomBytes = require('randombytes');
const { types, fromSecretKey, fromPublicKey, fromAppDID } = require('@arcblock/abt-did');
const { fromSecretKey, fromPublicKey, fromAppDID } = require('@arcblock/abt-did');
const { types } = Mcrypto;
const keyPair = Mcrypto.Signer.Ed25519.genKeyPair();

@@ -21,5 +22,5 @@

const address = fromSecretKey(keyPir.secretKey, {
role: enums.RoleType.ROLE_APPLICATION,
pk: enums.KeyType.ED25519,
hash: enums.HashType.SHA3,
role: types.RoleType.ROLE_APPLICATION,
pk: types.KeyType.ED25519,
hash: types.HashType.SHA3,
});

@@ -30,5 +31,5 @@ console.log(`abt:did:${address}`);

const address = fromPublicKey(keyPir.publicKey, {
role: enums.RoleType.ROLE_APPLICATION,
pk: enums.KeyType.ED25519,
hash: enums.HashType.SHA3,
role: types.RoleType.ROLE_APPLICATION,
pk: types.KeyType.ED25519,
hash: types.HashType.SHA3,
});

@@ -42,7 +43,7 @@ console.log(`abt:did:${address}`);

const userDID = fromAppDID(appDID, keyPir.publicKey, {
role: enums.RoleType.ROLE_APPLICATION,
pk: enums.KeyType.ED25519,
hash: enums.HashType.SHA3,
role: types.RoleType.ROLE_APPLICATION,
pk: types.KeyType.ED25519,
hash: types.HashType.SHA3,
})
console.log(`abt:did:${userDID}`);
```
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