Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

[Bug] Verification of valid DID Configuration fails #612

Closed
andresuribe87 opened this issue Jul 28, 2023 · 2 comments · Fixed by #613
Closed

[Bug] Verification of valid DID Configuration fails #612

andresuribe87 opened this issue Jul 28, 2023 · 2 comments · Fixed by #613
Assignees
Labels
bug Something isn't working

Comments

@andresuribe87
Copy link
Contributor

Describe the bug
On a local running instance, running the following

curl -X PUT 'localhost:3000/v1/did-configurations/verification' -d '{
  "origin": "https://identify.foundation"
}'

returns

{
  "verified": false,
  "didConfiguration": "{\n  \"@context\": \"https://identity.foundation/.well-known/did-configuration/v1\",\n  \"linked_dids\": [\n    {\n      \"@context\": [\n        \"https://www.w3.org/2018/credentials/v1\",\n        \"https://identity.foundation/.well-known/did-configuration/v1\"\n      ],\n      \"issuer\": \"did:key:z6MkoTHsgNNrby8JzCNQ1iRLyW5QQ6R8Xuu6AA8igGrMVPUM\",\n      \"issuanceDate\": \"2020-12-04T14:08:28-06:00\",\n      \"expirationDate\": \"2025-12-04T14:08:28-06:00\",\n      \"type\": [\"VerifiableCredential\", \"DomainLinkageCredential\"],\n      \"credentialSubject\": {\n        \"id\": \"did:key:z6MkoTHsgNNrby8JzCNQ1iRLyW5QQ6R8Xuu6AA8igGrMVPUM\",\n        \"origin\": \"https://identity.foundation\"\n      },\n      \"proof\": {\n        \"type\": \"Ed25519Signature2018\",\n        \"created\": \"2020-12-04T20:08:28.540Z\",\n        \"jws\": \"eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..D0eDhglCMEjxDV9f_SNxsuU-r3ZB9GR4vaM9TYbyV7yzs1WfdUyYO8rFZdedHbwQafYy8YOpJ1iJlkSmB4JaDQ\",\n        \"proofPurpose\": \"assertionMethod\",\n        \"verificationMethod\": \"did:key:z6MkoTHsgNNrby8JzCNQ1iRLyW5QQ6R8Xuu6AA8igGrMVPUM#z6MkoTHsgNNrby8JzCNQ1iRLyW5QQ6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PXqWtso_gjPHnWZsB6pWcGv6m3K8-4JIAvFov3ZTM8HxPOrOL17Qf4vBFdY9oK0HeCQ\"\n  ]\n}\n",
  "reason": "could not create validator for kid did:key:z6MkoTHsgNNrby8JzCNQ1iRLyW5QQ6R8Xuu6AA8igGrMVPUM#z6MkoTHsgNNrby8JzCNQ1iRLyW5QQ6R8Xuu6AA8igGrMVPUM: could not convert private key to JWK: did:key:z6MkoTHsgNNrby8JzCNQ1iRLyW5QQ6R8Xuu6AA8igGrMVPUM#z6MkoTHsgNNrby8JzCNQ1iRLyW5QQ6R8Xuu6AA8igGrMVPUM: unsupported private key type: ed25519.PublicKey"
}

Expected behavior
verified should be true

@andresuribe87 andresuribe87 added the bug Something isn't working label Jul 28, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in SSI Jul 28, 2023
@decentralgabe
Copy link
Contributor

unsupported private key type: ed25519.PublicKey

this makes sense but why is it happening?

@andresuribe87
Copy link
Contributor Author

You'll see in the PR shortly what the problem was :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants