@digitalbazaar/did-method-key
Advanced tools
Comparing version 5.1.0 to 5.2.0
@@ -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({ |
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
32347
446
313
22