Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: P-431 add karat dao user vc #2467

Merged
merged 2 commits into from
Feb 7, 2024
Merged

feat: P-431 add karat dao user vc #2467

merged 2 commits into from
Feb 7, 2024

Conversation

higherordertech
Copy link
Contributor

Context

As title, a new platform VC is added, currently for Karat Dao. It's validating against karat dao API, for evm address only.

Labels

Please apply following PR-related labels when appropriate:

  • C0-breaking: if your change could break the existing client, e.g. API change, critical logic change
  • C1-noteworthy: if your change is non-breaking, but is still worth noticing for the client, e.g. reference code improvement

How (Optional)

Testing Evidences

Please attach any relevant evidences if applicable

{
  "@context": [
    "https://www.w3.org/2018/credentials/v1",
    "https://w3id.org/security/suites/ed25519-2020/v1"
  ],
  "id": "0x16cadb0270025ebd1058c7fd6a16c183a694d0ddae1c7cf298284e46d1461831",
  "type": [
    "VerifiableCredential"
  ],
  "credentialSubject": {
    "id": "did:litentry:substrate:0xd4e35b16ec6b417386b948e7eaf5cc642a243096cecf366e6313689b90969f42",
    "description": "You are a user of a certain platform",
    "type": "Platform user",
    "assertionText": "PlatformUser(KaratDaoUser)",
    "assertions": [
      {
        "and": [
          {
            "src": "$platform",
            "op": "==",
            "dst": "KaratDao"
          }
        ]
      }
    ],
    "values": [
      true
    ],
    "endpoint": "wss://rpc.rococo-parachain.litentry.io"
  },
  "issuer": {
    "id": "did:litentry:substrate:0xa6b164542e2771f011aba027ced324bee5e688582294374cff3d55780ff8ebd7",
    "name": "Litentry TEE Worker",
    "mrenclave": "3BHA28ASJVYD2FTpcT7d8NXpYBw8tbGGCbcGdZv9t6Wk"
  },
  "issuanceDate": "2024-02-06T09:23:52.966157001+00:00",
  "parachainBlockNumber": 2408,
  "sidechainBlockNumber": 4880,
  "proof": {
    "created": "2024-02-06T09:23:52.967035267+00:00",
    "type": "Ed25519Signature2020",
    "proofPurpose": "assertionMethod",
    "proofValue": "6967d6248ff8da60b1a5edfa52c7416a5d4f8bfa3044e8d294452959ccba2e9fe8c54ed9e8db1b745f634fdcac608aced46db61b2ddbed2eab1e538793f90908",
    "verificationMethod": "0xa6b164542e2771f011aba027ced324bee5e688582294374cff3d55780ff8ebd7"
  }
}

Copy link

linear bot commented Feb 6, 2024

@Kailai-Wang Kailai-Wang requested review from BillyWooo, zhouhuitian and a team February 6, 2024 15:15
Copy link
Collaborator

@BillyWooo BillyWooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice. Thank you.

@higherordertech higherordertech merged commit 9e876e5 into dev Feb 7, 2024
33 checks passed
@Kailai-Wang Kailai-Wang deleted the P-431-KaratDao-vc branch February 7, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants