From 002308d9177983bb358f10cd39d815f5ea8b3e9e Mon Sep 17 00:00:00 2001 From: Urban Date: Mon, 16 Oct 2023 18:59:58 +0200 Subject: [PATCH] chore: add ReputeX test credential (#503) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Urban Vidovič --- packages/snap/.vscode/settings.json | 6 +++ .../credentials/exampleReputeXCredential.json | 54 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 packages/snap/.vscode/settings.json create mode 100644 packages/snap/tests/data/credentials/exampleReputeXCredential.json diff --git a/packages/snap/.vscode/settings.json b/packages/snap/.vscode/settings.json new file mode 100644 index 000000000..5afc98cdd --- /dev/null +++ b/packages/snap/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "typescript.tsdk": "node_modules/typescript/lib", + "editor.formatOnSave": true, + "json.format.enable": true, + "editor.defaultFormatter": "esbenp.prettier-vscode" +} diff --git a/packages/snap/tests/data/credentials/exampleReputeXCredential.json b/packages/snap/tests/data/credentials/exampleReputeXCredential.json new file mode 100644 index 000000000..e6467fe55 --- /dev/null +++ b/packages/snap/tests/data/credentials/exampleReputeXCredential.json @@ -0,0 +1,54 @@ +{ + "id": "https://issuer-polygonid.reputex.io/v1/credentials/ee7bc3bb-6908-11ee-9bd6-0242ac170007", + "@context": [ + "https://www.w3.org/2018/credentials/v1", + "https://schema.iden3.io/core/jsonld/iden3proofs.jsonld", + "https://raw.githubusercontent.com/reputex/polygon-id-credential-schemas/main/ReputeXUniswapCredibilityCredential/ReputeXUniswapCredibilityCredential.jsonld" + ], + "type": ["VerifiableCredential", "ReputeXUniswapCredibilityCredential"], + "expirationDate": "2023-11-23T00:00:00Z", + "issuanceDate": "2023-10-12T14:09:17.680751947Z", + "credentialSubject": { + "daoScore": 0, + "hodlScore": 0, + "id": "did:polygonid:polygon:main:2q4KKcQtSiW47sauaATznYzMZd8cLFKHgWfmX2xxq8", + "lastUpdated": 1697119279, + "protocolScore": 0, + "refId": "9ea22a7e-c68c-4caa-a330-813660ea7e29", + "type": "ReputeXUniswapCredibilityCredential" + }, + "credentialStatus": { + "id": "https://issuer-polygonid.reputex.io/v1/credentials/revocation/status/2002560133", + "revocationNonce": 2002560133, + "type": "SparseMerkleTreeProof" + }, + "issuer": "did:polygonid:polygon:main:2q5Pyn8q8GKKAy8fKQjMe9ADjSQD69tWTUW3aJRhuv", + "credentialSchema": { + "id": "https://raw.githubusercontent.com/reputex/polygon-id-credential-schemas/main/ReputeXUniswapCredibilityCredential/ReputeXUniswapCredibilityCredential.json", + "type": "JsonSchema2023" + }, + "proof": [ + { + "type": "BJJSignature2021", + "issuerData": { + "id": "did:polygonid:polygon:main:2q5Pyn8q8GKKAy8fKQjMe9ADjSQD69tWTUW3aJRhuv", + "state": { + "claimsTreeRoot": "1a5e7c9b62a86e6bca048f4437fd8f6e6bd817d9e72ede513dc08efde88ba116", + "value": "dded9e110f64402b4214ae10b6a08cbde6b2c38ad9ff448b7008d35acf805a2e" + }, + "authCoreClaim": "cca3371a6cb1b715004407e325bd993c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000023feeb1bb273e1d91dd0a9534ddff65f0ed55b3b5553b4edb4014a6c542b5b2a7b3dcc40744cb6bd72ac7e4232f5c15ea34b540bdb6dcef0bb1ff2a8be594b290000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "mtp": { + "existence": true, + "siblings": [] + }, + "credentialStatus": { + "id": "https://issuer-polygonid.reputex.io/v1/credentials/revocation/status/0", + "revocationNonce": 0, + "type": "SparseMerkleTreeProof" + } + }, + "coreClaim": "d796bdc2412f784d23ee71122405d9482a00000000000000000000000000000002114c7424ef6cb922c1cf0807475a105b8b5f8ab8632221e8c5ab4a0b570b00b52f83bc7c798f9a712a5610b4bcafa9fdd2e08445cf669dc2fc6f8c030e4116000000000000000000000000000000000000000000000000000000000000000085a45c770000000000965e650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "signature": "3f3543aca248d273d0049e3b61b9246edf7bc2ec3e3acd2df18852b66a2ecf104407eb9c59894922f31717e68ab4c00e9eea63272ca663e92a0392d35c04f404" + } + ] +}