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

@digitalbazaar/did-method-key

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalbazaar/did-method-key - npm Package Compare versions

Comparing version 5.1.0 to 5.2.0

7

lib/DidKeyDriver.js

@@ -46,3 +46,3 @@ /*!

*
* @param {object} options.verificationKeyPair - A verification KeyPair.
* @param {object} [options.verificationKeyPair] - A verification KeyPair.
* @param {object} [options.keyAgreementKeyPair] - A keyAgreement KeyPair.

@@ -56,4 +56,5 @@ *

async fromKeyPair({verificationKeyPair, keyAgreementKeyPair} = {}) {
if(!verificationKeyPair) {
throw new TypeError('"verificationKeyPair" must be an object.');
if(!(verificationKeyPair || keyAgreementKeyPair)) {
throw new TypeError(
'"verificationKeyPair" or "keyAgreementKeyPair" must be an object.');
}

@@ -60,0 +61,0 @@ // keyPairs is a map of keyId to key pair instance, that includes the

{
"name": "@digitalbazaar/did-method-key",
"version": "5.1.0",
"version": "5.2.0",
"description": "A did:key method resolver.",

@@ -31,2 +31,3 @@ "homepage": "https://github.com/digitalbazaar/did-method-key",

"devDependencies": {
"@digitalbazaar/bls12-381-multikey": "^1.1.1",
"@digitalbazaar/ecdsa-multikey": "^1.1.1",

@@ -33,0 +34,0 @@ "@digitalbazaar/ed25519-verification-key-2018": "^4.0.0",

@@ -166,2 +166,7 @@ # did:key method driver _(@digitalbazaar/did-method-key)_

didKeyDriver.use({
multibaseMultikeyHeader: 'z6Mk',
fromMultibase: Ed25519VerificationKey2020.from
});
const publicKeyMultibase = 'z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH';

@@ -168,0 +173,0 @@ const verificationKeyPair = await Ed25519VerificationKey2020.from({

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