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

DidDht Resolution Errors #771

Open
chris-tbd opened this issue Jul 18, 2024 · 2 comments
Open

DidDht Resolution Errors #771

chris-tbd opened this issue Jul 18, 2024 · 2 comments

Comments

@chris-tbd
Copy link

Here is the code I'm running:

let issuerDidString = '{"uri":"did:dht:hge69zswp474myt94d149pftycsgk6yr9tufrh7new48re76b5ny","document":{"id":"did:dht:hge69zswp474myt94d149pftycsgk6yr9tufrh7new48re76b5ny","verificationMethod":[{"id":"did:dht:hge69zswp474myt94d149pftycsgk6yr9tufrh7new48re76b5ny#0","type":"JsonWebKey","controller":"did:dht:hge69zswp474myt94d149pftycsgk6yr9tufrh7new48re76b5ny","publicKeyJwk":{"crv":"Ed25519","kty":"OKP","x":"4ZHv3tRuu6WCP9Dlr7SxAyxleAT8ZlJzokU0ciO-DsQ","kid":"YovQ1tV4TzP3vEK56W1ALWw4yaakW2YxnTWjRkoisD0","alg":"EdDSA"}}],"authentication":["did:dht:hge69zswp474myt94d149pftycsgk6yr9tufrh7new48re76b5ny#0"],"assertionMethod":["did:dht:hge69zswp474myt94d149pftycsgk6yr9tufrh7new48re76b5ny#0"],"capabilityDelegation":["did:dht:hge69zswp474myt94d149pftycsgk6yr9tufrh7new48re76b5ny#0"],"capabilityInvocation":["did:dht:hge69zswp474myt94d149pftycsgk6yr9tufrh7new48re76b5ny#0"]},"metadata":{"published":true,"versionId":"1720053903"},"privateKeys":[{"crv":"Ed25519","d":"WvJD_vX0s5qqHkW2D4t3RUABg7a_3usAMKet1QEoKj0","kty":"OKP","x":"4ZHv3tRuu6WCP9Dlr7SxAyxleAT8ZlJzokU0ciO-DsQ","kid":"YovQ1tV4TzP3vEK56W1ALWw4yaakW2YxnTWjRkoisD0","alg":"EdDSA"}]}'

let issuerPortableDid = JSON.parse(issuerDidString);
 const issuerDid = await DidDht.import({ portableDid: issuerPortableDid });

await DidDht.publish({ did: issuerDid });
let resolvedDid = await DidDht.resolve({ did: issuerDid });

For context, the issuerDidString was created via DidDht.export() from a did that was created via DidDht.create() and published. The error that I now get when I try and resolve this did is:

Serialized Error: { statusCode: 400, details: { errors: [ { detail: 'Failed to verify offering requirements: Failed to resolve did:dht:hge69zswp474myt94d149pftycsgk6yr9tufrh7new48re76b5ny#0' } ] }, recipientDid: 'did:dht:ccqamm6qgbe763ya8f3bo5mkrtxx1pz7i789zeqq4bmoae4qnixy', url: 'https://pfiexemplar.tbddev.org/exchanges' }

This code previously worked and stopped working recently.

@blackgirlbytes
Copy link
Contributor

blackgirlbytes commented Jul 18, 2024

When did this work and when did it stop working? If it was today, might be related to this https://sq-tbd.slack.com/archives/C04A3ANT2KY/p1721246647576219?thread_ts=1721206467.266449&cid=C04A3ANT2KY

@angiejones
Copy link
Member

When did this work and when did it stop working? If it was today, might be related to this https://sq-tbd.slack.com/archives/C04A3ANT2KY/p1721246647576219?thread_ts=1721206467.266449&cid=C04A3ANT2KY

it's because Ace updated the SDK versions, and we merged that into this branch

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

No branches or pull requests

3 participants