Resolver should check resolved document (ID) matches the expected one
reinkrul opened this issue · comments
reinkrul commented
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).