From ea46d0bb7f5ca9fd4c453df548d81d82ba696df7 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Mon, 11 Dec 2023 11:31:36 -0700 Subject: [PATCH] add mpack proof func - split mpack --- src/storage_proofs.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/storage_proofs.rs b/src/storage_proofs.rs index cb06ff6..3c93f03 100644 --- a/src/storage_proofs.rs +++ b/src/storage_proofs.rs @@ -109,9 +109,13 @@ impl StorageProofs { let inputs = circuit .get_public_inputs() .ok_or("Unable to get public inputs!")?; - let proof = prove(circuit, &self.params, &mut self.rng).map_err(|e| e.to_string())?; + let proof = + prove(circuit, &self.params, &mut self.rng) + .map_err(|e| e.to_string())?; - proof.serialize(proof_bytes).map_err(|e| e.to_string())?; + proof + .serialize(proof_bytes) + .map_err(|e| e.to_string())?; inputs .serialize(public_inputs_bytes) .map_err(|e| e.to_string())?;