Skip to content

Commit a726918

Browse files
committed
Merge branch 'native/napi-polycomm' into native/napi-gatevector
2 parents 5f5c545 + e913408 commit a726918

File tree

3 files changed

+5
-288
lines changed

3 files changed

+5
-288
lines changed

plonk-napi/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
pub(crate) mod gate_vector;
22
pub(crate) mod poly_comm;
33
pub(crate) mod poseidon;
4-
pub(crate) mod srs;
54
pub(crate) mod wasm_vector;
65
pub(crate) mod wrappers;
76

8-
pub use poseidon::{caml_pasta_fp_poseidon_block_cipher, caml_pasta_fq_poseidon_block_cipher};
9-
107
pub use poly_comm::{pallas::WasmFqPolyComm, vesta::WasmFpPolyComm};
11-
pub use srs::{fp::WasmFpSrs, fq::WasmFqSrs};
8+
pub use poseidon::{caml_pasta_fp_poseidon_block_cipher, caml_pasta_fq_poseidon_block_cipher};
129
pub use wasm_vector::{fp::WasmVecVecFp, fq::WasmVecVecFq};
1310
pub use wrappers::group::{WasmGPallas, WasmGVesta};

plonk-napi/src/poseidon.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ use wasm_types::{FlatVector, FlatVectorElem};
99

1010
#[napi]
1111
pub fn caml_pasta_fp_poseidon_block_cipher(state: Uint8Array) -> Result<Uint8Array> {
12+
println!("from native rust");
13+
1214
let mut state_vec: Vec<Fp> = FlatVector::<WasmPastaFp>::from_bytes(state.to_vec())
1315
.into_iter()
1416
.map(Into::into)
@@ -32,6 +34,8 @@ pub fn caml_pasta_fp_poseidon_block_cipher(state: Uint8Array) -> Result<Uint8Arr
3234

3335
#[napi]
3436
pub fn caml_pasta_fq_poseidon_block_cipher(state: Uint8Array) -> Result<Uint8Array> {
37+
println!("from native rust");
38+
3539
let mut state_vec: Vec<Fq> = FlatVector::<WasmPastaFq>::from_bytes(state.to_vec())
3640
.into_iter()
3741
.map(Into::into)

plonk-napi/src/srs.rs

Lines changed: 0 additions & 284 deletions
This file was deleted.

0 commit comments

Comments
 (0)