w3c-ccg / did-method-web

DRAFT: did:web Decentralized Identifier Method Specification

Home Page:https://w3c-ccg.github.io/did-method-web/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

reinkrul opened this issue · comments

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).