w3c-ccg / did-method-web

DRAFT: did:web Decentralized Identifier Method Specification
https://w3c-ccg.github.io/did-method-web/
Other
32 stars 17 forks source link

Resolver should check resolved document (ID) matches the expected one #79

Closed reinkrul closed 3 months ago

reinkrul commented 1 year ago

When implementing did:web resolution, I noticed the reference implementation checks the ID of the resolved document v.s. the input DID (https://github.com/decentralized-identity/web-did-resolver/blob/master/src/resolver.ts#L40).

This is not mentioned in the did:web specification, but should probably be the last resolution step (https://w3c-ccg.github.io/did-method-web/#read-resolve).