Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

didManagerCreate throws error for did:ion #1066

Closed
rkreutzer opened this issue Nov 17, 2022 · 1 comment · Fixed by #1074
Closed

didManagerCreate throws error for did:ion #1066

rkreutzer opened this issue Nov 17, 2022 · 1 comment · Fixed by #1074
Labels
bug Something isn't working

Comments

@rkreutzer
Copy link
Contributor

Bug severity
4

Describe the bug
When attempting to create an ION DID with didManagerCreate, I get a "TypeError: crypto__WEBPACK_IMPORTED_MODULE_2___default(...).createHash is not a function" error.

Creating did:ethr and did:key work fine. My app uses the crypto module and createHash function elsewhere with no issues.

The error points to @transmute/did-key-secp256k1 -> publicKeyJwkFromPublicKeyHex -> getKid

The did-provider-ion package.json has the dependency fixed at "@transmute/did-key-secp256k1": "0.2.1-unstable.42", but 0.3.0 is current. Maybe that's the issue.

Versions (please complete the following information):

  • Veramo: next
  • Browser Brave
  • Node Version 16.17.0
  • Ionic 6.18.1
  • Capacitor 4.5.0
  • Angular 14.2.11
@rkreutzer rkreutzer added the bug Something isn't working label Nov 17, 2022
@rkreutzer
Copy link
Contributor Author

#1074 fixes part of this. The createIdentifier now fails with "digest should be a Buffer" message, which is coming from the multihashes.encode statement in computeCommitmentFromJwk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant