You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let proof_words = bytemuck::cast_slice::<u8,u64>(&proof.proof);
28
+
29
+
// Reading public inputs as done in the verify of the lib at https://github.com/0xPolygonHermez/zisk/blob/maint/checkouts/pil2-proofman-3d49384e4e2f0af7/78497c5/verifier/src/verifier.rs#L66-L73
30
+
letmut p = 0;
31
+
let n_public_inputs = proof_words[p];
32
+
p += 1;
33
+
34
+
// we should end up with a vector of length 4 as the public input is a 256 bits digest
35
+
letmut publics = Vec::new();
36
+
for _ in0..n_public_inputs {
37
+
publics.push(proof_words[p]);
38
+
p += 1;
39
+
}
40
+
41
+
let merkle_root_words:[u64;4] = publics
27
42
.try_into()
28
43
.expect("Public input to be the hash of the chunk tree");
0 commit comments