w3c / controller-document

Controller Documents
https://w3c.github.io/controller-document/
Other
5 stars 3 forks source link

Fix `vmPurpose` / `vmPurposes` discrepancy in Retrieve Verification Method algorithm #37

Open dlongley opened 6 months ago

dlongley commented 6 months ago

I believe there's a typo in the algorithm text here: https://w3c.github.io/vc-data-integrity/#retrieve-verification-method

Step 2 says:

Let vmPurpose be set to proof.proofPurpose.

Which is then intended to be used in step 11:

If verificationMethod is not associated with the array of vmPurposes in the controllerDocument, either by reference (URL) or by value (object), an error MUST be raised and SHOULD convey an error type of INVALID_PROOF_PURPOSE_FOR_VERIFICATION_METHOD.

This should instead, I believe, say something like "If verificationMethod is not associated with a verification relationship in the controllerDocument that equals vmPurpose, either by reference ...".