-
Notifications
You must be signed in to change notification settings - Fork 6
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
Added methods to store and fetch by identity #165
base: main
Are you sure you want to change the base?
Conversation
We want to be able to store root Cid of encrypted hamt tree from WNFS in the backend. But it should be retrievable only with identiy (which is something we can recreate). We added two methods for store and get. One receives the encrypted versio of root Cid and returns the encrypted version and JAVA code must handle the encryption and decryption, and one receives a key and handles the decryption and encryption itself
we need to also provide appId on top of identity as the WNFS tree for each appID is different
A better approach might be having a link system like identity -> AppID -> encryptedAPPRootCID |
First try at 1- using current Put and Get 2- store it in an interconected link system, which right now is like: `identity -> CID(appID -> encryptedRootCID)`
Although it seems we have an error on JAVA side: |
We probabely need to change IPNS to DNSLink
I think IPNI only supports valid CIDs and we cannot announce identity-CID pair to it nda later query CID by identity? |
That's right identity cids by definition contain the data they represent. |
We want to be able to store the root Cid of the encrypted hamt tree from WNFS in the backend. But it should be retrievable only with identity (which is something we can recreate) and app id (because each tree is unique for each app).
We added two methods for store and get. One receives the encrypted version of root Cid and returns the encrypted version and JAVA code must handle the encryption and decryption, and one receives an encryption key input as well and handles the decryption and encryption itself
Update 1: I tried to use the current Get and Put methods and also make it a link system like:
identity -> CID(appID -> encryptedRootCID)