plonk_neon/
lib.rs

1//! The `Marlin_plonk_stubs` crate exports some functionalities
2//! and structures from the following the Rust crates to OCaml:
3//!
4//! * [Marlin](https://github.com/o1-labs/marlin),
5//!   a PLONK implementation.
6//!
7use neon::{context::ModuleContext, result::NeonResult};
8
9/// Poseidon
10mod poseidon;
11
12#[neon::main]
13fn main(mut cx: ModuleContext) -> NeonResult<()> {
14    cx.export_function(
15        "caml_pasta_fp_poseidon_block_cipher",
16        poseidon::caml_pasta_fp_poseidon_block_cipher,
17    )?;
18    cx.export_function(
19        "caml_pasta_fq_poseidon_block_cipher",
20        poseidon::caml_pasta_fq_poseidon_block_cipher,
21    )?;
22
23    Ok(())
24}