diff --git a/example/vcdm.js b/example/vcdm.js index e813facbc..ebb81985e 100644 --- a/example/vcdm.js +++ b/example/vcdm.js @@ -107,7 +107,6 @@ async function main() { domain, resolver, compactProof: true, - forceRevocationCheck: false, }); if (ver.verified) { diff --git a/src/utils/vc/presentations.js b/src/utils/vc/presentations.js index 99477bd61..45328d17b 100644 --- a/src/utils/vc/presentations.js +++ b/src/utils/vc/presentations.js @@ -106,8 +106,6 @@ export async function verifyPresentationCredentials( * @property {DIDResolver} [resolver] - Resolver to resolve the issuer DID (optional) * @property {Boolean} [unsignedPresentation] - Whether to verify the proof or not * @property {Boolean} [compactProof] - Whether to compact the JSON-LD or not. - * @property {Boolean} [forceRevocationCheck] - Whether to force revocation check or not. - * Warning, setting forceRevocationCheck to false can allow false positives when verifying revocable credentials. * @property {object} [presentationPurpose] - A purpose other than the default AuthenticationProofPurpose * @property {object} [documentLoader] - A document loader, can be null and use the default */ diff --git a/tutorials/src/tutorial_ipv.md b/tutorials/src/tutorial_ipv.md index 5ec65b9de..1cbf120b7 100644 --- a/tutorials/src/tutorial_ipv.md +++ b/tutorials/src/tutorial_ipv.md @@ -190,10 +190,7 @@ with the `verify` method. The `verify` method takes an object of arguments, and is optional. If you've used DIDs you need to pass a `resolver` for them. -You can also use the booleans `compactProof` (to compact the JSON-LD) and -`forceRevocationCheck` (to force revocation check). Please beware that -setting `forceRevocationCheck` to false can allow false positives when -verifying revocable credentials. +You can also use the booleans `compactProof` (to compact the JSON-LD). If your credential has uses the `credentialStatus` field, the credential will be checked not to be revoked unless you pass `skipRevocationCheck` flag. @@ -382,10 +379,7 @@ Once your Verifiable Presentation has been signed you can proceed to verify it with the `verify` method. If you've used DIDs you need to pass a `resolver` for them. You can also use -the booleans `compactProof` (to compact the JSON-LD) and -`forceRevocationCheck` (to force revocation check). Please beware that -setting `forceRevocationCheck` to false can allow false positives when -verifying revocable credentials. +the booleans `compactProof` (to compact the JSON-LD). If your credential uses the `credentialStatus` field, the credential will be checked to be not revoked unless you pass `skipRevocationCheck`. For the simplest cases you only need a `challenge` string and possibly a @@ -459,7 +453,7 @@ Here's an example of issuing a Verifiable Credential using DIDs, provided that y ```javascript const issuerKey = getKeyDoc(issuerDID, dock.keyring.addFromUri(issuerSeed, null, 'ed25519'), 'Ed25519VerificationKey2018'); await vc.sign(issuerKey); -const verificationResult = await signedCredential.verify({ resolver, compactProof: true, forceRevocationCheck: true, revocationApi: { dock } }); +const verificationResult = await signedCredential.verify({ resolver, compactProof: true }); console.log(verificationResult.verified); // Should print `true` ```