File tree Expand file tree Collapse file tree 3 files changed +5
-288
lines changed
Expand file tree Collapse file tree 3 files changed +5
-288
lines changed Original file line number Diff line number Diff line change 11pub ( crate ) mod gate_vector;
22pub ( crate ) mod poly_comm;
33pub ( crate ) mod poseidon;
4- pub ( crate ) mod srs;
54pub ( crate ) mod wasm_vector;
65pub ( crate ) mod wrappers;
76
8- pub use poseidon:: { caml_pasta_fp_poseidon_block_cipher, caml_pasta_fq_poseidon_block_cipher} ;
9-
107pub 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 } ;
129pub use wasm_vector:: { fp:: WasmVecVecFp , fq:: WasmVecVecFq } ;
1310pub use wrappers:: group:: { WasmGPallas , WasmGVesta } ;
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ use wasm_types::{FlatVector, FlatVectorElem};
99
1010#[ napi]
1111pub 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]
3436pub 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)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments