From 01b775b469e76a71e44dcdfb41d5f26714a1acca Mon Sep 17 00:00:00 2001 From: mildred Date: Fri, 8 Mar 2024 12:37:08 +0100 Subject: [PATCH] fix throw error, change URL_IDHUB --- tests/x.json | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 tests/x.json diff --git a/tests/x.json b/tests/x.json new file mode 100644 index 0000000..1c9ad03 --- /dev/null +++ b/tests/x.json @@ -0,0 +1,80 @@ +{ + "@context": [ + "https://www.w3.org/2018/credentials/v1", + "https://idhub.pangea.org/credentials/base/v1", + "https://idhub.pangea.org/credentials/financial-vulnerability/v1" + ], + "id": "https://http://idhub1-nightly.demo.pangea.org/credentials/5", + "type": [ + "VerifiableCredential", + "VerifiableAttestation", + "FinancialVulnerabilityCredential" + ], + "credentialSubject": { + "id": "did:web:idhub1-nightly.demo.pangea.org:did-registry:z6MkpMD1jkAgND3db4VPEejt6p3Hw29nK2YMB2cA3yJRKitx", + "email": "user1@example.org", + "identityNumber": "45678900V", + "streetAddress": "C/ Tallers 1", + "socialWorkerSurname": "Fernández", + "firstName": "Wolfgang Amadeus", + "lastName": "Mozart", + "financialVulnerabilityScore": "4", + "phoneNumber": "678567456", + "connectivityOptionList": "Fibra", + "identityDocType": "DNI", + "socialWorkerName": "Ana", + "amountCoveredByOtherAids": "0", + "assessmentDate": "2024-01-01" + }, + "issuer": { + "id": "did:web:idhub1-nightly.demo.pangea.org:did-registry:z6MkoaNHrwbZFFzMJBvXdAg7PoiQqyxUa72ygrDQZ6VEoMWK", + "name": "nightly idhub1" + }, + "issuanceDate": "2024-03-07T11:21:20Z", + "proof": { + "type": "Ed25519Signature2018", + "proofPurpose": "assertionMethod", + "verificationMethod": "did:web:idhub1-nightly.demo.pangea.org:did-registry:z6MkoaNHrwbZFFzMJBvXdAg7PoiQqyxUa72ygrDQZ6VEoMWK#owner", + "created": "2024-03-07T11:21:20.787Z", + "jws": "eyJhbGciOiJFZERTQSIsImNyaXQiOlsiYjY0Il0sImI2NCI6ZmFsc2V9..ueHAZrHC7Ly4fIjx0YnKEVBLFAzmcmdHuJrxuXs6DacSJWlF09wsRU81gikAx_fuqTFsub8KZzMQs-PCyWnFDg" + }, + "credentialStatus": { + "id": "did:web:idhub1-nightly.demo.pangea.org:did-registry:z6MkoaNHrwbZFFzMJBvXdAg7PoiQqyxUa72ygrDQZ6VEoMWK", + "type": "RevocationBitmap2022", + "revocationBitmapIndex": "5" + }, + "credentialSchema": { + "id": "https://idhub.pangea.org/vc_schemas/financial-vulnerability.json", + "type": "FullJsonSchemaValidator2021" + }, + "validFrom": "2024-03-07T11:21:20Z", + "name": [ + { + "lang": "en", + "value": "Financial Vulnerability Credential" + }, + { + "lang": "ca_ES", + "value": "Credencial de Vulnerabilitat Financera" + }, + { + "lang": "es", + "value": "Credencial de Vulnerabilidad Financiera" + } + ], + "issued": "2024-03-07T11:21:20Z", + "description": [ + { + "lang": "en", + "value": "The Financial Vulnerability Credential is issued to individuals or families to prove their financial vulnerability based on various factors, with the objective of presenting it to a third party to receive benefits or services." + }, + { + "lang": "ca_ES", + "value": "La Credencial de Vulnerabilitat Financera és emesa a persones o famílies per acreditar la seva vulnerabilitat financera sobre la base de diversos factors, amb l'objectiu que la presentin a una tercera part per rebre beneficis o serveis." + }, + { + "lang": "es", + "value": "La Credencial de Vulnerabilidad Financiera es emitida a personas o familias para acreditar su vulnerabilidad financiera con base en diversos factores, con el objetivo de que la presenten a una tercera parte para recibir beneficios o servicios." + } + ] +} \ No newline at end of file