mirror of
https://github.com/personaelabs/spartan-ecdsa.git
synced 2026-01-10 14:38:04 -05:00
Small fix
This commit is contained in:
@@ -32,9 +32,9 @@ pub fn prove_poseidon(circuit: &[u8], vars: &[u8]) -> Result<JsValue, JsValue> {
|
||||
let assignment = Assignment::new(&witness_bytes).unwrap();
|
||||
web_sys::console::time_end_with_label("load witness");
|
||||
|
||||
web_sys::console::time_with_label("parse input");
|
||||
web_sys::console::time_with_label("load circuit");
|
||||
let circuit: Instance = bincode::deserialize(&circuit).unwrap();
|
||||
web_sys::console::time_end_with_label("parse input");
|
||||
web_sys::console::time_end_with_label("load circuit");
|
||||
|
||||
let num_cons = circuit.inst.get_num_cons();
|
||||
let num_vars = circuit.inst.get_num_vars();
|
||||
@@ -51,9 +51,6 @@ pub fn prove_poseidon(circuit: &[u8], vars: &[u8]) -> Result<JsValue, JsValue> {
|
||||
|
||||
let mut prover_transcript = Transcript::new(b"nizk_example");
|
||||
|
||||
let result = circuit.is_sat(&assignment, &public_input).is_ok();
|
||||
web_sys::console::log_1(&format!("is_sat: {}", result).into());
|
||||
|
||||
web_sys::console::time_with_label("prove");
|
||||
// produce a proof of satisfiability
|
||||
let proof = NIZK::prove(
|
||||
|
||||
Reference in New Issue
Block a user