Skip to content

Wasm bindings: Expose working with ForestProofs #293

@matheus23

Description

@matheus23

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions