Skip to content

Commit

Permalink
chore: add ReputeX test credential (#503)
Browse files Browse the repository at this point in the history
Signed-off-by: Urban Vidovič <urbanfoundit@gmail.com>
  • Loading branch information
pseudobun authored Oct 16, 2023
1 parent 0521926 commit 002308d
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/snap/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true,
"json.format.enable": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
54 changes: 54 additions & 0 deletions packages/snap/tests/data/credentials/exampleReputeXCredential.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}

0 comments on commit 002308d

Please sign in to comment.