digitalbazaar / did-method-key

A did-io driver for the DID "key" method
Other
25 stars 10 forks source link

Avoid mutation of ed25519 key passed into keyToDidDoc. #33

Closed msporny closed 3 years ago

msporny commented 3 years ago

Added

Changed

This is being driven by the ezcap work, I'm trying to get to a nice pattern to create the ezcap client:

const baseUrl = 'https://zcap.example/';
const didDocument = await didKeyDriver.generate();
const delegationKeypair = didDocument.keypairs.capabilityDelegation[0];
const invocationKeypair = didDocument.keypairs.capabilityInvocation[0];
zcapClient = new zcapClient({baseUrl, httpsAgent, delegationKeypair, invocationKeypair});
msporny commented 3 years ago

Closing in favor of https://github.com/digitalbazaar/did-method-key-js/pull/34