cord-network / community

All discussions, new ideas and issues related to https://cord.network and the relevant projects.
2 stars 1 forks source link

[cord] Use Once Statements Pallet #11

Closed NiranjanAP closed 4 months ago

NiranjanAP commented 5 months ago

Use ONCE with 'statement' can be more clearly explained with an usecase of event ticket which is 'use once'. It can be true with flight tickets, museum tickets, event tickets etc.

So, think of a usecase, where any 'approved' applications can look at a statement (VC, PDF file, image etc), and if found valid, this app should be having a method to update the statement's status to 'Consumed' (or something similar).

This way, the validity of tickets verification is logged on chain.

amarts commented 5 months ago

Pallet should contain mainly 2 methods. One which takes identifier as input argument, and in storage marks it in a table, another which takes the identifier, checks if its in storage, and also the addition is done by the given DID.

NiranjanAP commented 4 months ago

Created a duplicate in DMP format - https://github.com/cord-network/community/issues/17