mirror of
https://github.com/logos-storage/logos-storage-proofs.git
synced 2026-01-03 22:13:11 +00:00
add mpack proof func - split mpack
This commit is contained in:
parent
bd44c7ba36
commit
ea46d0bb7f
@ -109,9 +109,13 @@ impl StorageProofs {
|
|||||||
let inputs = circuit
|
let inputs = circuit
|
||||||
.get_public_inputs()
|
.get_public_inputs()
|
||||||
.ok_or("Unable to 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
|
inputs
|
||||||
.serialize(public_inputs_bytes)
|
.serialize(public_inputs_bytes)
|
||||||
.map_err(|e| e.to_string())?;
|
.map_err(|e| e.to_string())?;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user