supranational / pasta-msm

High-performance Multi-scalar Multiplication for Pasta curves
Apache License 2.0
21 stars 11 forks source link

Is Wasm compilation supported? #1

Closed samuelburnham closed 1 year ago

samuelburnham commented 1 year ago

It looks like semolina only supports x86_64 and aarch64, but semolina usage is optional? I have had mixed results compiling pasta-msm/semolina to wasm32-unknown-unknown, and would like to clarify if it's a supported target. Thanks!

dot-asm commented 1 year ago

Yes, semolina is only supported on aarch64 and x86_64. Formally speaking semolina is a second-tier dependency. It merely "powers" sppark(*), which provides the actual interface to Nova. In other words, a more compelling question would be if sppark supports wasm. Well, not that it does. I mean the answer would be the same for both:-(

(*) One can instantiate Pasta curves in sppark through blst_t.hpp, semolina merely takes advantage of the Pasta moduli' bit structure.

samuelburnham commented 1 year ago

Makes sense, thanks!