Skip to content

Commit

Permalink
feat: alpha release oa v3 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
yehjxraymond committed Jan 19, 2021
1 parent 15af146 commit 4eefc8e
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/com/openattestation/1.0/CustomContext.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"@context": {
"@version": 1.1,
"@protected": true,

"key1": "xsd:string",
"key2": "xsd:string",
"key3": "xsd:string",
"key4": "xsd:string"
}
}
16 changes: 16 additions & 0 deletions src/com/openattestation/1.0/DrivingLicenceCredential.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"@context": [
{
"@version": 1.1
},
"https://www.w3.org/ns/odrl.jsonld",
{
"ex": "https://example.org/examples#",
"schema": "http://schema.org/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"DrivingLicenceCredential": "ex:DrivingLicenceCredential",
"class": "ex:class",
"effectiveDate": "ex:effectiveDate"
}
]
}
82 changes: 82 additions & 0 deletions src/com/openattestation/1.0/OpenAttestation.v3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"@context": {
"@version": 1.1,
"@protected": true,
"identityProof": {
"@id": "https://lol.com/todo",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"location": "xsd:string",
"DNS-TXT": "xsd:string"
}
},
"credentialProof": {
"@id": "https://lol.com/todo",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"OpenAttestationSignature2018": "xsd:string",
"method": "xsd:string"
}
},
"openAttestationMetadata": {
"@id": "https://lol.com/todo",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id"
}
},
"template": {
"@id": "https://lol.com/todo",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"name": "xsd:string",
"url": "xsd:string",
"EMBEDDED_RENDERER": "xsd:string"
}
},
"privacy": {
"@id": "https://lol.com/todo",
"@context": {
"@version": 1.1,
"@protected": true,
"obfuscated": {
"@id": "https://lol.com/todo",
"@container": ["@index", "@set"]
}
}
},
"value": "xsd:string",
"reference": "xsd:string",
"name": "xsd:string",
"path": "xsd:string",
"targetHash": "xsd:string",
"proofs": {
"@id": "https://lol.com/todo",
"@container": ["@index", "@set"]
},
"attachments": {
"@id": "https://lol.com/todo",
"@container": ["@index", "@set"]
},
"merkleRoot": "xsd:string",
"salts": {
"@id": "https://lol.com/todo",
"@container": ["@index", "@set"]
},
"data": "xsd:string",
"fileName": "xsd:string",
"mimeType": "xsd:string",
"OpenAttestationSignature2018": "xsd:string",
"method": "xsd:string",
"proofPurpose": "xsd:string"
}
}

0 comments on commit 4eefc8e

Please sign in to comment.