We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd24f57 + 2a07e99 commit 9348803Copy full SHA for 9348803
plonk-napi/src/poseidon.rs
@@ -9,6 +9,8 @@ use wasm_types::{FlatVector, FlatVectorElem};
9
10
#[napi]
11
pub fn caml_pasta_fp_poseidon_block_cipher(state: Uint8Array) -> Result<Uint8Array> {
12
+ println!("from native rust");
13
+
14
let mut state_vec: Vec<Fp> = FlatVector::<WasmPastaFp>::from_bytes(state.to_vec())
15
.into_iter()
16
.map(Into::into)
@@ -32,6 +34,8 @@ pub fn caml_pasta_fp_poseidon_block_cipher(state: Uint8Array) -> Result<Uint8Arr
32
34
33
35
36
pub fn caml_pasta_fq_poseidon_block_cipher(state: Uint8Array) -> Result<Uint8Array> {
37
38
39
let mut state_vec: Vec<Fq> = FlatVector::<WasmPastaFq>::from_bytes(state.to_vec())
40
41
0 commit comments