Module plonk_wasm::arkworks
source · Expand description
Arkworks types This module contains wrapper types to Arkworks types. To use Arkwork types in OCaml, you have to convert to these types, and convert back from them to use them in Rust.
For example:
use marlin_plonk_bindings::arkworks::CamlBiginteger256;
use ark_ff::BigInteger256;
#[ocaml::func]
pub fn caml_add(x: CamlBigInteger256, y: CamlBigInteger256) -> CamlBigInteger256 {
let x: BigInteger256 = x.into();
let y: BigInteger256 = y.into();
(x + y).into()
}
Re-exports
pub use bigint_256::WasmBigInteger256;
pub use group_affine::WasmGPallas;
pub use group_affine::WasmGVesta;
pub use group_projective::WasmPallasGProjective;
pub use group_projective::WasmVestaGProjective;
pub use pasta_fp::WasmPastaFp;
pub use pasta_fq::WasmPastaFq;