mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-08 16:53:07 +00:00
public input
This commit is contained in:
parent
849a89105a
commit
556507a9cd
@ -28,6 +28,7 @@ fn main() -> Result<()> {
|
|||||||
|
|
||||||
let fib_100 = F::from_canonical_u64(3736710860384812976);
|
let fib_100 = F::from_canonical_u64(3736710860384812976);
|
||||||
let fib_100_target = builder.constant(fib_100);
|
let fib_100_target = builder.constant(fib_100);
|
||||||
|
builder.register_public_input(fib_100_target);
|
||||||
|
|
||||||
builder.connect(fib_100_target, cur_target);
|
builder.connect(fib_100_target, cur_target);
|
||||||
|
|
||||||
@ -35,5 +36,7 @@ fn main() -> Result<()> {
|
|||||||
|
|
||||||
let proof = data.prove(pw)?;
|
let proof = data.prove(pw)?;
|
||||||
|
|
||||||
|
println!("Public inputs: {:?}", proof.clone().public_inputs);
|
||||||
|
|
||||||
verify(proof, &data.verifier_only, &data.common)
|
verify(proof, &data.verifier_only, &data.common)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user