mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-04-18 09:33:34 +00:00
fix
This commit is contained in:
parent
880bc87bb1
commit
d239d3ffb5
@ -68,8 +68,12 @@ fn main() -> Result<()> {
|
|||||||
let data = builder.build::<C>();
|
let data = builder.build::<C>();
|
||||||
let proof = data.prove(pw)?;
|
let proof = data.prove(pw)?;
|
||||||
|
|
||||||
println!("Random field element: {}", proof.public_inputs[1]);
|
let x_actual = proof.public_inputs[0];
|
||||||
println!("Its square root: {}", proof.public_inputs[0]);
|
let x_squared_actual = proof.public_inputs[1];
|
||||||
|
println!("Random field element: {}", x_squared_actual);
|
||||||
|
println!("Its square root: {}", x_actual);
|
||||||
|
|
||||||
|
assert!(x_actual * x_actual == x_squared_actual);
|
||||||
|
|
||||||
data.verify(proof)
|
data.verify(proof)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user