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

KVService: impl “revert” function #9

Open
nykma opened this issue Feb 6, 2023 · 1 comment
Open

KVService: impl “revert” function #9

nykma opened this issue Feb 6, 2023 · 1 comment

Comments

@nykma
Copy link
Member

nykma commented Feb 6, 2023

Description

KVService is a Zero-Trust Key-Value storage space for any user who has an elliptic curve-based asymmetric key pair (aka Avatar.

It is designed as a git-like patch chain, so there is a possibility to implement a revert function, which allows the user to undo a specific change he/she has accidentally made before.

  • This revert action should also be a link in the patch chain, and should be signed by the user’s Avatar.
  • When a revert is done, the entire KV state from the beginning of the KVChain should be updated.

Have a look at ProofService’s Proof Chain to help you understand this chain structure.

Expected outcomes

Modify model/kv_chains (the place to store the whole chain), model/kv (snapshot of a chain’s final status) and /controller to add a action field with possible values create and revert .

And correctly handles action: revert request.

Don’t forget to write unit tests.

Skills required

  • Rust
  • Basic knowledge of database

Mentor

Nyk Ma @nykma

Expected size of project

175h

Level

Easy

@nykma nykma converted this from a draft issue Feb 6, 2023
@BinaryHB0916 BinaryHB0916 changed the title KVService: impl “revert” function [GSoC] KVService: impl “revert” function Feb 9, 2023
@BinaryHB0916 BinaryHB0916 changed the title [GSoC] KVService: impl “revert” function [GSoC 2023] KVService: impl “revert” function Feb 9, 2023
@BinaryHB0916 BinaryHB0916 changed the title [GSoC 2023] KVService: impl “revert” function KVService: impl “revert” function Apr 15, 2023
@lyfer233
Copy link
Contributor

lyfer233 commented Oct 26, 2023

It looks like this workload isn't that great, so I'm hoping I can write code to finish this function within the next month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants