Skip to content

Upgrade to latest 14.x did-veres-one driver.#36

Open
msporny wants to merge 1 commit intomainfrom
v1-dingo-rc1
Open

Upgrade to latest 14.x did-veres-one driver.#36
msporny wants to merge 1 commit intomainfrom
v1-dingo-rc1

Conversation

@msporny
Copy link
Member

@msporny msporny commented Jun 29, 2021

No description provided.

Comment on lines +139 to +140
const {didDocument, keyPairs} =
await veresDriver.generate({keyType, passphrase});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const {didDocument, keyPairs} =
await veresDriver.generate({keyType, passphrase});
const {didDocument, keyPairs} = await veresDriver.generate(
{keyType, passphrase});


// Update was successful, save new private key to key store
await keyStore().put(did, await didDocument.exportKeys());
await keyStore().put(did, _exportPrivateKeys({didDocument}));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is passing didDocument but _exportPrivateKeys takes keyPairs. Not sure what's going on there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants