Skip to content

Commit

Permalink
fix: P-699 update default vc credential endpoint to prod url (#3147)
Browse files Browse the repository at this point in the history
Co-authored-by: higherordertech <higherordertech>
Co-authored-by: Jonathan Alvarez <[email protected]>
  • Loading branch information
higherordertech and jonalvarezz authored Oct 28, 2024
1 parent b8bd969 commit 303623d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion local-setup/rococo_one_worker.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"-h",
"4545",
"-u",
"wss://rpc.rococo-parachain.litentry.io",
"wss://rpc.litentry-parachain.litentry.io",
"-p",
"443",
"--parentchain-start-block",
Expand Down
2 changes: 1 addition & 1 deletion parachain/scripts/fork-parachain-and-launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 303623d

Please sign in to comment.