Skip to content

Commit

Permalink
wasm variable rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Jan 12, 2025
1 parent 3ea9c51 commit 7b1b656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wasm_bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ pub fn verify_proof(stark_proof: JsValue) -> Result<JsValue, JsError> {

// Get security bits and verify
let security_bits = stark_proof.config.security_bits();
let (program_hash, output_hash) = stark_proof
let (program_hash, output) = stark_proof
.verify::<Layout>(security_bits)
.map_err(|e| JsError::new(&format!("Proof verification failed: {}", e)))?;

// Serialize result to JsValue
let result = serde_json::to_value(json!({
"program_hash": program_hash,
"output_hash": output_hash,
"output": output,
}))
.map_err(|e| {
JsError::new(&format!("Failed to serialize verification result to JSON: {}", e))
Expand Down

0 comments on commit 7b1b656

Please sign in to comment.