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

statement: Add selective data keypairs as storage #487

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

vatsa287
Copy link
Member

@vatsa287 vatsa287 commented Jul 15, 2024

This PR allows to have selective data as storage in the chain-state.
This feature allows to have individual fields of digest in a document, with a maximum of 25 k:v's.
The key is custom, and value must be a digest of 32 length.

This implementation allows to check for availability of individual fields of a document has been anchored or not instead of whole document itself. This is crucial when verification is done using a non-digital copy as a reference digest.

Updates:

  • register: Optional argument selective_data to add.
  • update: Optional argument selective_data to update existing selective_data.
  • update_selective_data: Update just the selective_data.

  • remove_selective_data: Remove existing selective_data to free up space entry usage.

runtimes/braid/src/lib.rs Outdated Show resolved Hide resolved
runtimes/weave/src/lib.rs Outdated Show resolved Hide resolved
@vatsa287
Copy link
Member Author

PTAL @smohan-dw @amarts @NiranjanAP

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.

2 participants