From 303623d441c504e400c99aaca6b5f1d59fcc6bc0 Mon Sep 17 00:00:00 2001 From: "will.li" <120463031+higherordertech@users.noreply.github.com> Date: Tue, 29 Oct 2024 03:26:26 +1100 Subject: [PATCH] fix: P-699 update default vc credential endpoint to prod url (#3147) Co-authored-by: higherordertech Co-authored-by: Jonathan Alvarez --- .github/runtime.json | 2 +- local-setup/rococo_one_worker.json | 2 +- parachain/scripts/fork-parachain-and-launch.sh | 2 +- .../packages/client-sdk/src/lib/vc-validator/validator.spec.ts | 2 +- tee-worker/identity/litentry/core/data-providers/src/lib.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/runtime.json b/.github/runtime.json index 07f6bec7e7..6bc8f44888 100644 --- a/.github/runtime.json +++ b/.github/runtime.json @@ -3,7 +3,7 @@ "name": "rococo", "package": "rococo-parachain-runtime", "path": "runtime/rococo", - "uri": "wss://rpc.rococo-parachain.litentry.io:443" + "uri": "wss://rpc.litentry-parachain.litentry.io:443" }, { "name": "litentry", diff --git a/local-setup/rococo_one_worker.json b/local-setup/rococo_one_worker.json index 72093f1099..55da003328 100644 --- a/local-setup/rococo_one_worker.json +++ b/local-setup/rococo_one_worker.json @@ -14,7 +14,7 @@ "-h", "4545", "-u", - "wss://rpc.rococo-parachain.litentry.io", + "wss://rpc.litentry-parachain.litentry.io", "-p", "443", "--parentchain-start-block", diff --git a/parachain/scripts/fork-parachain-and-launch.sh b/parachain/scripts/fork-parachain-and-launch.sh index a8c9f7c5cb..8103ccd165 100755 --- a/parachain/scripts/fork-parachain-and-launch.sh +++ b/parachain/scripts/fork-parachain-and-launch.sh @@ -52,7 +52,7 @@ FORK_CHAIN=${ORIG_CHAIN}-dev case "$ORIG_CHAIN" in rococo) - ENDPOINT="${2:-wss://rpc.rococo-parachain.litentry.io}" + ENDPOINT="${2:-wss://rpc.litentry-parachain.litentry.io}" ;; litentry) ENDPOINT="${2:-wss://rpc.litentry-parachain.litentry.io}" diff --git a/tee-worker/identity/client-sdk/packages/client-sdk/src/lib/vc-validator/validator.spec.ts b/tee-worker/identity/client-sdk/packages/client-sdk/src/lib/vc-validator/validator.spec.ts index 93f458ba7d..a875a2f686 100644 --- a/tee-worker/identity/client-sdk/packages/client-sdk/src/lib/vc-validator/validator.spec.ts +++ b/tee-worker/identity/client-sdk/packages/client-sdk/src/lib/vc-validator/validator.spec.ts @@ -166,7 +166,7 @@ describe('validateVcWithTrustedTeeDevEnclave', () => { it('should work with VC issued by trusted past enclave', async () => { // this vc was generated on the running tee-dev from 2024-04-22 (trusted) - const vcContent = `{"@context":["https://www.w3.org/2018/credentials/v1","https://w3id.org/security/suites/ed25519-2020/v1"],"id":"0x1aefd704d62ce216cc2147bb34f4af7637074d6770c95bb8d6a412ccd91ea63a","type":["VerifiableCredential"],"credentialSubject":{"id":"did:litentry:evm:0x0ace67628bd43213c1c41ca1daef47e63923c75c","description":"You are VIP3 Gold Card Holder","type":"VIP3 Gold Card Holder","assertionText":"VIP3MembershipCard(Gold)","assertions":[{"src":"$is_gold_card","op":"==","dst":"true"}],"values":[false],"endpoint":"wss://rpc.rococo-parachain.litentry.io"},"issuer":{"id":"did:litentry:substrate:0x56eb57c05914da669e494299476bb21b377f231951d6f9a846cde2c4d078eb3a","name":"Litentry TEE Worker","mrenclave":"6wxPcTxnt52hLJd8VxAuLJi5az5NJiMXBcaJdW6qvTJS"},"issuanceDate":"2024-04-22T13:35:28.678115066+00:00","parachainBlockNumber":1076,"sidechainBlockNumber":2154,"proof":{"created":"2024-04-22T13:35:28.678688591+00:00","type":"Ed25519Signature2020","proofPurpose":"assertionMethod","proofValue":"ad4bfe8a9ee8f29f08ed312fd02b6ffd05f97fbd8f09991356377d83f81b6ea0f19d9dd1160d8c2f28be66575b9b39e973b8c587b24fbef79531af416f76530e","verificationMethod":"0x56eb57c05914da669e494299476bb21b377f231951d6f9a846cde2c4d078eb3a"},"credentialSchema":{"id":"https://raw.githubusercontent.com/litentry/vc-jsonschema/main/dist/schemas/19-vip3-card-holder/1-0-0.json","type":"JsonSchemaValidator2018"}}`; + const vcContent = `{"@context":["https://www.w3.org/2018/credentials/v1","https://w3id.org/security/suites/ed25519-2020/v1"],"id":"0x1aefd704d62ce216cc2147bb34f4af7637074d6770c95bb8d6a412ccd91ea63a","type":["VerifiableCredential"],"credentialSubject":{"id":"did:litentry:evm:0x0ace67628bd43213c1c41ca1daef47e63923c75c","description":"You are VIP3 Gold Card Holder","type":"VIP3 Gold Card Holder","assertionText":"VIP3MembershipCard(Gold)","assertions":[{"src":"$is_gold_card","op":"==","dst":"true"}],"values":[false],"endpoint":"wss://rpc.litentry-parachain.litentry.io"},"issuer":{"id":"did:litentry:substrate:0x56eb57c05914da669e494299476bb21b377f231951d6f9a846cde2c4d078eb3a","name":"Litentry TEE Worker","mrenclave":"6wxPcTxnt52hLJd8VxAuLJi5az5NJiMXBcaJdW6qvTJS"},"issuanceDate":"2024-04-22T13:35:28.678115066+00:00","parachainBlockNumber":1076,"sidechainBlockNumber":2154,"proof":{"created":"2024-04-22T13:35:28.678688591+00:00","type":"Ed25519Signature2020","proofPurpose":"assertionMethod","proofValue":"ad4bfe8a9ee8f29f08ed312fd02b6ffd05f97fbd8f09991356377d83f81b6ea0f19d9dd1160d8c2f28be66575b9b39e973b8c587b24fbef79531af416f76530e","verificationMethod":"0x56eb57c05914da669e494299476bb21b377f231951d6f9a846cde2c4d078eb3a"},"credentialSchema":{"id":"https://raw.githubusercontent.com/litentry/vc-jsonschema/main/dist/schemas/19-vip3-card-holder/1-0-0.json","type":"JsonSchemaValidator2018"}}`; const result = await validateVcWithTrustedTeeDevEnclave( api, diff --git a/tee-worker/identity/litentry/core/data-providers/src/lib.rs b/tee-worker/identity/litentry/core/data-providers/src/lib.rs index 9a3a280162..cba11218fe 100644 --- a/tee-worker/identity/litentry/core/data-providers/src/lib.rs +++ b/tee-worker/identity/litentry/core/data-providers/src/lib.rs @@ -235,7 +235,7 @@ impl DataProviderConfig { discord_auth_token: "".to_string(), achainable_url: "https://label-production.litentry.io/".to_string(), achainable_auth_key: "".to_string(), - credential_endpoint: "wss://rpc.rococo-parachain.litentry.io".to_string(), + credential_endpoint: "wss://rpc.litentry-parachain.litentry.io".to_string(), oneblock_notion_key: "".to_string(), oneblock_notion_url: "https://api.notion.com/".to_string(), sora_quiz_master_id: "1164463721989554218".to_string(),