Stream: warg

Topic: inclusion proof in client


view this post on Zulip Daniel Macovei (Apr 04 2023 at 19:08):

So at this point I'm successfully performing validations from a wasm component compiled from the protocol crate. Was looking at doing inclusion proofs as well, which are in the client crate. Would there be downsides to moving some of that logic out of the client crate?

view this post on Zulip Daniel Macovei (Apr 04 2023 at 19:11):

caveat related to validations working, I'm not sure if the issue is me, jco, cargo-component, or wit-bindgen but there is one value in the generated js bindings that I have to hardcode, (a string length specifically) because for some reason it has a different value on the guest side otherwise, but other than that, validations are working when passing logs from the browser. Hope to figure that out soon.

view this post on Zulip Robin Brown (Apr 05 2023 at 17:22):

warg-protocol already pulls in warg-transparencyso your wrapper crate should be able to also perform any operations on proofs/proof bundles that you need. I think it's fine to call the proof functions from your wrapper and also in the client.


Last updated: Nov 22 2024 at 17:03 UTC