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

🌐 Extend VC context #615

Closed
amimart opened this issue Aug 12, 2024 · 0 comments · Fixed by #625
Closed

🌐 Extend VC context #615

amimart opened this issue Aug 12, 2024 · 0 comments · Fixed by #625
Assignees

Comments

@amimart
Copy link
Member

amimart commented Aug 12, 2024

Purpose

At claims submission, when storing them in the cognitarium we store additional information related to the context in which the claims has been submitted (e.g. the address which signed the transaction: dataverse:credential#submitterAddress).

To extend the perspectives and possibilities when using the protocol we could take benefits from storing a more complete context, for instance having a submission block height would allow the implementation of on-chain rate limit for execution orders.

Proposal

I propose to enhance the claim stored context to store two kind of context data:

  • body: related to the original verifiable credential carrying the claims, under the dataverse:credential:body uri;
  • header: related to the submission context, under the dataverse:credential:header uri;

Here's an exhaustive context information I've identified so far:

  • dataverse:credential:header#height: the block height at which the transaction was executed;
  • dataverse:credential:header#timestamp: the block timestamp at which the transaction was executed;
  • dataverse:credential:header#tx_index: the block transaction's index containing the original SubmitClaims message, if any;
  • dataverse:credential:header#sender: the address who sent the transaction holding the SubmitClaims message;
  • dataverse:credential:body#type: the credential type;
  • dataverse:credential:body#issuer: the credential issuer;
  • dataverse:credential:body#validFrom: the credential validity start date;
  • dataverse:credential:body#validUntil: the credential validity end date;
  • dataverse:credential:body#subject: the credential subject;
  • dataverse:credential:body#claim: the credential claims;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant