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-924 implemented NFT token holder VC for MVP on Ethereum #2889

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

higherordertech
Copy link
Contributor

@higherordertech higherordertech commented Jul 12, 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: 0x4A4747cdc37A7a3f763a1D0B61f45A0457B13B66 -a "nft-holder mvp"

identity: Evm(Address20)
nonce: 0
assertions: [NftHolder (Mvp)]
-Generated VC-{"@context": ["https://www.w.org/2018/credentials/vI","https://wid.org/security/suites/ed25519-2020/vI"J,"id":"Oxff0cbad627341e406bb9bdd5d38d0fb2e911c86ee01c740034aa587aee57797f","type": ["Ver ifiableCredential"], "credentialSubject": {"id":"did:litentry: evm: 0x4a4747cdc37a7a3763a1d0b61f45a0457b13b66", "description": "You are a holder of a certain kind of NFT", "type": "Generic NFT Holder
" "assertionText":""
"assertions": ["and": ["src":"$nft","op":"==","dst":"MEME VIP PASS"}, {"'or": [{"and": [{"src":"$network"
"st":"ethereum"},{"src":"$address", „"op":"==", "dst": "OxAA81
3F8691B10D62bd616a90b05A52f0C40C1D"}J}]}]}],"values": [truel,"endpoint":"wss://rpc.rococo-parachain.litentry.io"}, "issuer": {"id": "did:litentry:substrate:0×68d1cc914ad64433859f9fb888918d5ab2 e9c009243f4a02e08de7eld421be"', "name": "Litentry TEE Worker", "mrenclave": "JDayZMu1UgkG5NV83hqXqGRaSvM9TUzsKgjfoLUoDrT", "runtimeVersion": {"parachain": 9182, "sidechain": 108}}, "issuanceDate": "2024-07-11T13:19:43.478930677+00:00" , "'parächainBlockNumber':19, "sidechainBlockNumber":29, "proof" : (" created" : "2024-07-11T13: 19:43. 479146587+00:00", "type" "Ed2551951gnature2020", "proofPurpose"';"asser tionMethod", "proofValue": "643633f1alebee58388518b4018ada8d3a75f0dba9b303649d56c38d043d61add629948c9063c021481ef635897ef63494aaddabf9b78f3c8b2bb5b8205", "verificationMethod": "Oxe4389f713eca bfdfada4a81654a8cc4e25ca35d863e563a29fbd5780dcaed9c"}, "credentialSchema": {"id": "https://raw.githubusercontent.com/litentry/vc-jsonschema/main/dist/schemas/26-nft-holder/1-1-2.json","type":"Js onSchemaValidator2018"}}

./bin/litentry-cli trusted -d request-vc did: litentry: evm: 0x80933513D3751406d63703Bc2081af01Aa244F -a "nft-holder mvp"

identity: Evm(Address20)
nonce: 0
assertions: [NftHolder (Mvp)]
-Generated VC {"@context": ["https: //www.w.org/2018/credentials/vl","https://wid.org/security/suites/ed25519-2020/vI"l,"id":"Oxf29633d8fff9e17c50a65fe94454ddd78eea825da616ad4f53fe902a0eeb465"
"type": ["Ver
ifiableCredential"], "credentialSubject": {"id": "did: litentry:evm:080933513d375e1406d63703bc2081af01aa244f","description":"You are a holder of a certain kind of NFT", "type": "Generic NFT Holder
", "assertionText":""
"assertions":[£"and": [f"src":"inft".
""op":"==", "dst": "MEME VIP PASS"}, {"or": [{"and": [{"src":"$network"
""op": "==", "dst":"ethereum"},{"src":"$address"
""op": "==" "dst": "OXAA81
3F8691B10D62d616a90b05A52f0C40C1D"}]}1}]}]."values": [falsel.
"endpoint":"wss://rpc.rococo-parachain.litentry.io"},"issuer":{"id":"did:litentry:substrate:0x68d1cc914ad64433859f9fb8f88918d5ab
2e9c009243f4a02e08de7e1d421be", "name" :"Litentry TEE Worker", "mrenclave": "JDayZMulUgkG5NV83hqcXqGRaSvM9TUzsKgjfoLUoDrT", "runtimeVersion": {"parachain" :9182, "sidechain": 108}}, "issuanceDate": "2024
-07-10T13:20:14.517693446+00:00", "parachainBlockNumber": 21, "sidechainBlockNumber":34, "proof": {"created":"2024-07-11T13:20:14.517905010+00:00" rtionMethod"
, "type": "Ed25519Signature2020", "proofPurpose": "asse
"proofValue": "1c53f87102ccla0cb17710de2fc347bfddd1ceffd4cb9f946a385fc4f89d718cf2742dcce8a21224d490cb8ca386184454f074984dcbca562f7daeb586b5a04", "verificationMethod":"0xe4389f713ec
abfdfa0a4a81654a8cc4e25ca35d863563a29fbd5780dcaed9c"},"credentialSchema":{"'id":"https://raw.githubusercontent.com/litentry/vc-jsonschema/main/dist/schemas/26-nft-holder/1-1-2.json","type":"J sonSchemaValidator2018 }}

Copy link

linear bot commented Jul 12, 2024

@higherordertech higherordertech requested a review from a team July 12, 2024 00:31
@higherordertech higherordertech enabled auto-merge (squash) July 12, 2024 02:08
Copy link
Collaborator

@Kailai-Wang Kailai-Wang left a comment

Choose a reason for hiding this comment

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

Thanks

cc @jonalvarezz

@higherordertech higherordertech merged commit 555315d into dev Jul 12, 2024
32 checks passed
@Kailai-Wang Kailai-Wang deleted the MVP-NFT-holder branch July 12, 2024 05:44
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