This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: addresses bug with blank nodes that was breaking nesting
the blank nodes were only being transformed in the node identifier portion of the nQuad. This caused issues in how the nQuads would be converted back from RDF to JSON which in-advertently broke the ability for a proof to be derived from a nested structure. This fix makes it so that all blank node identifiers are transformed properly rather than just the node identifiers (first part of the nQuad). re #91
- Loading branch information
1 parent
2673a0a
commit 016364d
Showing
18 changed files
with
868 additions
and
652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"VerifiableCredential": { | ||
"@id": "https://www.w3.org/2018/credentials#VerifiableCredential", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"credentialSchema": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialSchema", | ||
"@type": "@id", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"JsonSchemaValidator2018": "https://www.w3.org/2018/credentials#JsonSchemaValidator2018" | ||
} | ||
}, | ||
"credentialStatus": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialStatus", | ||
"@type": "@id" | ||
}, | ||
"credentialSubject": { | ||
"@id": "https://www.w3.org/2018/credentials#credentialSubject", | ||
"@type": "@id" | ||
}, | ||
"evidence": { | ||
"@id": "https://www.w3.org/2018/credentials#evidence", | ||
"@type": "@id" | ||
}, | ||
"expirationDate": { | ||
"@id": "https://www.w3.org/2018/credentials#expirationDate", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"holder": { | ||
"@id": "https://www.w3.org/2018/credentials#holder", | ||
"@type": "@id" | ||
}, | ||
"issued": { | ||
"@id": "https://www.w3.org/2018/credentials#issued", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"issuer": { | ||
"@id": "https://www.w3.org/2018/credentials#issuer", | ||
"@type": "@id" | ||
}, | ||
"issuanceDate": { | ||
"@id": "https://www.w3.org/2018/credentials#issuanceDate", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"proof": { | ||
"@id": "https://w3id.org/security#proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
}, | ||
"refreshService": { | ||
"@id": "https://www.w3.org/2018/credentials#refreshService", | ||
"@type": "@id", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"ManualRefreshService2018": "https://www.w3.org/2018/credentials#ManualRefreshService2018" | ||
} | ||
}, | ||
"termsOfUse": { | ||
"@id": "https://www.w3.org/2018/credentials#termsOfUse", | ||
"@type": "@id" | ||
}, | ||
"validFrom": { | ||
"@id": "https://www.w3.org/2018/credentials#validFrom", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
}, | ||
"validUntil": { | ||
"@id": "https://www.w3.org/2018/credentials#validUntil", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
} | ||
} | ||
}, | ||
"VerifiablePresentation": { | ||
"@id": "https://www.w3.org/2018/credentials#VerifiablePresentation", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"holder": { | ||
"@id": "https://www.w3.org/2018/credentials#holder", | ||
"@type": "@id" | ||
}, | ||
"proof": { | ||
"@id": "https://w3id.org/security#proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
}, | ||
"verifiableCredential": { | ||
"@id": "https://www.w3.org/2018/credentials#verifiableCredential", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
} | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.