Skip to content

VC with a validFrom date in the future should return full log and meaningful error #35

@jchartrand

Description

@jchartrand

A VC that isn't yet valid because its validFrom date is in the future, like this one:

https://digitalcredentials.github.io/vc-test-fixtures/verifiableCredentials/v2/dataIntegrityProof/didKey/oidf-noStatus-notExpired-notYetValid.json

returns a fatal error (included below) with the only information being "verified":false

It should instead return the full log with information about all steps, and also a specific error indicating that the credential isn't yet valid.

This might already be handled by any updates to the forked digitalbazaar vc lib, but if not will need to add handling.

{
"verified": false,
"results": [
{
"credential": {
"type": [
"VerifiableCredential",
"OpenBadgeCredential"
],
"name": "A marvel",
"issuer": {
"type": [
"Profile"
],
"name": "Bestest Ever University",
"url": "https://bestest.edu",
"phone": "1-222-333-4444",
"description": "The bestest.",
"image": {
"id": "https://github.com/digitalcredentials/test-files/assets/206059/01eca9f5-a508-40ac-9dd5-c12d11308894",
"type": "Image",
"caption": "MIT oh"
},
"email": "[email protected]",
"address": {
"type": [
"Address"
],
"addressCountry": "Canada",
"addressCountryCode": "CA",
"addressRegion": "ON",
"addressLocality": "Ancaster",
"streetAddress": "163 Corndog",
"postOfficeBoxNumber": "2",
"postalCode": "L9G4H7",
"geo": {
"type": "GeoCoordinates",
"latitude": 1,
"longitude": 1
}
},
"otherIdentifier": [
{
"type": "IdentifierEntry",
"identifier": "9335",
"identifierType": "sourcedId"
},
{
"type": "IdentifierEntry",
"identifier": "984",
"identifierType": "nationalIdentityNumber"
}
],
"official": "Charlie Horse",
"parentOrg": {
"id": "did:example:89898349834",
"type": [
"Profile"
],
"name": "Animal Universities"
},
"id": "did:key:z6MkjoriXdbyWD25YXTed114F8hdJrLXQ567xxPHAUKxpKkS"
},
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"
],
"validFrom": "2099-01-01T00:00:00Z",
"validUntil": "9999-01-02T00:00:00Z",
"credentialSubject": {
"type": [
"AchievementSubject"
],
"name": "Sam Salmon",
"achievement": {
"id": "https://example.com/achievements/21st-century-skills/teamwork",
"type": [
"Achievement"
],
"name": "A credential that isn't yet valid",
"criteria": {
"narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management."
},
"description": "This badge recognizes the development of the capacity to collaborate within a group environment."
}
},
"id": "urn:uuid:677fe8a6cacf98774d482d06",
"proof": {
"type": "DataIntegrityProof",
"created": "2025-07-18T14:46:59Z",
"verificationMethod": "did:key:z6MkjoriXdbyWD25YXTed114F8hdJrLXQ567xxPHAUKxpKkS#z6MkjoriXdbyWD25YXTed114F8hdJrLXQ567xxPHAUKxpKkS",
"cryptosuite": "eddsa-rdfc-2022",
"proofPurpose": "assertionMethod",
"proofValue": "z3ATKLuXyMbWyCEQGDZev5jcDmqE8LygGwovNnzK1nSGXcq9yuys2ap8nNLZT8UB6zX5xjtYRQUtAKoApwoc5NfHk"
}
},
"verified": false,
"error": {}
}
],
"error": {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions