Skip to content

Conversation

@jameseaster
Copy link

Resolves - updates did-method-key dependency to latest version 5.2.0


What kind of change does this PR introduce?

  • Dev dependency update which causes breaking changes.

What is the current behavior?

  • Tests and README shows examples using @digitalbazaar/did-method-key@3.0.0

What is the new behavior?

  • Update @digitalbazaar/did-method-key@5.2.0 and update tests accordingly
  • New test was added to delegate a root zcap using ed25519multikey
  • New dev dependencies were added to accommodate the API change
    • @digitalbazaar/ed25519-verification-key-2020
    • @digitalbazaar/ed25519-multikey

Does this PR introduce a breaking change?

  • Yes, API changes
  • No

How has this been tested?

  • Tests have been run locally with new API implementation from did-method-key

Screenshots: n/a

});
const verificationKeyPair = await Ed25519VerificationKey2020.generate();
const {didDocument, keyPairs} =
await didKeyDriver.fromKeyPair({verificationKeyPair});
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, we might want to just remove this test. keyPairs would need to be updated for this to work properly. Someone might also copy this example and it isn't correct now. The keyPairs would need to be updated in some way to enable the use of signers.

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, that's what this issue is about: #26

Copy link
Contributor

Choose a reason for hiding this comment

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

In preparation for a fix somehow somewhere here, I think the appropriate thing is to demonstrate how to properly initialize the client. And therefore proper keys should be passed in etc. We now recognize that successfully calling the constructor does not produce a fully operational client instance.

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.

4 participants