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

Wasm bindings: Expose working with ForestProofs #293

Open
Tracked by #295
matheus23 opened this issue Jun 29, 2023 · 3 comments
Open
Tracked by #295

Wasm bindings: Expose working with ForestProofs #293

matheus23 opened this issue Jun 29, 2023 · 3 comments

Comments

@matheus23
Copy link
Member

The ForestProofs data structure currently has no equivalent piece in wnfs-wasm.

We can't expose it 1:1 as we do in rust, since we can't do traits in bindings.
My suggestion would be a wnfs-wasm PrivateForest struct that keeps track of whether to generate proofs or not, as well as exposing a function for retrieving all proofs so far & clearing them.
Verification may not be needed for now, since that's mostly going to happen on the server side. More important for the future when we do p2p write gossiping.

@expede
Copy link
Member

expede commented Jun 29, 2023

Say more! I'm guessing that this is as a solution to the problem with multiple RSA accumulator parents in one update?

@matheus23
Copy link
Member Author

matheus23 commented Jun 30, 2023

Say more about what specifically?

Yeah ForestProofs is the data structure that keeps all of the cryptographic accumulator proofs for forest labels and the mapping between the label and which base ("access level"/access path/parents) they're proven against.

@walkah
Copy link

walkah commented Jul 11, 2023

Need to confirm with server / oddsdk is this is required

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

No branches or pull requests

3 participants