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

P 1006 linked identities vc #3051

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Conversation

wli-pro
Copy link
Contributor

@wli-pro wli-pro commented Sep 6, 2024

Context

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

./bin/litentry-cli trusted -d request-vc did:litentry:evm:0x8c0Ba3291df6bF63088377d29ccdfB15C7750F31 -a "linked-identities"

identity: Evm(Address20)
nonce: 46
assertions: [LinkedIdentities]
----Generated VC-----
{"@context":["https://www.w3.org/2018/credentials/v1","https://w3id.org/security/suites/ed25519-2020/v1"],"id":"0x442633010691a2118a89f49ff588cad474d28a68eda379714b2137774ecc1501","type":["VerifiableCredential"],"credentialSubject":{"id":"did:litentry:evm:0x8c0ba3291df6bf63088377d29ccdfb15c7750f31","description":"All web2 and web3 identities you linked","type":"Linked web2/web3 identities","assertionText":"","assertions":[{"and":[{"src":"$identities","op":"==","dst":"["did:litentry:evm:0x8c0ba3291df6bf63088377d29ccdfb15c7750f31"]"}]}],"values":[true],"endpoint":"http://localhost:9933/"},"issuer":{"id":"did:litentry:substrate:0x07fdedba11267e78ec251926b18e63e2292fd2aebe58290d6713e22d12736441","name":"Litentry TEE Worker","mrenclave":"AqqAZL5RfGW5weXGfxksHMvvHVzCou8GUjpDLgWu4kd9","runtimeVersion":{"parachain":9195,"sidechain":109}},"issuanceDate":"2024-09-06T09:06:57.856330486+00:00","parachainBlockNumber":126,"sidechainBlockNumber":243,"proof":{"created":"2024-09-06T09:06:57.856525692+00:00","type":"Ed25519Signature2020","proofPurpose":"assertionMethod","proofValue":"4fcbf103dd1eea5f9421b2347d63637a9e87c36611b7efec870248a26aa41c907e0a86a12ee8f45081f2cf3d03424fc4e30b89d61b09d064a942c74cd337c806","verificationMethod":"0x44a948fc078f63532896b35102dca291b0690c54c2cad4c00fc168c33f64b93c"},"credentialSchema":{"id":"https://raw.githubusercontent.com/litentry/vc-jsonschema/P-1006-added-new-identitY-vc-schema/dist/schemas/27-linked-identities/1-0-0.json","type":"JsonSchemaValidator2018"}}

Copy link

linear bot commented Sep 6, 2024

@wli-pro wli-pro requested a review from a team September 8, 2024 22:55
@wli-pro wli-pro marked this pull request as ready for review September 8, 2024 22:55
@wli-pro wli-pro force-pushed the P-1006-linked-identities-vc branch from a53ca9d to cbd9670 Compare September 9, 2024 02:49
Co-authored-by: higherordertech <higherordertech>
@wli-pro wli-pro force-pushed the P-1006-linked-identities-vc branch from cbd9670 to e8105ad Compare September 9, 2024 02:51
@wli-pro wli-pro merged commit d2249ff into release-v0.9.19 Sep 9, 2024
@wli-pro wli-pro deleted the P-1006-linked-identities-vc branch September 9, 2024 02:52
jonalvarezz added a commit that referenced this pull request Sep 23, 2024
* feat: P-1006 add new Assertion enum item LinkedIdentities (#3042) (#3051)

Co-authored-by: higherordertech <higherordertech>

* adding email identity to core primitives (#3063)

* adding email identity to core primitives

* fixing formatting issue

* Handling missing enum branches in match patterns (#3064)

Handling missing variants for LinkedIdentities and Identity in match patterns

* re-apply changes from #3064 after restructure

Signed-off-by: Jonathan Alvarez <[email protected]>

---------

Signed-off-by: Jonathan Alvarez <[email protected]>
Co-authored-by: will.li <[email protected]>
Co-authored-by: Francisco Silva <[email protected]>
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.

1 participant