diff --git a/README.md b/README.md index a7b5bd9e..e9a3c342 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ try { const wrappedDocument = await wrapDocument({ "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], type: ["VerifiableCredential", "OpenAttestationCredential"], name: "Republic of Singapore Driving Licence", diff --git a/package.json b/package.json index 5fedc9ef..e6b8d760 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "test:vc": "scripts/runVcTest.sh", "lint": "eslint . --ext .ts,.json --max-warnings 0", "lint:fix": "npm run lint -- --fix", + "fetch-v4-contexts": "npx ts-node scripts/fetchV4Contexts.ts", "generate-v4-fixtures": "npx ts-node scripts/generateV4JsonFixtures.ts", "generate-v4-json-schemas": "npx ts-node scripts/generateV4JsonSchemas.ts", "publish:schema": "./scripts/publishSchema.sh", diff --git a/scripts/fetchV4Contexts.ts b/scripts/fetchV4Contexts.ts new file mode 100644 index 00000000..b055a341 --- /dev/null +++ b/scripts/fetchV4Contexts.ts @@ -0,0 +1,24 @@ +import fs from "fs"; +import path from "path"; +import { ContextUrl } from "../src/4.0/context"; + +const OUTPUT_DIR = path.resolve("./src/4.0/contexts/__generated__"); + +// make sure the output directory exists +if (fs.existsSync(OUTPUT_DIR)) { + fs.rmSync(OUTPUT_DIR, { recursive: true }); +} +fs.mkdirSync(OUTPUT_DIR, { recursive: true }); + +const CONTEXTS_TO_FETCH = Object.values(ContextUrl); + +const sb: string[] = [`const contextsMap = new Map();`]; +Promise.all( + CONTEXTS_TO_FETCH.map(async (url) => { + const context = await (await fetch(url)).json(); + sb.push(`contextsMap.set("${url}", \`${JSON.stringify(context)}\`);`); + }) +).then(() => { + sb.push(`export { contextsMap };`); + fs.writeFileSync(path.join(OUTPUT_DIR, "index.ts"), sb.join("\n")); +}); diff --git a/src/4.0/__tests__/digest.test.ts b/src/4.0/__tests__/digest.test.ts index d36e2a39..cbc693b8 100644 --- a/src/4.0/__tests__/digest.test.ts +++ b/src/4.0/__tests__/digest.test.ts @@ -8,9 +8,9 @@ import { obfuscateVerifiableCredential } from "../obfuscate"; const ROOT_CREDENTIAL_TARGET_HASH = ROOT_CREDENTIAL.proof.targetHash; describe("V4 digestCredential", () => { - test("given all testobfuscated documents are generated from the ROOT_CREDENTIAL, ROOT_CREDENTIAL_TARGET_HASH should match snapshot", () => { + test("given that obfuscated documents are generated from the ROOT_CREDENTIAL, ROOT_CREDENTIAL_TARGET_HASH should match snapshot", () => { expect(ROOT_CREDENTIAL_TARGET_HASH).toMatchInlineSnapshot( - `"dd55a7d96d47e58350f2cfb03ebdf3f859684c9f97ba75eed55b1bdcc761c5aa"` + `"0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc"` ); }); @@ -66,7 +66,7 @@ describe("V4 digestCredential", () => { `); expect(OBFUSCATED_WRAPPED_DOCUMENT.proof.privacy.obfuscated).toMatchInlineSnapshot(` [ - "410849f7c317307141d4cecd4d72fe7efb9655abaa0ee37374b2ec53a3588ee7", + "31744f7aac0af84e23e752611279933657ff78a9065330f8c5029ec5205979a3", ] `); @@ -105,9 +105,9 @@ describe("V4 digestCredential", () => { `); expect(OBFUSCATED_WRAPPED_DOCUMENT.proof.privacy.obfuscated).toMatchInlineSnapshot(` [ - "410849f7c317307141d4cecd4d72fe7efb9655abaa0ee37374b2ec53a3588ee7", - "21f8a6f2f464ff14afbc52e4dcb965d7891a7c63fd37eb93f8f98477dcdfc7f9", - "228eb6b469ca3a475238455f11125b7edc826c6dc3ae727d023d1eb71d0e60d6", + "31744f7aac0af84e23e752611279933657ff78a9065330f8c5029ec5205979a3", + "f49443c7e5fcb9f20dad4463a5e0b2cb3e341c430d4792cb87cb11bce0efd9b0", + "7f2ecdae29b49b3a971d5acdfbbf9225a193e735ce41b89b0d84cca801794fc9", ] `); @@ -128,40 +128,40 @@ describe("V4 digestCredential", () => { proof: { type: "OpenAttestationMerkleProofSignature2018", proofPurpose: "assertionMethod", - targetHash: "dd55a7d96d47e58350f2cfb03ebdf3f859684c9f97ba75eed55b1bdcc761c5aa", + targetHash: "0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc", proofs: [], - merkleRoot: "dd55a7d96d47e58350f2cfb03ebdf3f859684c9f97ba75eed55b1bdcc761c5aa", + merkleRoot: "0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc", salts: "W10=", privacy: { obfuscated: [ - "0fd4ac5ade244ee2fe47437ea43cd142479540b878fffc86662600fce4d47ef5", - "0cc6e4c50bb090af720d224a9bd73be4c0d72831fc701907339693cdcb34ede3", - "d2afadbec39872577eae0d5e4ea3b590608cab744f214a2f703f65a5b41683cb", - "569b596d71fb145e9c87be1b301da3cbc89cfc104627f6dd95c8123f7974e9c6", - "5dee7aa2b48b9a5edae5042459c7c3eeaa8c5b13132b1477641c727a89471b36", - "2a1ff14be659821afa68edc245f67b9e25331b450715b41348ed2405334d5abd", - "0f1d172b5352464121dffc550e16f64b8019637e39768c506fd2e517a0da305d", - "ff4eeed1d7bb70aef646d46dc75b3408cf019e0daeaf2ef0313974690d8beef2", - "2a4e9fd43be0221af2f02a6b959edf704b630559268a0b2a657fe046e282fbb8", - "bbdf2b05cc0bd2a64fc3483211806e2f863bea05fba81f63092ec07c4ee8ebd9", - "bd9acf6bef05f94720f0fa9c5540bb9db7d6370c39e2bbbee31e408842985dae", - "410849f7c317307141d4cecd4d72fe7efb9655abaa0ee37374b2ec53a3588ee7", - "32a55f464387e37df8f74cf3de6a8e04626e19c2f4d5ec8931aee4b866329fb8", - "21f8a6f2f464ff14afbc52e4dcb965d7891a7c63fd37eb93f8f98477dcdfc7f9", - "6bc7b2350b59b02a44d2593ee7538590114544bc3a39fe9564ee49b387c883c4", - "228eb6b469ca3a475238455f11125b7edc826c6dc3ae727d023d1eb71d0e60d6", - "d6e7027dd62b265e83aaf306f095446efab2677e940a0fbb118cc91dd8226fdb", - "da26ce90128b1cfd747218cad4c7e86b83f6ab236598ce18aecc3b10426b1b71", - "5edea35aa869577c2fd14159534b08da061a7833665cf1cc28f400474c26be01", - "d55b72f926f7adaa5ea4f271ffc2f574e4859b05c16042f5b604e52f044a11d0", - "dd69de699de90b82cfb658fc304ae4f3131e841d56fd68eb20e17af73613a4d3", - "280bc622006d5ec28a42096b57f15f8238df27762c3f754d56dcd89f3aa02c25", - "3d8bc5cbcd2826489cdc80a64d586a4d220d975bc2848aa535bd1e4f17dc619f", + "fb3e116ab528a97d055822754f9ccd1ca5d2962a74d533cc34f066e65a93c76f", + "fe5c8db00ea1f1b4cfcbc29d00810cd6e18f715b98d3660090ee30cf88b4375c", + "27c33bf2f9e5ba4d94c017569174f1432f8887994bfaa70a50c0cf42e62e9f3e", + "5094d0467785684f843648d3edbd1e370df296327796a13b18112e0941bbf14e", + "a4723abfc6809faa72d62d44bb9a11d35e93a780c7a5cb69cdd3693c45960367", + "62858cb5907188767134ec958c6cdfd17e44e52f1511e56b06670fe1b0588160", + "f0250ff7053e849fda119078d5d5dd6689eb7751a74cab71aa11f92941d22aa9", + "d1741f3c9b8bde24eea271870f8200c6c627a94739051d7b7a480e0aaff60bc0", + "6da741164cefb41160b23388b3ee9b0944fab0bedd70b63e20cee0af3fabe565", + "780e835a67653d28f0582d8fb3a1980709b178841fe4d1f6019be0f49db41ac3", + "5c91f334f63f258e4ba299da14880019711538169512e5c6449fbfca7edd7110", + "31744f7aac0af84e23e752611279933657ff78a9065330f8c5029ec5205979a3", + "ab0957fe8747ac06749268e6398bd4cf67a8a22bf0e67eaacc030bcb5f11e3ed", + "f49443c7e5fcb9f20dad4463a5e0b2cb3e341c430d4792cb87cb11bce0efd9b0", + "0df8aa79b275612b491103b10804276364da6dc49f398faa7be2190de1d60cd2", + "7f2ecdae29b49b3a971d5acdfbbf9225a193e735ce41b89b0d84cca801794fc9", + "0eccbf844ac0b68bdd5de85894dce6ecb429f36f4e21630ff70d487a92b2e75f", + "135c5417e9baec64bbe977f9244496aae4a452bf58177b4fd9064c8afdfe483a", + "b8e8cc46e99c58420e5819ed9f80b90489b2db72f6eb94dc84d1f6a15a331030", + "b5554487209f1b99fc73190a8f32e3b2087a6e310f3d05f7c8f7c1f488565b0c", + "c38928d0bad7d71f6e2a7aa33b4983afbeaa9e3c990de6137385b30fc6d5a9ac", + "856d307b40543221d78ba858c6438f4f3e773ab2a81f3140bdff8bc21e30b0d5", + "2be8c866f23b27108c9f2d9acfc21bfef5f61124a2272eb3cee1e94cd79c68c0", ], }, - key: "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89#controller", + key: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90#controller", signature: - "0xa3ac9f73a7314c0aad47bad875921f5c88d2af9440d6c309fc2f93dbf43bd8235e84b744cb1ff1c09c214b559ce3bd6eb148c2f68c677cb8408d96e9b5411dfb1c", + "0x949b76d8df493a56c1cf21303a74d6a54904461c1c10f4619b43ad7d339c64467c61eb4c0873f279cd21d5bdd044d3af5318f14d63f57acbd4cde30f271f3eb71c", }, } as unknown as V4SignedWrappedDocument; diff --git a/src/4.0/__tests__/e2e.test.ts b/src/4.0/__tests__/e2e.test.ts index 12e5e17e..fae28ebf 100644 --- a/src/4.0/__tests__/e2e.test.ts +++ b/src/4.0/__tests__/e2e.test.ts @@ -64,7 +64,7 @@ describe("V4 E2E Test Scenarios", () => { const wrappedDocument = await wrapDocument(RAW_DOCUMENT_DID); expect(wrappedDocument["@context"]).toEqual([ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ]); expect(wrappedDocument.type).toEqual(["VerifiableCredential", "OpenAttestationCredential"]); expect(wrappedDocument.proof.type).toBe("OpenAttestationMerkleProofSignature2018"); diff --git a/src/4.0/__tests__/obfuscate.test.ts b/src/4.0/__tests__/obfuscate.test.ts index 079db9e6..c6b27005 100644 --- a/src/4.0/__tests__/obfuscate.test.ts +++ b/src/4.0/__tests__/obfuscate.test.ts @@ -303,7 +303,9 @@ describe("privacy", () => { test("should return array of hashes when there is obfuscated data in document", () => { const obfuscatedData = getObfuscatedData(SIGNED_WRAPPED_DOCUMENT_DID_OBFUSCATED); expect(obfuscatedData.length).toBe(1); - expect(obfuscatedData?.[0]).toBe("0394c26c5be1bde929bf5aec2e076fc6843ace379be541c30707dab467baa59f"); + expect(obfuscatedData?.[0]).toMatchInlineSnapshot( + `"7f2ecdae29b49b3a971d5acdfbbf9225a193e735ce41b89b0d84cca801794fc9"` + ); }); }); diff --git a/src/4.0/__tests__/sign.test.ts b/src/4.0/__tests__/sign.test.ts index 03496075..cd6ed2f7 100644 --- a/src/4.0/__tests__/sign.test.ts +++ b/src/4.0/__tests__/sign.test.ts @@ -21,8 +21,8 @@ describe("V4 sign", () => { const { proof } = parsedResults.data; expect(Object.keys(proof).length).toBe(9); expect(proof.key).toBe("did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89#controller"); - expect(proof.signature).toBe( - "0xa3ac9f73a7314c0aad47bad875921f5c88d2af9440d6c309fc2f93dbf43bd8235e84b744cb1ff1c09c214b559ce3bd6eb148c2f68c677cb8408d96e9b5411dfb1c" + expect(proof.signature).toMatchInlineSnapshot( + `"0x625a9c8f7915c4f495fc872dd771d30fb289f405b11030862292a015f10602455451c7f4b5981109fb301915327fb502b4961beeb64b9acf3f9c9c8f8b42deeb1c"` ); }); it("should sign a document with a wallet", async () => { @@ -41,8 +41,8 @@ describe("V4 sign", () => { const { proof } = parsedResults.data; expect(Object.keys(proof).length).toBe(9); expect(proof.key).toBe("did:ethr:0x906FB815De8976b1e38D9a4C1014a3acE16Ce53C#controller"); - expect(proof.signature).toBe( - "0xb850c0f34d834a7de4185eead5295eeebf9a56ada4603d94f10a72e0fe144179140ce534ddb4123c6fffbf5594d112e1f679e537b29c5188ccd2b940c4798dd11b" + expect(proof.signature).toMatchInlineSnapshot( + `"0xde916f44e6d3a83ec082fd35eb0b85fc541deebe5e53082c2eaf07ec5ddd503f1929f650f3c39c6b4c224a56599e4e66d018dfd536019560f117b89adff6ead61b"` ); }); diff --git a/src/4.0/__tests__/wrap.test.ts b/src/4.0/__tests__/wrap.test.ts index ebd628c6..25010632 100644 --- a/src/4.0/__tests__/wrap.test.ts +++ b/src/4.0/__tests__/wrap.test.ts @@ -6,7 +6,7 @@ describe("V4.0 wrap document", () => { const wrapped = await wrapDocument({ "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], type: ["VerifiableCredential", "OpenAttestationCredential"], credentialSubject: { @@ -40,7 +40,7 @@ describe("V4.0 wrap document", () => { wrapDocument({ "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], type: ["VerifiableCredential", "OpenAttestationCredential"], @@ -76,7 +76,7 @@ describe("V4.0 wrap document", () => { wrapDocument({ "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], type: ["VerifiableCredential", "OpenAttestationCredential"], diff --git a/src/4.0/context.ts b/src/4.0/context.ts index 196e72b4..92a8d470 100644 --- a/src/4.0/context.ts +++ b/src/4.0/context.ts @@ -1,35 +1,35 @@ -import { expand, Options, JsonLdDocument } from "jsonld"; import { fetch } from "cross-fetch"; +import { expand, Options, JsonLdDocument } from "jsonld"; +import { contextsMap } from "./contexts/__generated__"; export const ContextUrl = { - v2_vc: "https://www.w3.org/ns/credentials/v2", - v4_alpha: "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + w3c_vc_v2: "https://www.w3.org/ns/credentials/v2", + oa_vc_v4: "https://schemata.openattestation.com/com/openattestation/4.0/context.json", } as const; export const ContextType = { BaseContext: "VerifiableCredential", - V4AlphaContext: "OpenAttestationCredential", + OAV4Context: "OpenAttestationCredential", } as const; -const preloadedContextList = [ContextUrl.v2_vc, ContextUrl.v4_alpha]; -const contexts: Map = new Map(); +const contextCache: Map> = new Map(); -// Preload frequently used contexts -// https://github.com/digitalbazaar/jsonld.js?tab=readme-ov-file#custom-document-loader let isFirstLoad = true; +// https://github.com/digitalbazaar/jsonld.js?tab=readme-ov-file#custom-document-loader // FIXME: @types/json-ld seems to be outdated as callback is supposed to be options const documentLoader: Options.DocLoader["documentLoader"] = async (url, _) => { + // On first load: Preload frequently used contexts so that no network request will be made on runtime if (isFirstLoad) { isFirstLoad = false; - for (const url of preloadedContextList) { - const document = await fetch(url).then((res) => res.json()); - contexts.set(url, document); + for (const [url, value] of contextsMap) { + const parsed = JSON.parse(value); + contextCache.set(url, parsed); } } - if (contexts.get(url)) { + if (contextCache.get(url)) { return { contextUrl: undefined, // this is for a context via a link header - document: contexts.get(url), // this is the actual document that was loaded + document: contextCache.get(url), // this is the actual document that was loaded documentUrl: url, // this is the actual context URL after redirects }; } else { diff --git a/src/4.0/contexts/__generated__/index.ts b/src/4.0/contexts/__generated__/index.ts new file mode 100644 index 00000000..25980c89 --- /dev/null +++ b/src/4.0/contexts/__generated__/index.ts @@ -0,0 +1,4 @@ +const contextsMap = new Map(); +contextsMap.set("https://schemata.openattestation.com/com/openattestation/4.0/context.json", `{"@context":{"@version":1.1,"@protected":true,"schema":"https://schema.org/","oacred":"https://schemata.openattestation.com/com/openattestation/4.0/context.json#","OpenAttestationCredential":{"@id":"oacred:OpenAttestationCredential","@context":{"name":"schema:name"}},"OpenAttestationIssuer":{"@id":"oacred:OpenAttestationIssuer","@context":{"name":"schema:name","identityProof":{"@id":"oacred:identityProof","@context":{"identityProofType":"oacred:identityProofType","identifier":{"@id":"oacred:identityProofIdentifier","@type":"schema:identifier"}}}}},"OpenAttestationOcspResponder":{"@id":"oacred:credentialStatus"},"OpenAttestationEmbeddedRenderer":{"@id":"oacred:renderMethod","@context":{"templateName":"oacred:renderTemplateName"}},"OpenAttestationMerkleProofSignature2018":{"@id":"oacred:OpenAttestationMerkleProofSignature2018","@context":{"proofPurpose":"oacred:proofPurpose","targetHash":"oacred:proofTargetHash","proofs":{"@id":"oacred:proofIntermediateProofs","@container":"@list"},"merkleRoot":"oacred:proofMerkleRoot","salts":"oacred:proofSalts","privacy":{"@id":"oacred:proofPrivacy","@context":{"obfuscated":{"@id":"oacred:proofPrivacyObfuscated","@container":"@list"}}},"key":"oacred:proofKey","signature":"oacred:proofSignature"}}}}`); +contextsMap.set("https://www.w3.org/ns/credentials/v2", `{"@context":{"@protected":true,"id":"@id","type":"@type","description":"https://schema.org/description","digestMultibase":{"@id":"https://w3id.org/security#digestMultibase","@type":"https://w3id.org/security#multibase"},"digestSRI":{"@id":"https://www.w3.org/2018/credentials#digestSRI","@type":"https://www.w3.org/2018/credentials#sriString"},"mediaType":{"@id":"https://schema.org/encodingFormat"},"name":"https://schema.org/name","VerifiableCredential":{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@protected":true,"id":"@id","type":"@type","confidenceMethod":{"@id":"https://www.w3.org/2018/credentials#confidenceMethod","@type":"@id"},"credentialSchema":{"@id":"https://www.w3.org/2018/credentials#credentialSchema","@type":"@id"},"credentialStatus":{"@id":"https://www.w3.org/2018/credentials#credentialStatus","@type":"@id"},"credentialSubject":{"@id":"https://www.w3.org/2018/credentials#credentialSubject","@type":"@id"},"description":"https://schema.org/description","evidence":{"@id":"https://www.w3.org/2018/credentials#evidence","@type":"@id"},"issuer":{"@id":"https://www.w3.org/2018/credentials#issuer","@type":"@id"},"name":"https://schema.org/name","proof":{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},"refreshService":{"@id":"https://www.w3.org/2018/credentials#refreshService","@type":"@id"},"relatedResource":{"@id":"https://www.w3.org/2018/credentials#relatedResource","@type":"@id"},"renderMethod":{"@id":"https://www.w3.org/2018/credentials#renderMethod","@type":"@id"},"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"}}},"EnvelopedVerifiableCredential":"https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential","VerifiablePresentation":{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@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"},"termsOfUse":{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},"verifiableCredential":{"@id":"https://www.w3.org/2018/credentials#verifiableCredential","@type":"@id","@container":"@graph","@context":null}}},"EnvelopedVerifiablePresentation":"https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation","JsonSchemaCredential":"https://www.w3.org/2018/credentials#JsonSchemaCredential","JsonSchema":{"@id":"https://www.w3.org/2018/credentials#JsonSchema","@context":{"@protected":true,"id":"@id","type":"@type","jsonSchema":{"@id":"https://www.w3.org/2018/credentials#jsonSchema","@type":"@json"}}},"BitstringStatusListCredential":"https://www.w3.org/ns/credentials/status#BitstringStatusListCredential","BitstringStatusList":{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusList","@context":{"@protected":true,"id":"@id","type":"@type","encodedList":{"@id":"https://www.w3.org/ns/credentials/status#encodedList","@type":"https://w3id.org/security#multibase"},"statusMessage":{"@id":"https://www.w3.org/ns/credentials/status#statusMessage","@context":{"@protected":true,"id":"@id","type":"@type","message":"https://www.w3.org/ns/credentials/status#message","status":"https://www.w3.org/ns/credentials/status#status"}},"statusPurpose":"https://www.w3.org/ns/credentials/status#statusPurpose","statusReference":{"@id":"https://www.w3.org/ns/credentials/status#statusReference","@type":"@id"},"statusSize":{"@id":"https://www.w3.org/ns/credentials/status#statusSize","@type":"https://www.w3.org/2001/XMLSchema#positiveInteger"},"ttl":"https://www.w3.org/ns/credentials/status#ttl"}},"BitstringStatusListEntry":{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusListEntry","@context":{"@protected":true,"id":"@id","type":"@type","statusListCredential":{"@id":"https://www.w3.org/ns/credentials/status#statusListCredential","@type":"@id"},"statusListIndex":"https://www.w3.org/ns/credentials/status#statusListIndex","statusPurpose":"https://www.w3.org/ns/credentials/status#statusPurpose"}},"DataIntegrityProof":{"@id":"https://w3id.org/security#DataIntegrityProof","@context":{"@protected":true,"id":"@id","type":"@type","challenge":"https://w3id.org/security#challenge","created":{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},"cryptosuite":{"@id":"https://w3id.org/security#cryptosuite","@type":"https://w3id.org/security#cryptosuiteString"},"domain":"https://w3id.org/security#domain","expires":{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},"nonce":"https://w3id.org/security#nonce","previousProof":{"@id":"https://w3id.org/security#previousProof","@type":"@id"},"proofPurpose":{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":true,"id":"@id","type":"@type","assertionMethod":{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},"authentication":{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},"capabilityDelegation":{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},"capabilityInvocation":{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},"keyAgreement":{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},"proofValue":{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},"verificationMethod":{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}},"...":{"@id":"https://www.iana.org/assignments/jwt#..."},"_sd":{"@id":"https://www.iana.org/assignments/jwt#_sd","@type":"@json"},"_sd_alg":{"@id":"https://www.iana.org/assignments/jwt#_sd_alg"},"aud":{"@id":"https://www.iana.org/assignments/jwt#aud","@type":"@id"},"cnf":{"@id":"https://www.iana.org/assignments/jwt#cnf","@context":{"@protected":true,"kid":{"@id":"https://www.iana.org/assignments/jwt#kid","@type":"@id"},"jwk":{"@id":"https://www.iana.org/assignments/jwt#jwk","@type":"@json"}}},"exp":{"@id":"https://www.iana.org/assignments/jwt#exp","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},"iat":{"@id":"https://www.iana.org/assignments/jwt#iat","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},"iss":{"@id":"https://www.iana.org/assignments/jose#iss","@type":"@id"},"jku":{"@id":"https://www.iana.org/assignments/jose#jku","@type":"@id"},"kid":{"@id":"https://www.iana.org/assignments/jose#kid","@type":"@id"},"nbf":{"@id":"https://www.iana.org/assignments/jwt#nbf","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},"sub":{"@id":"https://www.iana.org/assignments/jose#sub","@type":"@id"},"x5u":{"@id":"https://www.iana.org/assignments/jose#x5u","@type":"@id"}}}`); +export { contextsMap }; \ No newline at end of file diff --git a/src/4.0/documentBuilder.ts b/src/4.0/documentBuilder.ts index 0fa8d348..f11f942f 100644 --- a/src/4.0/documentBuilder.ts +++ b/src/4.0/documentBuilder.ts @@ -10,6 +10,7 @@ import { V4SignedWrappedDocument, V4WrappedDocument, } from "./types"; +import { ContextType, ContextUrl } from "./context"; import { ZodError, z } from "zod"; @@ -131,11 +132,8 @@ export class DocumentBuilder { const toWrap = data.map( ({ name, credentialSubject }) => ({ - "@context": [ - "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", - ], - type: ["VerifiableCredential", "OpenAttestationCredential"], + "@context": [ContextUrl.w3c_vc_v2, ContextUrl.oa_vc_v4], + type: [ContextType.BaseContext, ContextType.OAV4Context], issuer, name, credentialSubject, @@ -152,11 +150,8 @@ export class DocumentBuilder { const { name, credentialSubject } = data; return wrapDocument({ - "@context": [ - "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", - ], - type: ["VerifiableCredential", "OpenAttestationCredential"], + "@context": [ContextUrl.w3c_vc_v2, ContextUrl.oa_vc_v4], + type: [ContextType.BaseContext, ContextType.OAV4Context], issuer, name, credentialSubject, diff --git a/src/4.0/fixtures.ts b/src/4.0/fixtures.ts index 17d2082f..72d664b8 100644 --- a/src/4.0/fixtures.ts +++ b/src/4.0/fixtures.ts @@ -1,16 +1,15 @@ import { V4OpenAttestationDocument, V4SignedWrappedDocument, V4WrappedDocument } from "./types"; +import { ContextUrl } from "./context"; -const ISSUER_ID = "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89" as const; +const ISSUER_ID = "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90" as const; export const SAMPLE_SIGNING_KEYS = { public: `${ISSUER_ID}#controller`, - private: "0x497c85ed89f1874ba37532d1e33519aba15bd533cdcb90774cc497bfe3cde655", + private: "0xcd27dc84c82c5814e7edac518edd5f263e7db7f25adb7a1afe13996a95583cf2", } as const; +/* RAW */ export const RAW_DOCUMENT_DID = freezeObject({ - "@context": [ - "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", - ], + "@context": [ContextUrl.w3c_vc_v2, ContextUrl.oa_vc_v4], type: ["VerifiableCredential", "OpenAttestationCredential"], validFrom: "2021-03-08T12:00:00+08:00", name: "Republic of Singapore Driving Licence", @@ -47,10 +46,7 @@ export const RAW_DOCUMENT_DID = freezeObject({ } satisfies V4OpenAttestationDocument); export const RAW_DOCUMENT_DID_OSCP = freezeObject({ - "@context": [ - "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", - ], + "@context": [ContextUrl.w3c_vc_v2, ContextUrl.oa_vc_v4], type: ["VerifiableCredential", "OpenAttestationCredential"], validFrom: "2021-03-08T12:00:00+08:00", name: "Republic of Singapore Driving Licence", @@ -92,10 +88,7 @@ export const RAW_DOCUMENT_DID_OSCP = freezeObject({ export const BATCHED_RAW_DOCUMENTS_DID = freezeObject([ { - "@context": [ - "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", - ], + "@context": [ContextUrl.w3c_vc_v2, ContextUrl.oa_vc_v4], name: "Republic of Singapore Driving Licence", type: ["VerifiableCredential", "OpenAttestationCredential"], issuer: { @@ -134,10 +127,7 @@ export const BATCHED_RAW_DOCUMENTS_DID = freezeObject([ ], }, { - "@context": [ - "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", - ], + "@context": [ContextUrl.w3c_vc_v2, ContextUrl.oa_vc_v4], name: "Republic of Singapore Driving Licence", type: ["VerifiableCredential", "OpenAttestationCredential"], issuer: { @@ -172,21 +162,19 @@ export const BATCHED_RAW_DOCUMENTS_DID = freezeObject([ }, ] satisfies V4OpenAttestationDocument[]); +/* Wrapped */ export const WRAPPED_DOCUMENT_DID = freezeObject({ "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], name: "Republic of Singapore Driving Licence", type: ["VerifiableCredential", "OpenAttestationCredential"], issuer: { - id: "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + id: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", type: "OpenAttestationIssuer", name: "Government Technology Agency of Singapore (GovTech)", - identityProof: { - identityProofType: "DNS-DID", - identifier: "example.openattestation.com", - }, + identityProof: { identityProofType: "DNS-DID", identifier: "example.openattestation.com" }, }, validFrom: "2021-03-08T12:00:00+08:00", credentialSubject: { @@ -207,41 +195,32 @@ export const WRAPPED_DOCUMENT_DID = freezeObject({ ], }, renderMethod: [ - { - id: "https://demo-renderer.opencerts.io", - type: "OpenAttestationEmbeddedRenderer", - templateName: "GOVTECH_DEMO", - }, + { id: "https://demo-renderer.opencerts.io", type: "OpenAttestationEmbeddedRenderer", templateName: "GOVTECH_DEMO" }, ], proof: { type: "OpenAttestationMerkleProofSignature2018", proofPurpose: "assertionMethod", - targetHash: "dd55a7d96d47e58350f2cfb03ebdf3f859684c9f97ba75eed55b1bdcc761c5aa", + targetHash: "0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc", proofs: [], - merkleRoot: "dd55a7d96d47e58350f2cfb03ebdf3f859684c9f97ba75eed55b1bdcc761c5aa", + merkleRoot: "0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc", salts: - "W3sidmFsdWUiOiJjYTE3MjI0YTg3NTk0NzNhNGUyZjM2YTM3NjljODU0OGM5M2RjZTQ3NmI0MjEwMTNmYTEzYTA2OTUxYTI1YzhjIiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6IjMyYzk3MDRhMmIxMWU1MzhjYTBlZWJhYWMzNmU0ZmRlYTU4ZGY0MDI4ZGVmZmJjOTkzODBjYjZkZjU3MTdiODEiLCJwYXRoIjoiQGNvbnRleHRbMV0ifSx7InZhbHVlIjoiNDE3YTFhNzY2YWM5MzhkOWVlY2FhNWRmMDdhOTBhODkyZTM3ZjA1ZmI3MzY5ZWRjNGQwYWNmNWZkMjE4YjhlMiIsInBhdGgiOiJuYW1lIn0seyJ2YWx1ZSI6ImE1Y2FkZDIzMmQ4ZjhlMGU4ZmFhODA3OTMyYWNkZjJhODc1OWY4MWEyMDNmNmEwMjdjMTJhOTBhNjg0MWE1NWYiLCJwYXRoIjoidHlwZVswXSJ9LHsidmFsdWUiOiI2NGE4NjBmMmQwOGZjNGIyMDhjZWE3NmU2MjBjM2YwMDRlYzhiMmRhYjdhZTc5ZTZkZmMxZjllYjU1MWMx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ENT_DID_OSCP = freezeObject({ "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], name: "Republic of Singapore Driving Licence", type: ["VerifiableCredential", "OpenAttestationCredential"], issuer: { - id: "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + id: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", type: "OpenAttestationIssuer", name: "Government Technology Agency of Singapore (GovTech)", - identityProof: { - identityProofType: "DNS-DID", - identifier: "example.openattestation.com", - }, + identityProof: { identityProofType: "DNS-DID", identifier: "example.openattestation.com" }, }, validFrom: "2021-03-08T12:00:00+08:00", credentialSubject: { @@ -261,28 +240,19 @@ export const WRAPPED_DOCUMENT_DID_OSCP = freezeObject({ }, ], }, - credentialStatus: { - id: "https://ocsp-sandbox.openattestation.com", - type: "OpenAttestationOcspResponder", - }, + credentialStatus: { id: "https://ocsp-sandbox.openattestation.com", type: "OpenAttestationOcspResponder" }, renderMethod: [ - { - id: "https://demo-renderer.opencerts.io", - type: "OpenAttestationEmbeddedRenderer", - templateName: "GOVTECH_DEMO", - }, + { id: "https://demo-renderer.opencerts.io", type: "OpenAttestationEmbeddedRenderer", templateName: "GOVTECH_DEMO" }, ], proof: { type: "OpenAttestationMerkleProofSignature2018", proofPurpose: "assertionMethod", - targetHash: "96a8e79b4c9b14dde88d9d6db26916215502ed09f458d0dc387c1ca73f3549f0", + targetHash: "0f60b3ef4b9b826de4753c4e68bb5ac9fdd2496549f901331a9d07464469366c", proofs: [], - merkleRoot: "96a8e79b4c9b14dde88d9d6db26916215502ed09f458d0dc387c1ca73f3549f0", + merkleRoot: "0f60b3ef4b9b826de4753c4e68bb5ac9fdd2496549f901331a9d07464469366c", salts: - "W3sidmFsdWUiOiI2ZGM0NzZkYmZlOTBiMjMxYzg5MjFiYmIyNTg3NTFkZGJlNzExMGFhOGM2Y2U3ODQwOGZiN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yIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udGVtcGxhdGVOYW1lIn1d", + privacy: { obfuscated: [] }, }, } satisfies V4WrappedDocument); @@ -290,18 +260,15 @@ export const BATCHED_WRAPPED_DOCUMENTS_DID = freezeObject([ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], name: "Republic of Singapore Driving Licence", type: ["VerifiableCredential", "OpenAttestationCredential"], issuer: { - id: "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + id: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", type: "OpenAttestationIssuer", name: "Government Technology Agency of Singapore (GovTech)", - identityProof: { - identityProofType: "DNS-DID", - identifier: "example.openattestation.com", - }, + identityProof: { identityProofType: "DNS-DID", identifier: "example.openattestation.com" }, }, validFrom: "2021-03-08T12:00:00+08:00", credentialSubject: { @@ -331,31 +298,26 @@ export const BATCHED_WRAPPED_DOCUMENTS_DID = freezeObject([ proof: { type: "OpenAttestationMerkleProofSignature2018", proofPurpose: "assertionMethod", - targetHash: "b449f7fb56ed2961749110037a1c40464548db71c386c925e58211505785e6ce", - proofs: ["9d71ec0572df22c133656a45bd644a7e6bb1f44cb4670473263d7f2b6f2d4b04"], - merkleRoot: "2e8038ad3403396fad4af3158f132c06d34fd31516b328b07001bc44f48fbeff", + targetHash: "d744b98a001ed34fa133762206e312b5105478f0cc25bf86c3a2a35866597264", + proofs: ["63edb5b6919143505c522fc96d31bac58ce7b4aa57d366d2df2026c5bb425a64"], + merkleRoot: "aad2420d57f9250aaa4933bc1dfe540575f3b233475c51f173c9299b4a97853b", salts: - "W3sidmFsdWUiOiIwMmFjZWRiYmRlZTcwMTQwOTA1MjgxN2ZmNDRlNzE3YzMyNTM0MDEyNjM4NzQyYTE1MzEyMjJkNWRhNTMyZDUyIiwicGF0aCI6IkBjb250ZXh0WzBdIn0sey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VmZmVjdGl2ZURhdGUifSx7InZhbHVlIjoiMzMzMGY1Yzc3MDE0NzE1NGI3NGE4ZWY5ZjAxZDE0YjEwZGU0NGMzY2FlZWY2M2Q2YjkyMDdlYjJiZjEyMGI2MiIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0uaWQifSx7InZhbHVlIjoiYzgwZDM4MTY4ZDcyMDkxNWM4YzJmZGFmNmYxMDE0MmRlZWJjOTM0MDUyZjNiNTgyMmE2YjM3ZWNlYTBmY2JmYSIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udHlwZSJ9LHsidmFsdWUiOiIyYjllOGFlZGJlNTkwMTRmMTQ4M2RjYjg2NDgwZDljM2M0ZmFlNDY1ODQyZmZlY2I5YjhiNjAwMTc5ZjE3MDQ0IiwicGF0aCI6InJlbmRlck1ldGhvZFswXS50ZW1wbGF0ZU5hbWUifV0=", + privacy: { obfuscated: [] }, }, }, { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], name: "Republic of Singapore Driving Licence", type: ["VerifiableCredential", "OpenAttestationCredential"], issuer: { - id: "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + id: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", type: "OpenAttestationIssuer", name: "Government Technology Agency of Singapore (GovTech)", - identityProof: { - identityProofType: "DNS-DID", - identifier: "example.openattestation.com", - }, + identityProof: { identityProofType: "DNS-DID", identifier: "example.openattestation.com" }, }, validFrom: "2021-03-08T12:00:00+08:00", credentialSubject: { @@ -380,33 +342,29 @@ export const BATCHED_WRAPPED_DOCUMENTS_DID = freezeObject([ proof: { type: "OpenAttestationMerkleProofSignature2018", proofPurpose: "assertionMethod", - targetHash: "9d71ec0572df22c133656a45bd644a7e6bb1f44cb4670473263d7f2b6f2d4b04", - proofs: ["b449f7fb56ed2961749110037a1c40464548db71c386c925e58211505785e6ce"], - merkleRoot: "2e8038ad3403396fad4af3158f132c06d34fd31516b328b07001bc44f48fbeff", + targetHash: "63edb5b6919143505c522fc96d31bac58ce7b4aa57d366d2df2026c5bb425a64", + proofs: ["d744b98a001ed34fa133762206e312b5105478f0cc25bf86c3a2a35866597264"], + merkleRoot: "aad2420d57f9250aaa4933bc1dfe540575f3b233475c51f173c9299b4a97853b", salts: - "W3sidmFsdWUiOiIxMmQ0OTZmZjhmN2E3Yzc5YzhhNzJlMDA4ZTc4NGFhNDRkNjkwMmUyNDFlMGM4YTA3NTNmMzY5MjM3YzEzODY5IiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6IjI5NjRjZDQxMzgzZjllYjRlN2I3NmY2NjAzMmI1OWFiNDIwOWFjMDY3YTQ2YjUxNGQ5ZDI2NDAyMWNmMmI1YWIiLCJwYXRoIjoiQGNvbnRleHRbMV0ifSx7InZhbHVlIjoiZDhmNzcwNjI4ZDNjZjMyY2FkNjc4NmRlODIxMjYwMjE5MmY5NDEyNzEwYTk4OWQ2NmVhOTliNDIwYmRhYmYxYSIsInBhdGgiOiJuYW1lIn0seyJ2YWx1ZSI6IjA2NGM5NzQyZWRhODgzMzUxNjAwNDIyYWY5YjU3MmU1NzkwMmFiMjMxNDExNzEyMTc1ZDYwYjA5ZWJmNjcyZTYiLCJwYXRoIjoidHlwZVswXSJ9LHsidmFsdWUiOiJhZDQ3NTM3M2Y0MGNmZjA1YTY0OGI2OGNkYjllMDA4Zjk1Zjg1Njg3YzNiM2I5ODJkMTNmNmI1ZmQxMGQ4ODU3IiwicGF0aCI6InR5cGVbMV0ifSx7InZhbHVlIjoiNzEzYjcyMWVhNDA5MGQzNDFhMTg2ZmVjYWM3Nzc0ZGJhYjExYjE5ZjYzOTg3ZjZmZDM1ZWZjODkwNjgyNDAzZSIsInBhdGgiOiJpc3N1ZXIuaWQifSx7InZhbHVlIjoiZGNkNjY4MTFmMGVlNGQxMTdjZGIzYWQ5NTFjNT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NyZWRlbnRpYWxTdWJqZWN0LmxpY2Vuc2VzWzBdLmNsYXNzIn0seyJ2YWx1ZSI6ImMxOWMzODk0NWVmODc5MzhhNjJmYjM4NGY3ODY3ODIzMzA2NjU5YTEwYzVjNGRhZGQxNjI5MzcyMDIyYWMxZjUiLCJwYXRoIjoiY3JlZGVudGlhbFN1YmplY3QubGljZW5zZXNbMF0uZGVzY3JpcHRpb24ifSx7InZhbHVlIjoiOGZlNWM5ZDQ5ZGY0ZmNlMGY5OWIyZmM2ODNkYWE3ZTE2MmRmMDZkMTYzODE4MGViOWVjYWEzMDY3Y2I2ODg1NyIsInBhdGgiOiJjcmVkZW50aWFsU3ViamVjdC5saWNlbnNlc1swXS5lZmZlY3RpdmVEYXRlIn0seyJ2YWx1ZSI6IjFmNWM5ZWJmZjQ5ZDQzMDc3M2FkMGJiMjQ2NTExNDg4MTM3NTk3N2I3Y2I2OThmNzkxNjg4ODQ0ZjRiMWFmNjkiLCJwYXRoIjoicmVuZGVyTWV0aG9kWzBdLmlkIn0seyJ2YWx1ZSI6IjQ2YzhjOGEyMWU0OGQzZjlhZGM3OTBmMDRjNDI0NzkwZTRmZmEwMWE5YjMwNTBlNWVlMGJlMWJhZmQzNTIxZDMiLCJwYXRoIjoicmVuZGVyTWV0aG9kWzBdLnR5cGUifSx7InZhbHVlIjoiY2U5OGFhMDI3NDg1N2RlNWY0YTRhYjI4ZmVjMDBmZjlmMTY2YzJiYWNjODMyYzkwNDlmNTliZTc3YTUwNmQ1YiIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udGVtcGxhdGVOYW1lIn1d", + privacy: { obfuscated: [] }, }, }, ] satisfies V4WrappedDocument[]); +/* Signed */ export const SIGNED_WRAPPED_DOCUMENT_DID = freezeObject({ "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], name: "Republic of Singapore Driving Licence", type: ["VerifiableCredential", "OpenAttestationCredential"], issuer: { - id: "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + id: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", type: "OpenAttestationIssuer", name: "Government Technology Agency of Singapore (GovTech)", - identityProof: { - identityProofType: "DNS-DID", - identifier: "example.openattestation.com", - }, + identityProof: { identityProofType: "DNS-DID", identifier: "example.openattestation.com" }, }, validFrom: "2021-03-08T12:00:00+08:00", credentialSubject: { @@ -427,44 +385,35 @@ export const SIGNED_WRAPPED_DOCUMENT_DID = freezeObject({ ], }, renderMethod: [ - { - id: "https://demo-renderer.opencerts.io", - type: "OpenAttestationEmbeddedRenderer", - templateName: "GOVTECH_DEMO", - }, + { id: "https://demo-renderer.opencerts.io", type: "OpenAttestationEmbeddedRenderer", templateName: "GOVTECH_DEMO" }, ], proof: { type: "OpenAttestationMerkleProofSignature2018", proofPurpose: "assertionMethod", - targetHash: "dd55a7d96d47e58350f2cfb03ebdf3f859684c9f97ba75eed55b1bdcc761c5aa", + targetHash: "0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc", proofs: [], - merkleRoot: "dd55a7d96d47e58350f2cfb03ebdf3f859684c9f97ba75eed55b1bdcc761c5aa", + merkleRoot: "0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc", salts: - "W3sidmFsdWUiOiJjYTE3MjI0YTg3NTk0NzNhNGUyZjM2YTM3NjljODU0OGM5M2RjZTQ3NmI0MjEwMTNmYTEzYTA2OTUxYTI1YzhjIiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6IjMyYzk3MDRhMmIxMWU1MzhjYTBlZWJhYWMzNmU0ZmRlYTU4ZGY0MDI4ZGVmZmJjOTkzODBjYjZkZjU3MTdiODEiLCJwYXRoIjoiQGNvbnRleHRbMV0ifSx7InZhbHVlIjoiNDE3YTFhNzY2YWM5MzhkOWVlY2FhNWRmMDdhOTBhODkyZT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g4MjRkYjdjY2U3ZTY5MGQ3NjgyMGM1N2M1OWNlZGI5ZDZiNGVjMDlhMDY0ZDFmYTJhMmI0OGZhYzJlN2FhZCIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udHlwZSJ9LHsidmFsdWUiOiJjMzY1M2FkNzg4MzhkNDhmM2Q1ZGNkNmE2OGRmNGU0MmMxMTM1ZmY4MzhiYzI5MTY4NDQzMDdjZDljZmM4ZWY4IiwicGF0aCI6InJlbmRlck1ldGhvZFswXS50ZW1wbGF0ZU5hbWUifV0=", + privacy: { obfuscated: [] }, + key: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90#controller", signature: - "0xa3ac9f73a7314c0aad47bad875921f5c88d2af9440d6c309fc2f93dbf43bd8235e84b744cb1ff1c09c214b559ce3bd6eb148c2f68c677cb8408d96e9b5411dfb1c", + "0x949b76d8df493a56c1cf21303a74d6a54904461c1c10f4619b43ad7d339c64467c61eb4c0873f279cd21d5bdd044d3af5318f14d63f57acbd4cde30f271f3eb71c", }, } satisfies V4SignedWrappedDocument); export const SIGNED_WRAPPED_DOCUMENT_DID_OSCP = freezeObject({ "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], name: "Republic of Singapore Driving Licence", type: ["VerifiableCredential", "OpenAttestationCredential"], issuer: { - id: "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + id: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", type: "OpenAttestationIssuer", name: "Government Technology Agency of Singapore (GovTech)", - identityProof: { - identityProofType: "DNS-DID", - identifier: "example.openattestation.com", - }, + identityProof: { identityProofType: "DNS-DID", identifier: "example.openattestation.com" }, }, validFrom: "2021-03-08T12:00:00+08:00", credentialSubject: { @@ -484,49 +433,37 @@ export const SIGNED_WRAPPED_DOCUMENT_DID_OSCP = freezeObject({ }, ], }, - credentialStatus: { - id: "https://ocsp-sandbox.openattestation.com", - type: "OpenAttestationOcspResponder", - }, + credentialStatus: { id: "https://ocsp-sandbox.openattestation.com", type: "OpenAttestationOcspResponder" }, renderMethod: [ - { - id: "https://demo-renderer.opencerts.io", - type: "OpenAttestationEmbeddedRenderer", - templateName: "GOVTECH_DEMO", - }, + { id: "https://demo-renderer.opencerts.io", type: "OpenAttestationEmbeddedRenderer", templateName: "GOVTECH_DEMO" }, ], proof: { type: "OpenAttestationMerkleProofSignature2018", proofPurpose: "assertionMethod", - targetHash: "db256b67a181b7c5a1b312b64901a0c332d72a5f2f631473ba2c28a725c3ab21", + targetHash: "0f60b3ef4b9b826de4753c4e68bb5ac9fdd2496549f901331a9d07464469366c", proofs: [], - merkleRoot: "db256b67a181b7c5a1b312b64901a0c332d72a5f2f631473ba2c28a725c3ab21", + merkleRoot: "0f60b3ef4b9b826de4753c4e68bb5ac9fdd2496549f901331a9d07464469366c", salts: - "W3sidmFsdWUiOiI2ZTJhN2E4MjM1NzMzOTM2MGJkYzE0OTYzMTUwNzAyNTg2N2QyOWYxM2YxYjMwZmFmMDQ4Y2VmM2QyMzc2YWM2IiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6ImRkZGI5MDVmNmIzZWQ0OGVlMzkwZDljYjQ4MTdkMjk4OWMyY2VmMzQyM2UxNGE4YjQzMDMzYmFhNDM0NmY2ZGUiLCJwYXRoIjoiQGNvbnRleHRbMV0ifSx7InZhbHVlIjoiMWNiZjBjYjY2ODZkNWIyMzJkM2QwZDZiNTk1MTA0NDc0OGY4NmNlMjJkZDE1OGIxNzUwZTc2YWUyYzAzZDkwNyIsInBhdGgiOiJuYW1lIn0seyJ2YWx1ZSI6ImJlZjJmZjNhM2MxNDEzMDYxMDVkNGMzMTJlZmZkN2M2OTUxN2U3ZjM5YTBjYTQ3ZTZkZTk4Y2M1ZTFkMzllY2UiLCJwYXRoIjoidHlwZVswXSJ9LHsidmFsdWUiOiI1N2M5YWI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jODcxYjY3NGQwNzJmN2U4ODdmNWZiYjViNjE5NiIsInBhdGgiOiJjcmVkZW50aWFsU3RhdHVzLmlkIn0seyJ2YWx1ZSI6ImYzNTBjOGYwNjlkNmIyM2M3NmE0MjQ3ZTIyOWRjOGM1MDVjMTFhZTNkNjFmYjE3ZDJlNDIxZWU1NzY4OGQ4YTMiLCJwYXRoIjoiY3JlZGVudGlhbFN0YXR1cy50eXBlIn0seyJ2YWx1ZSI6IjJkMTUzYzc1OGNiMTY1YjM1MTFhNjA4MjBkMzNiY2ZmYTViNmE3OWFiNWI5ZDNlMTA0NGZiNTk0NjNhNzM3MDUiLCJwYXRoIjoicmVuZGVyTWV0aG9kWzBdLmlkIn0seyJ2YWx1ZSI6ImJmOGJlY2M2Yjg1MDJkODBiNTg4ZmRmZmJhY2JmMmU1NTIzNjE1MzBjYmUxMGI4NzM5OTQ0NWYwZmZkYTkwOTAiLCJwYXRoIjoicmVuZGVyTWV0aG9kWzBdLnR5cGUifSx7InZhbHVlIjoiOTRmYmI5NWE1ZmNhZjU0YTcwYTAxODZiNjg1OWM5YmY5MzYzNWU0OTQ0N2U3ZmMxYWIyY2RmNTM5ZDllZjNiNyIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udGVtcGxhdGVOYW1lIn1d", + privacy: { obfuscated: [] }, + key: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90#controller", signature: - "0x1d889961f3b28e3433ee56e1d3226d1b069d6696f2cac99d1f1504f31c1257b216e9e42bfa8c434eaeb80bc38b0af269cab3ffd03d4410539589d9173bc4ba881c", + "0xa9f89c00bac009044f02ca0e0c605389a927e4b011fa7c0f9a3bfd987598d8a442cd51218a31e387737ad42adeb9b9405c545a4d70ad75d06f7a7701e87440631c", }, } satisfies V4SignedWrappedDocument); export const SIGNED_WRAPPED_DOCUMENT_DID_OBFUSCATED = freezeObject({ "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], name: "Republic of Singapore Driving Licence", type: ["VerifiableCredential", "OpenAttestationCredential"], issuer: { - id: "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + id: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", type: "OpenAttestationIssuer", name: "Government Technology Agency of Singapore (GovTech)", - identityProof: { - identityProofType: "DNS-DID", - identifier: "example.openattestation.com", - }, + identityProof: { identityProofType: "DNS-DID", identifier: "example.openattestation.com" }, }, validFrom: "2021-03-08T12:00:00+08:00", credentialSubject: { @@ -534,10 +471,7 @@ export const SIGNED_WRAPPED_DOCUMENT_DID_OBFUSCATED = freezeObject({ type: ["DriversLicense"], name: "John Doe", licenses: [ - { - class: "3", - effectiveDate: "2013-05-16T00:00:00+08:00", - }, + { class: "3", effectiveDate: "2013-05-16T00:00:00+08:00" }, { class: "3A", description: "Motor cars with unladen weight <= 3000kg", @@ -548,24 +482,18 @@ export const SIGNED_WRAPPED_DOCUMENT_DID_OBFUSCATED = freezeObject({ proof: { type: "OpenAttestationMerkleProofSignature2018", proofPurpose: "assertionMethod", - targetHash: "4b178a75faf7d7ecff1341ee1e0907810df23c88a217b814eb12c2a4454631ec", + targetHash: "0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc", proofs: [], - merkleRoot: "4b178a75faf7d7ecff1341ee1e0907810df23c88a217b814eb12c2a4454631ec", + merkleRoot: "0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc", salts: - "W3sidmFsdWUiOiIyMzkyMzE4OGQ0MzIwYzlkMGEyZGY0MjU2ZTQ2ZTkzZTgzM2FlMWQ4YTU5YzFlYmQ5MTBkOTUxNDc1MjNiMjhmIiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6IjZjMGEzZTZmZDI0NTEyZjg5MWE4ZDY0N2RlZGU1NmIwYjBlMTNkZDcxOTVmMDRiM2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ZjNkNWRjZDZhNjhkZjRlNDJjMTEzNWZmODM4YmMyOTE2ODQ0MzA3Y2Q5Y2ZjOGVmOCIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udGVtcGxhdGVOYW1lIn1d", + privacy: { obfuscated: ["7f2ecdae29b49b3a971d5acdfbbf9225a193e735ce41b89b0d84cca801794fc9"] }, + key: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90#controller", signature: - "0x1744f9615fa8d725cf4ae14f2654762dd8e0ee88a9b6d8af13cec688019a7a501e9bae10fa407fdbe359977f8124a26a0061a0ef0ea212c42fd1d91e0998928d1c", + "0x949b76d8df493a56c1cf21303a74d6a54904461c1c10f4619b43ad7d339c64467c61eb4c0873f279cd21d5bdd044d3af5318f14d63f57acbd4cde30f271f3eb71c", }, renderMethod: [ - { - id: "https://demo-renderer.opencerts.io", - type: "OpenAttestationEmbeddedRenderer", - templateName: "GOVTECH_DEMO", - }, + { id: "https://demo-renderer.opencerts.io", type: "OpenAttestationEmbeddedRenderer", templateName: "GOVTECH_DEMO" }, ], } satisfies V4SignedWrappedDocument); @@ -573,18 +501,15 @@ export const BATCHED_SIGNED_WRAPPED_DOCUMENTS_DID = freezeObject([ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], name: "Republic of Singapore Driving Licence", type: ["VerifiableCredential", "OpenAttestationCredential"], issuer: { - id: "did:ethr:did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + id: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", type: "OpenAttestationIssuer", name: "Government Technology Agency of Singapore (GovTech)", - identityProof: { - identityProofType: "DNS-DID", - identifier: "example.openattestation.com", - }, + identityProof: { identityProofType: "DNS-DID", identifier: "example.openattestation.com" }, }, validFrom: "2021-03-08T12:00:00+08:00", credentialSubject: { @@ -614,34 +539,29 @@ export const BATCHED_SIGNED_WRAPPED_DOCUMENTS_DID = freezeObject([ proof: { type: "OpenAttestationMerkleProofSignature2018", proofPurpose: "assertionMethod", - targetHash: "08969c7baf46807ee65e495b2a93c0e27dfdc77085562ce9ab1249a7fb261681", - proofs: ["ce284d21e98ac301c0e963ea6d020570091e05591dc2b787a698512e82b39001"], - merkleRoot: "6fa0bdfa20b114c3e9e92fb511be62f416533a35df99a440ecc28ff4a3f601d2", + targetHash: "d744b98a001ed34fa133762206e312b5105478f0cc25bf86c3a2a35866597264", + proofs: ["63edb5b6919143505c522fc96d31bac58ce7b4aa57d366d2df2026c5bb425a64"], + merkleRoot: "aad2420d57f9250aaa4933bc1dfe540575f3b233475c51f173c9299b4a97853b", salts: - "W3sidmFsdWUiOiIwMzgyZWU0MjFlNTgyMzJlMGJjNTI0MDY1NjhhZTdiNWZhNDhlOWRjYzczZmVkM2VhOTZkOTAzNGQ4ZWZkNDlhIiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6ImViMmI1ZmIwODhlZDk5YzY0NzJmYmQ4MjMyNjVhYjlkMzZhNmQ0MDFiMGEyNmM5N2Q3Zjc0MDkwYWJiYTE4OGEiLCJwYXRoIjoiQGNvbnRleHRbMV0ifSx7InZhbHVlIjoiYWNmNGFhMGJmZDEyMTRmZGEwZDAzNzczNmNhMDFiMzhkOTBlZDA4MzQ5ODUwMWY5NDlmOTgyNjg1NmE2MTM3OSIsInBhdGgiOiJuYW1lIn0seyJ2YWx1ZSI6IjM5Yzc1MjFmNDdlNTJlNWZlOGI2NmEyYjhjZmEzYTQwNDM1ZjQ2Y2NiOWY3MGQxYWY4MThkNmNkNzk1MzQ4MzQiLCJwYXRoIjoidHlwZVswXSJ9LHsidmFsdWUiOiJiNWY3MmI3N2M1NjU3YjZiOTMyN2QyMGYwZTUwYzQxMGVmNzRlNDMzYTM0NTRlOTRmMTEzOTZmMTIwYzJjMjc5IiwicGF0aCI6InR5cGVbMV0ifSx7InZhbHVlIjoiOTU1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C51a4885E5B7D3A1B861E54405f90#controller", signature: - "0x153aeb0f59bef692f1b5bec2f20fc08f72863b0a670e87ac7c68460d311fc7a574189bb92056a15f1ef283c1784303528364d2124a006de3dba586f6162df5481b", + "0xc65309e0adf50ba6b91607c6913e15cd629412cf8180255e52c160cdf59bcfa0609f6eed71c379e3062b9fea39a5590dfc54323a352933c6ef9b694b63e2d74f1c", }, }, { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json", + "https://schemata.openattestation.com/com/openattestation/4.0/context.json", ], name: "Republic of Singapore Driving Licence", type: ["VerifiableCredential", "OpenAttestationCredential"], issuer: { - id: "did:ethr:did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + id: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", type: "OpenAttestationIssuer", name: "Government Technology Agency of Singapore (GovTech)", - identityProof: { - identityProofType: "DNS-DID", - identifier: "example.openattestation.com", - }, + identityProof: { identityProofType: "DNS-DID", identifier: "example.openattestation.com" }, }, validFrom: "2021-03-08T12:00:00+08:00", credentialSubject: { @@ -666,17 +586,15 @@ export const BATCHED_SIGNED_WRAPPED_DOCUMENTS_DID = freezeObject([ proof: { type: "OpenAttestationMerkleProofSignature2018", proofPurpose: "assertionMethod", - targetHash: "ce284d21e98ac301c0e963ea6d020570091e05591dc2b787a698512e82b39001", - proofs: ["08969c7baf46807ee65e495b2a93c0e27dfdc77085562ce9ab1249a7fb261681"], - merkleRoot: "6fa0bdfa20b114c3e9e92fb511be62f416533a35df99a440ecc28ff4a3f601d2", + targetHash: "63edb5b6919143505c522fc96d31bac58ce7b4aa57d366d2df2026c5bb425a64", + proofs: ["d744b98a001ed34fa133762206e312b5105478f0cc25bf86c3a2a35866597264"], + merkleRoot: "aad2420d57f9250aaa4933bc1dfe540575f3b233475c51f173c9299b4a97853b", salts: - "W3sidmFsdWUiOiI1ZGU5NjM1OGRlZGVjODIwMWFhYTJjZjRk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joiOGZlNWM5ZDQ5ZGY0ZmNlMGY5OWIyZmM2ODNkYWE3ZTE2MmRmMDZkMTYzODE4MGViOWVjYWEzMDY3Y2I2ODg1NyIsInBhdGgiOiJjcmVkZW50aWFsU3ViamVjdC5saWNlbnNlc1swXS5lZmZlY3RpdmVEYXRlIn0seyJ2YWx1ZSI6IjFmNWM5ZWJmZjQ5ZDQzMDc3M2FkMGJiMjQ2NTExNDg4MTM3NTk3N2I3Y2I2OThmNzkxNjg4ODQ0ZjRiMWFmNjkiLCJwYXRoIjoicmVuZGVyTWV0aG9kWzBdLmlkIn0seyJ2YWx1ZSI6IjQ2YzhjOGEyMWU0OGQzZjlhZGM3OTBmMDRjNDI0NzkwZTRmZmEwMWE5YjMwNTBlNWVlMGJlMWJhZmQzNTIxZDMiLCJwYXRoIjoicmVuZGVyTWV0aG9kWzBdLnR5cGUifSx7InZhbHVlIjoiY2U5OGFhMDI3NDg1N2RlNWY0YTRhYjI4ZmVjMDBmZjlmMTY2YzJiYWNjODMyYzkwNDlmNTliZTc3YTUwNmQ1YiIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udGVtcGxhdGVOYW1lIn1d", + privacy: { obfuscated: [] }, + key: "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90#controller", signature: - "0x153aeb0f59bef692f1b5bec2f20fc08f72863b0a670e87ac7c68460d311fc7a574189bb92056a15f1ef283c1784303528364d2124a006de3dba586f6162df5481b", + "0xc65309e0adf50ba6b91607c6913e15cd629412cf8180255e52c160cdf59bcfa0609f6eed71c379e3062b9fea39a5590dfc54323a352933c6ef9b694b63e2d74f1c", }, }, ] satisfies V4SignedWrappedDocument[]); diff --git a/src/4.0/jsonSchemas/__generated__/v4-document.schema.json b/src/4.0/jsonSchemas/__generated__/v4-document.schema.json index e927c969..a112453a 100644 --- a/src/4.0/jsonSchemas/__generated__/v4-document.schema.json +++ b/src/4.0/jsonSchemas/__generated__/v4-document.schema.json @@ -14,7 +14,7 @@ }, { "type": "string", - "const": "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "const": "https://schemata.openattestation.com/com/openattestation/4.0/context.json" } ], "additionalItems": { diff --git a/src/4.0/jsonSchemas/__generated__/v4-signed-wrapped-document.schema.json b/src/4.0/jsonSchemas/__generated__/v4-signed-wrapped-document.schema.json index 4cced7a2..720aceba 100644 --- a/src/4.0/jsonSchemas/__generated__/v4-signed-wrapped-document.schema.json +++ b/src/4.0/jsonSchemas/__generated__/v4-signed-wrapped-document.schema.json @@ -14,7 +14,7 @@ }, { "type": "string", - "const": "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "const": "https://schemata.openattestation.com/com/openattestation/4.0/context.json" } ], "additionalItems": { diff --git a/src/4.0/jsonSchemas/__generated__/v4-wrapped-document.schema.json b/src/4.0/jsonSchemas/__generated__/v4-wrapped-document.schema.json index 7eb3e61b..4593f440 100644 --- a/src/4.0/jsonSchemas/__generated__/v4-wrapped-document.schema.json +++ b/src/4.0/jsonSchemas/__generated__/v4-wrapped-document.schema.json @@ -14,7 +14,7 @@ }, { "type": "string", - "const": "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "const": "https://schemata.openattestation.com/com/openattestation/4.0/context.json" } ], "additionalItems": { diff --git a/src/4.0/types.ts b/src/4.0/types.ts index 5fc3ed2b..94b09e11 100644 --- a/src/4.0/types.ts +++ b/src/4.0/types.ts @@ -13,7 +13,7 @@ const _W3cVerifiableCredential = z.object({ z.record(z.any()), z.string(), // If array: First item must be baseContext, while remaining items can be string or object - z.tuple([z.literal(ContextUrl.v2_vc)]).rest(z.union([z.string(), z.record(z.any())])), + z.tuple([z.literal(ContextUrl.w3c_vc_v2)]).rest(z.union([z.string(), z.record(z.any())])), ]), // [Optional] @@ -203,13 +203,13 @@ export const V4OpenAttestationDocument = _W3cVerifiableCredential "@context": z // Must be an array that starts with [baseContext, v4Context, ...] - .tuple([z.literal(ContextUrl.v2_vc), z.literal(ContextUrl.v4_alpha)]) + .tuple([z.literal(ContextUrl.w3c_vc_v2), z.literal(ContextUrl.oa_vc_v4)]) // Remaining items can be string or object .rest(z.union([z.string(), z.record(z.any())])), type: z // Must be an array that starts with [VerifiableCredential, OpenAttestationCredential, ...] - .tuple([z.literal(ContextType.BaseContext), z.literal(ContextType.V4AlphaContext)]) + .tuple([z.literal(ContextType.BaseContext), z.literal(ContextType.OAV4Context)]) // Remaining items can be string .rest(z.string()), diff --git a/src/4.0/wrap.ts b/src/4.0/wrap.ts index 407b1627..ae1a0709 100644 --- a/src/4.0/wrap.ts +++ b/src/4.0/wrap.ts @@ -36,7 +36,7 @@ export const wrapDocument = async ( /* 3. Context validation */ // Ensure that required contexts are present and in the correct order // type: [Base, OA, ...] - const REQUIRED_CONTEXTS = [ContextUrl.v2_vc, ContextUrl.v4_alpha] as const; + const REQUIRED_CONTEXTS = [ContextUrl.w3c_vc_v2, ContextUrl.oa_vc_v4] as const; const contexts = new Set(REQUIRED_CONTEXTS); if (typeof validatedRawDocument["@context"] === "string") { contexts.add(validatedRawDocument["@context"]); @@ -49,8 +49,8 @@ export const wrapDocument = async ( /* 4. Type validation */ // Ensure that required types are present and in the correct order // type: ["VerifiableCredential", "OpenAttestationCredential", ...] - const REQUIRED_TYPES = [ContextType.BaseContext, ContextType.V4AlphaContext] as const; - const types = new Set([ContextType.BaseContext, ContextType.V4AlphaContext]); + const REQUIRED_TYPES = [ContextType.BaseContext, ContextType.OAV4Context] as const; + const types = new Set([ContextType.BaseContext, ContextType.OAV4Context]); if (typeof validatedRawDocument["type"] === "string") { types.add(validatedRawDocument["type"]); } else if (isStringArray(validatedRawDocument["type"])) { diff --git a/src/shared/utils/utils.ts b/src/shared/utils/utils.ts index 145b9ff5..25a5d8c9 100644 --- a/src/shared/utils/utils.ts +++ b/src/shared/utils/utils.ts @@ -208,7 +208,7 @@ export const getVersion = (document: unknown): Version => { return "3.0"; } } else if ("@context" in document && Array.isArray(document["@context"])) { - if (document["@context"].includes(ContextUrl.v4_alpha)) { + if (document["@context"].includes(ContextUrl.oa_vc_v4)) { return "4.0"; } } diff --git a/src/shared/validate/validate.ts b/src/shared/validate/validate.ts index badb007f..ace6d0d4 100644 --- a/src/shared/validate/validate.ts +++ b/src/shared/validate/validate.ts @@ -16,8 +16,8 @@ export const validateSchema = (document: any, validator: ValidateFunction, kind? // FIXME: Unable to use isWrappedV4OpenAttestationDocument() type guard here because it also calls validateSchema (endless recursive call) // Need a better way to determine whether a document needs to be unwrapped first const valid = validator( - (Array.isArray(document["@context"]) && document["@context"].includes(ContextUrl.v2_vc)) || - (Array.isArray(document["@context"]) && document["@context"].includes(ContextUrl.v4_alpha)) || + (Array.isArray(document["@context"]) && document["@context"].includes(ContextUrl.w3c_vc_v2)) || + (Array.isArray(document["@context"]) && document["@context"].includes(ContextUrl.oa_vc_v4)) || document.version === SchemaId.v3 || kind === "raw" ? document diff --git a/test/fixtures/v4/__generated__/batched-raw-documents-did.json b/test/fixtures/v4/__generated__/batched-raw-documents-did.json index 965d391e..28c73f80 100644 --- a/test/fixtures/v4/__generated__/batched-raw-documents-did.json +++ b/test/fixtures/v4/__generated__/batched-raw-documents-did.json @@ -2,7 +2,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "name": "Republic of Singapore Driving Licence", "type": [ @@ -10,7 +10,7 @@ "OpenAttestationCredential" ], "issuer": { - "id": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { @@ -49,7 +49,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "name": "Republic of Singapore Driving Licence", "type": [ @@ -57,7 +57,7 @@ "OpenAttestationCredential" ], "issuer": { - "id": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { diff --git a/test/fixtures/v4/__generated__/batched-signed-wrapped-documents-did.json b/test/fixtures/v4/__generated__/batched-signed-wrapped-documents-did.json index 658d22d9..ee228825 100644 --- a/test/fixtures/v4/__generated__/batched-signed-wrapped-documents-did.json +++ b/test/fixtures/v4/__generated__/batched-signed-wrapped-documents-did.json @@ -2,7 +2,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "name": "Republic of Singapore Driving Licence", "type": [ @@ -10,7 +10,7 @@ "OpenAttestationCredential" ], "issuer": { - "id": "did:ethr:did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { @@ -48,23 +48,23 @@ "proof": { "type": "OpenAttestationMerkleProofSignature2018", "proofPurpose": "assertionMethod", - "targetHash": "08969c7baf46807ee65e495b2a93c0e27dfdc77085562ce9ab1249a7fb261681", + "targetHash": "d744b98a001ed34fa133762206e312b5105478f0cc25bf86c3a2a35866597264", "proofs": [ - "ce284d21e98ac301c0e963ea6d020570091e05591dc2b787a698512e82b39001" + "63edb5b6919143505c522fc96d31bac58ce7b4aa57d366d2df2026c5bb425a64" ], - "merkleRoot": "6fa0bdfa20b114c3e9e92fb511be62f416533a35df99a440ecc28ff4a3f601d2", - "salts": "W3sidmFsdWUiOiIwMzgyZWU0MjFlNTgyMzJlMGJjNTI0MDY1NjhhZTdiNWZhNDhlOWRjYzczZmVkM2VhOTZkOTAzNGQ4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I5ODJiYmY2IiwicGF0aCI6ImNyZWRlbnRpYWxTdWJqZWN0LmxpY2Vuc2VzWzFdLmVmZmVjdGl2ZURhdGUifSx7InZhbHVlIjoiMzMzMGY1Yzc3MDE0NzE1NGI3NGE4ZWY5ZjAxZDE0YjEwZGU0NGMzY2FlZWY2M2Q2YjkyMDdlYjJiZjEyMGI2MiIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0uaWQifSx7InZhbHVlIjoiYzgwZDM4MTY4ZDcyMDkxNWM4YzJmZGFmNmYxMDE0MmRlZWJjOTM0MDUyZjNiNTgyMmE2YjM3ZWNlYTBmY2JmYSIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udHlwZSJ9LHsidmFsdWUiOiIyYjllOGFlZGJlNTkwMTRmMTQ4M2RjYjg2NDgwZDljM2M0ZmFlNDY1ODQyZmZlY2I5YjhiNjAwMTc5ZjE3MDQ0IiwicGF0aCI6InJlbmRlck1ldGhvZFswXS50ZW1wbGF0ZU5hbWUifV0=", "privacy": { "obfuscated": [] }, - "key": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89#controller", - "signature": "0x153aeb0f59bef692f1b5bec2f20fc08f72863b0a670e87ac7c68460d311fc7a574189bb92056a15f1ef283c1784303528364d2124a006de3dba586f6162df5481b" + "key": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90#controller", + "signature": "0xc65309e0adf50ba6b91607c6913e15cd629412cf8180255e52c160cdf59bcfa0609f6eed71c379e3062b9fea39a5590dfc54323a352933c6ef9b694b63e2d74f1c" } }, { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "name": "Republic of Singapore Driving Licence", "type": [ @@ -72,7 +72,7 @@ "OpenAttestationCredential" ], "issuer": { - "id": "did:ethr:did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { @@ -105,17 +105,17 @@ "proof": { "type": "OpenAttestationMerkleProofSignature2018", "proofPurpose": "assertionMethod", - "targetHash": "ce284d21e98ac301c0e963ea6d020570091e05591dc2b787a698512e82b39001", + "targetHash": "63edb5b6919143505c522fc96d31bac58ce7b4aa57d366d2df2026c5bb425a64", "proofs": [ - "08969c7baf46807ee65e495b2a93c0e27dfdc77085562ce9ab1249a7fb261681" + "d744b98a001ed34fa133762206e312b5105478f0cc25bf86c3a2a35866597264" ], - "merkleRoot": "6fa0bdfa20b114c3e9e92fb511be62f416533a35df99a440ecc28ff4a3f601d2", - "salts": "W3sidmFsdWUiOiI1ZGU5NjM1OGRlZGVjODIwMWFhYTJjZjRkOGI4ZjYyNzA0NDc2ZTRkYzdiZDQ5OGEwOTc5MGI1MDc1NzY0NWQyIiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6ImI2YzkyMDc4YjM5OTU3NmM1YmNlZjVhOTBjYmMwMzQxNjEzN2UyZTBjODAzM2JhM2FiZDNkYTU3NjEzZGYwZGMiLCJwYXRoIjoiQGNvbnRleHRbMV0ifSx7InZhbHVlIjoiNjM0Nzk4NGNiN2Q3MDA4NTczNjJlYmFjZTgwMDEzZjQwODA0NzNiMDkyYjAyMzQ3ZDY1MGUwMGM4MGRjMTQ5ZiIsInBhdGgiOiJuYW1lIn0seyJ2YWx1ZSI6ImVkNGJiMDQwMWQ0NDY0NTljNjQ1YWUyMjI2MGQ5M2YxYzllOTkwYzg3ZGZhYzM2YjI2N2QwMTVlZTM4MDRlMWYiLCJwYXRoIjoidHlwZVswXSJ9LHsidmFsdWUiOiI1NTU4OThjZmE3ZWUxZThjY2VmOGIxYWMyYjBjY2RlNWJlZmFkMDE2NTJjOTY3NmVlM2VlNGExNTNmODlhM2JhIiwicGF0aCI6InR5cGVbMV0ifSx7InZhbHVlI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acy": { "obfuscated": [] }, - "key": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89#controller", - "signature": "0x153aeb0f59bef692f1b5bec2f20fc08f72863b0a670e87ac7c68460d311fc7a574189bb92056a15f1ef283c1784303528364d2124a006de3dba586f6162df5481b" + "key": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90#controller", + "signature": "0xc65309e0adf50ba6b91607c6913e15cd629412cf8180255e52c160cdf59bcfa0609f6eed71c379e3062b9fea39a5590dfc54323a352933c6ef9b694b63e2d74f1c" } } ] \ No newline at end of file diff --git a/test/fixtures/v4/__generated__/batched-wrapped-documents-did.json b/test/fixtures/v4/__generated__/batched-wrapped-documents-did.json index 49d074f8..79c00a2a 100644 --- a/test/fixtures/v4/__generated__/batched-wrapped-documents-did.json +++ b/test/fixtures/v4/__generated__/batched-wrapped-documents-did.json @@ -2,7 +2,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "name": "Republic of Singapore Driving Licence", "type": [ @@ -10,7 +10,7 @@ "OpenAttestationCredential" ], "issuer": { - "id": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { @@ -48,12 +48,12 @@ "proof": { "type": "OpenAttestationMerkleProofSignature2018", "proofPurpose": "assertionMethod", - "targetHash": "b449f7fb56ed2961749110037a1c40464548db71c386c925e58211505785e6ce", + "targetHash": "d744b98a001ed34fa133762206e312b5105478f0cc25bf86c3a2a35866597264", "proofs": [ - "9d71ec0572df22c133656a45bd644a7e6bb1f44cb4670473263d7f2b6f2d4b04" + "63edb5b6919143505c522fc96d31bac58ce7b4aa57d366d2df2026c5bb425a64" ], - "merkleRoot": "2e8038ad3403396fad4af3158f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amVjdC5saWNlbnNlc1sxXS5kZXNjcmlwdGlvbiJ9LHsidmFsdWUiOiIzZDM2MTFmYTQ2NDExNGI5ZGEzMDQ4MzQ3Y2Y1MDBlNmI1NmFiZjdhOTY2MGY3NTg4ZWFlNzVkOTI5ODJiYmY2IiwicGF0aCI6ImNyZWRlbnRpYWxTdWJqZWN0LmxpY2Vuc2VzWzFdLmVmZmVjdGl2ZURhdGUifSx7InZhbHVlIjoiMzMzMGY1Yzc3MDE0NzE1NGI3NGE4ZWY5ZjAxZDE0YjEwZGU0NGMzY2FlZWY2M2Q2YjkyMDdlYjJiZjEyMGI2MiIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0uaWQifSx7InZhbHVlIjoiYzgwZDM4MTY4ZDcyMDkxNWM4YzJmZGFmNmYxMDE0MmRlZWJjOTM0MDUyZjNiNTgyMmE2YjM3ZWNlYTBmY2JmYSIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udHlwZSJ9LHsidmFsdWUiOiIyYjllOGFlZGJlNTkwMTRmMTQ4M2RjYjg2NDgwZDljM2M0ZmFlNDY1ODQyZmZlY2I5YjhiNjAwMTc5ZjE3MDQ0IiwicGF0aCI6InJlbmRlck1ldGhvZFswXS50ZW1wbGF0ZU5hbWUifV0=", "privacy": { "obfuscated": [] } @@ -62,7 +62,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "name": "Republic of Singapore Driving Licence", "type": [ @@ -70,7 +70,7 @@ "OpenAttestationCredential" ], "issuer": { - "id": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { @@ -103,12 +103,12 @@ "proof": { "type": "OpenAttestationMerkleProofSignature2018", "proofPurpose": "assertionMethod", - "targetHash": "9d71ec0572df22c133656a45bd644a7e6bb1f44cb4670473263d7f2b6f2d4b04", + "targetHash": "63edb5b6919143505c522fc96d31bac58ce7b4aa57d366d2df2026c5bb425a64", "proofs": [ - "b449f7fb56ed2961749110037a1c40464548db71c386c925e58211505785e6ce" + "d744b98a001ed34fa133762206e312b5105478f0cc25bf86c3a2a35866597264" ], - "merkleRoot": "2e8038ad3403396fad4af3158f132c06d34fd31516b328b07001bc44f48fbeff", - "salts": "W3sidmFsdWUiOiIxMmQ0OTZmZjhmN2E3Yzc5YzhhNzJlMDA4ZTc4NGFhNDRkNjkwMmUyNDFlMGM4YTA3NTNmMzY5MjM3YzEzODY5IiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6IjI5NjRjZDQxMzgzZjllYjRlN2I3NmY2NjAzMmI1OWFiNDIwOWFjMDY3YTQ2YjUxNGQ5ZDI2NDAyMWNmMmI1YWIiLCJwYXRoIjoiQGNvbnRleHRbMV0ifSx7InZhbHVlIjoiZDhmNzcwNjI4ZDNjZjMyY2FkNjc4NmRlODIxMjYwMjE5MmY5NDEyNzEwYTk4OWQ2NmVhOTliNDIwYmRhYmYxYSIsInBhdGgiOiJuYW1lIn0seyJ2YWx1ZSI6IjA2NGM5NzQyZWRhODgzMzUxNjAwNDIyYWY5YjU3MmU1NzkwMmFiMjMxNDExNzEyMTc1ZDYwYjA5ZWJmNjcyZTYiLCJwYXRoIjoidHlwZVswXSJ9LHsidmFsdWUiOiJhZDQ3NTM3M2Y0MGNmZjA1YTY0OGI2OGNkYjllMDA4Zjk1Zjg1Njg3YzNiM2I5ODJkMTNmNmI1ZmQxMGQ4ODU3IiwicGF0aCI6InR5cGVbMV0ifSx7InZhbHVlIjoiNzEzYjcyMWVhNDA5MGQzNDFhMTg2ZmVjYWM3Nzc0ZGJhYjExYjE5ZjYzOTg3ZjZmZDM1ZWZjODkwNjgyNDAzZSIsInBhdGgiOiJpc3N1ZXIuaWQifSx7InZhbHVlI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E5OWJiYzYyYmNmOTVhNjcxNDFhM2EwYWU3MTRjYzU5NGI3MDFmYmQ2OWZlY2NhNTljIiwicGF0aCI6ImNyZWRlbnRpYWxTdWJqZWN0LmxpY2Vuc2VzWzBdLmNsYXNzIn0seyJ2YWx1ZSI6ImMxOWMzODk0NWVmODc5MzhhNjJmYjM4NGY3ODY3ODIzMzA2NjU5YTEwYzVjNGRhZGQxNjI5MzcyMDIyYWMxZjUiLCJwYXRoIjoiY3JlZGVudGlhbFN1YmplY3QubGljZW5zZXNbMF0uZGVzY3JpcHRpb24ifSx7InZhbHVlIjoiOGZlNWM5ZDQ5ZGY0ZmNlMGY5OWIyZmM2ODNkYWE3ZTE2MmRmMDZkMTYzODE4MGViOWVjYWEzMDY3Y2I2ODg1NyIsInBhdGgiOiJjcmVkZW50aWFsU3ViamVjdC5saWNlbnNlc1swXS5lZmZlY3RpdmVEYXRlIn0seyJ2YWx1ZSI6IjFmNWM5ZWJmZjQ5ZDQzMDc3M2FkMGJiMjQ2NTExNDg4MTM3NTk3N2I3Y2I2OThmNzkxNjg4ODQ0ZjRiMWFmNjkiLCJwYXRoIjoicmVuZGVyTWV0aG9kWzBdLmlkIn0seyJ2YWx1ZSI6IjQ2YzhjOGEyMWU0OGQzZjlhZGM3OTBmMDRjNDI0NzkwZTRmZmEwMWE5YjMwNTBlNWVlMGJlMWJhZmQzNTIxZDMiLCJwYXRoIjoicmVuZGVyTWV0aG9kWzBdLnR5cGUifSx7InZhbHVlIjoiY2U5OGFhMDI3NDg1N2RlNWY0YTRhYjI4ZmVjMDBmZjlmMTY2YzJiYWNjODMyYzkwNDlmNTliZTc3YTUwNmQ1YiIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udGVtcGxhdGVOYW1lIn1d", "privacy": { "obfuscated": [] } diff --git a/test/fixtures/v4/__generated__/raw-document-did-oscp.json b/test/fixtures/v4/__generated__/raw-document-did-oscp.json index 14d8e19c..975eff1c 100644 --- a/test/fixtures/v4/__generated__/raw-document-did-oscp.json +++ b/test/fixtures/v4/__generated__/raw-document-did-oscp.json @@ -1,7 +1,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "type": [ "VerifiableCredential", @@ -10,7 +10,7 @@ "validFrom": "2021-03-08T12:00:00+08:00", "name": "Republic of Singapore Driving Licence", "issuer": { - "id": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { diff --git a/test/fixtures/v4/__generated__/raw-document-did.json b/test/fixtures/v4/__generated__/raw-document-did.json index 98a032ca..219bec42 100644 --- a/test/fixtures/v4/__generated__/raw-document-did.json +++ b/test/fixtures/v4/__generated__/raw-document-did.json @@ -1,7 +1,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "type": [ "VerifiableCredential", @@ -10,7 +10,7 @@ "validFrom": "2021-03-08T12:00:00+08:00", "name": "Republic of Singapore Driving Licence", "issuer": { - "id": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { diff --git a/test/fixtures/v4/__generated__/sample-signing-keys.json b/test/fixtures/v4/__generated__/sample-signing-keys.json index bb83bb41..829abeca 100644 --- a/test/fixtures/v4/__generated__/sample-signing-keys.json +++ b/test/fixtures/v4/__generated__/sample-signing-keys.json @@ -1,4 +1,4 @@ { - "public": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89#controller", - "private": "0x497c85ed89f1874ba37532d1e33519aba15bd533cdcb90774cc497bfe3cde655" + "public": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90#controller", + "private": "0xcd27dc84c82c5814e7edac518edd5f263e7db7f25adb7a1afe13996a95583cf2" } \ No newline at end of file diff --git a/test/fixtures/v4/__generated__/signed-wrapped-document-did-obfuscated.json b/test/fixtures/v4/__generated__/signed-wrapped-document-did-obfuscated.json index 4d2c8ed5..ab72dc14 100644 --- a/test/fixtures/v4/__generated__/signed-wrapped-document-did-obfuscated.json +++ b/test/fixtures/v4/__generated__/signed-wrapped-document-did-obfuscated.json @@ -1,7 +1,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "name": "Republic of Singapore Driving Licence", "type": [ @@ -9,7 +9,7 @@ "OpenAttestationCredential" ], "issuer": { - "id": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { @@ -39,17 +39,17 @@ "proof": { "type": "OpenAttestationMerkleProofSignature2018", "proofPurpose": "assertionMethod", - "targetHash": "4b178a75faf7d7ecff1341ee1e0907810df23c88a217b814eb12c2a4454631ec", + "targetHash": "0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc", "proofs": [], - "merkleRoot": "4b178a75faf7d7ecff1341ee1e0907810df23c88a217b814eb12c2a4454631ec", - "salts": "W3sidmFsdWUiOiIyMzkyMzE4OGQ0MzIwYzlkMGEyZGY0MjU2ZTQ2ZTkzZTgzM2FlMWQ4YTU5YzFlYmQ5MTBkOTUxNDc1MjNiMjhmIiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6IjZjMGEzZTZmZDI0NTEyZjg5MWE4ZDY0N2RlZGU1NmIwYjBlMT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WZmODM4YmMyOTE2ODQ0MzA3Y2Q5Y2ZjOGVmOCIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udGVtcGxhdGVOYW1lIn1d", "privacy": { "obfuscated": [ - "0394c26c5be1bde929bf5aec2e076fc6843ace379be541c30707dab467baa59f" + "7f2ecdae29b49b3a971d5acdfbbf9225a193e735ce41b89b0d84cca801794fc9" ] }, - "key": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89#controller", - "signature": "0x1744f9615fa8d725cf4ae14f2654762dd8e0ee88a9b6d8af13cec688019a7a501e9bae10fa407fdbe359977f8124a26a0061a0ef0ea212c42fd1d91e0998928d1c" + "key": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90#controller", + "signature": "0x949b76d8df493a56c1cf21303a74d6a54904461c1c10f4619b43ad7d339c64467c61eb4c0873f279cd21d5bdd044d3af5318f14d63f57acbd4cde30f271f3eb71c" }, "renderMethod": [ { diff --git a/test/fixtures/v4/__generated__/signed-wrapped-document-did-oscp.json b/test/fixtures/v4/__generated__/signed-wrapped-document-did-oscp.json index f1c406a5..359bfe77 100644 --- a/test/fixtures/v4/__generated__/signed-wrapped-document-did-oscp.json +++ b/test/fixtures/v4/__generated__/signed-wrapped-document-did-oscp.json @@ -1,7 +1,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "name": "Republic of Singapore Driving Licence", "type": [ @@ -9,7 +9,7 @@ "OpenAttestationCredential" ], "issuer": { - "id": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { @@ -51,14 +51,14 @@ "proof": { "type": "OpenAttestationMerkleProofSignature2018", "proofPurpose": "assertionMethod", - "targetHash": "db256b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VuZGVyTWV0aG9kWzBdLmlkIn0seyJ2YWx1ZSI6ImJmOGJlY2M2Yjg1MDJkODBiNTg4ZmRmZmJhY2JmMmU1NTIzNjE1MzBjYmUxMGI4NzM5OTQ0NWYwZmZkYTkwOTAiLCJwYXRoIjoicmVuZGVyTWV0aG9kWzBdLnR5cGUifSx7InZhbHVlIjoiOTRmYmI5NWE1ZmNhZjU0YTcwYTAxODZiNjg1OWM5YmY5MzYzNWU0OTQ0N2U3ZmMxYWIyY2RmNTM5ZDllZjNiNyIsInBhdGgiOiJyZW5kZXJNZXRob2RbMF0udGVtcGxhdGVOYW1lIn1d", "privacy": { "obfuscated": [] }, - "key": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89#controller", - "signature": "0x1d889961f3b28e3433ee56e1d3226d1b069d6696f2cac99d1f1504f31c1257b216e9e42bfa8c434eaeb80bc38b0af269cab3ffd03d4410539589d9173bc4ba881c" + "key": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90#controller", + "signature": "0xa9f89c00bac009044f02ca0e0c605389a927e4b011fa7c0f9a3bfd987598d8a442cd51218a31e387737ad42adeb9b9405c545a4d70ad75d06f7a7701e87440631c" } } \ No newline at end of file diff --git a/test/fixtures/v4/__generated__/signed-wrapped-document-did.json b/test/fixtures/v4/__generated__/signed-wrapped-document-did.json index 2faaaa32..35e02df7 100644 --- a/test/fixtures/v4/__generated__/signed-wrapped-document-did.json +++ b/test/fixtures/v4/__generated__/signed-wrapped-document-did.json @@ -1,7 +1,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "name": "Republic of Singapore Driving Licence", "type": [ @@ -9,7 +9,7 @@ "OpenAttestationCredential" ], "issuer": { - "id": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { @@ -47,14 +47,14 @@ "proof": { "type": "OpenAttestationMerkleProofSignature2018", "proofPurpose": "assertionMethod", - "targetHash": "dd55a7d96d47e58350f2cfb03ebdf3f859684c9f97ba75eed55b1bdcc761c5aa", + "targetHash": "0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc", "proofs": [], - "merkleRoot": "dd55a7d96d47e58350f2cfb03ebdf3f859684c9f97ba75eed55b1bdcc761c5aa", - "salts": "W3sidmFsdWUiOiJjYTE3MjI0YTg3NTk0NzNhNGUyZjM2YTM3NjljODU0OGM5M2RjZTQ3NmI0MjEwMTNmYTEzYTA2OTUxYTI1YzhjIiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6IjMyYzk3MDRhMmIxMWU1MzhjYTBlZWJhYWMzNmU0ZmRlYTU4ZGY0MDI4ZGVmZmJjOTkzODBjYjZkZjU3MTdiODEiLCJwYXRoIjoiQGNvbnRleHRbMV0ifSx7InZhbHVlIjoiNDE3YTFhNzY2YWM5MzhkOWVlY2FhNWRmMDdhOTBhODkyZTM3ZjA1ZmI3MzY5ZWRjNGQwYWNmNWZkMjE4YjhlMiIsInBhdGgiOiJuYW1lIn0seyJ2YWx1ZSI6ImE1Y2FkZDIzMmQ4ZjhlMGU4ZmFhODA3OTMyYWNkZjJhODc1OWY4MWEyMDNmNmEwMjdjMTJhOTBhNjg0MWE1NWYiLCJwYXRoIjoidHlwZVswXSJ9LHsidmFsdWUiOiI2NGE4NjBmMmQwOGZjNGIyMDhjZWE3NmU2MjBjM2YwMDRlYzhiMmRhYjdhZTc5ZTZkZmMxZjllYjU1MWMxMmM3IiwicGF0aCI6InR5cGVbMV0ifSx7InZhbHVlIjoiMzcyZmJlNDllMTdjMTA2MGEzNTk1NjVhNDA2M2VlMjkyODU1ODg0OWZhZWRkODE1MGQwYWZjZmY3NzQ2M2NmMyIsInBhdGg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148c2f68c677cb8408d96e9b5411dfb1c" + "key": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90#controller", + "signature": "0x949b76d8df493a56c1cf21303a74d6a54904461c1c10f4619b43ad7d339c64467c61eb4c0873f279cd21d5bdd044d3af5318f14d63f57acbd4cde30f271f3eb71c" } } \ No newline at end of file diff --git a/test/fixtures/v4/__generated__/wrapped-document-did-oscp.json b/test/fixtures/v4/__generated__/wrapped-document-did-oscp.json index 7710fbb2..d6ab276e 100644 --- a/test/fixtures/v4/__generated__/wrapped-document-did-oscp.json +++ b/test/fixtures/v4/__generated__/wrapped-document-did-oscp.json @@ -1,7 +1,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "name": "Republic of Singapore Driving Licence", "type": [ @@ -9,7 +9,7 @@ "OpenAttestationCredential" ], "issuer": { - "id": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { @@ -51,10 +51,10 @@ "proof": { "type": "OpenAttestationMerkleProofSignature2018", "proofPurpose": "assertionMethod", - "targetHash": "96a8e79b4c9b14dde88d9d6db26916215502ed09f458d0dc387c1ca73f3549f0", + "targetHash": "0f60b3ef4b9b826de4753c4e68bb5ac9fdd2496549f901331a9d07464469366c", "proofs": [], - "merkleRoot": "96a8e79b4c9b14dde88d9d6db26916215502ed09f458d0dc387c1ca73f3549f0", - "salts": "W3sidmFsdWUiOiI2ZGM0NzZkYmZlOTBiMjMxYzg5MjFiYmIyNTg3NTFkZGJlNzExMGFhOGM2Y2U3ODQwOGZiNmFhMDBiYzI3NTZjIiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6ImY3MTA2OTA3YzJhMDRjNzRiOWYy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lIn1d", "privacy": { "obfuscated": [] } diff --git a/test/fixtures/v4/__generated__/wrapped-document-did.json b/test/fixtures/v4/__generated__/wrapped-document-did.json index 19039c49..d0a516ac 100644 --- a/test/fixtures/v4/__generated__/wrapped-document-did.json +++ b/test/fixtures/v4/__generated__/wrapped-document-did.json @@ -1,7 +1,7 @@ { "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://schemata.openattestation.com/com/openattestation/4.0/alpha-context.json" + "https://schemata.openattestation.com/com/openattestation/4.0/context.json" ], "name": "Republic of Singapore Driving Licence", "type": [ @@ -9,7 +9,7 @@ "OpenAttestationCredential" ], "issuer": { - "id": "did:ethr:0xE712878f6E8d5d4F9e87E10DA604F9cB564C9a89", + "id": "did:ethr:0xB26B4941941C51a4885E5B7D3A1B861E54405f90", "type": "OpenAttestationIssuer", "name": "Government Technology Agency of Singapore (GovTech)", "identityProof": { @@ -47,10 +47,10 @@ "proof": { "type": "OpenAttestationMerkleProofSignature2018", "proofPurpose": "assertionMethod", - "targetHash": "dd55a7d96d47e58350f2cfb03ebdf3f859684c9f97ba75eed55b1bdcc761c5aa", + "targetHash": "0b1f90bc8e87cfce8ec49cea60d406291ad130ddedc26e866a8c4f2152747abc", "proofs": [], - "merkleRoot": "dd55a7d96d47e58350f2cfb03ebdf3f859684c9f97ba75eed55b1bdcc761c5aa", - "salts": "W3sidmFsdWUiOiJjYTE3MjI0YTg3NTk0NzNhNGUyZjM2YTM3NjljODU0OGM5M2RjZTQ3NmI0MjEwMTNmYTEzYTA2OTUxYTI1YzhjIiwicGF0aCI6IkBjb250ZXh0WzBdIn0seyJ2YWx1ZSI6IjMyYzk3MDRhMmIxMWU1MzhjYTBlZWJhYWMzNmU0ZmRlYTU4ZGY0MDI4ZGVmZmJjOTkzODBjYjZkZjU3MTdiODEiLCJwYXRoIjoiQGNvbnRleHRbMV0ifSx7InZhbHVlIjoiNDE3YTFhNzY2YWM5MzhkOWVlY2FhNWRmMDdhOTBhODkyZTM3ZjA1ZmI3M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