Closed flyq closed 4 months ago
What are you trying to do with wasm specifically? Wouldn't you need access to the host code if your trying to generate proofs in wasm?
What are you trying to do with wasm specifically?
My current goal is to compile jolt's verify
function into wasm(on chain). verify
depends on jolt-core
. Tokio
and reqwest
in jolt-core
prevent verify
from being compiled into wasm.
Wouldn't you need access to the host code if your trying to generate proofs in wasm?
I generate the proof locally, and only verify
the proof in wasm. Yes, I don't need host-related code, so my dependencies are set up like this to avoid introducing host-related logic:
jolt-core = { git = "https://github.com/zkp-learning/jolt", default-features = false, features = [
"multicore",
] }
When I comiple the jolt-core to wasm:
tokio
andreqwest
are not friendly to wasm, and only the host mod depends on them. So I added host features to achieve conditional compilation