Skip to content
Snippets Groups Projects
Verified Commit 537aac2e authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

WIP: use shard directly instead of "evaluations"

parent 7aca99fa
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ use tracing::{debug, info};
use crate::{algebra, error::KomodoError, fec};
use fri::{
frida::{nth_evaluations, FridaBuilder, FridaCommitment},
frida::{FridaBuilder, FridaCommitment},
rng::FriChallenger,
utils::{to_evaluations, HasherExt, MerkleProof},
};
......@@ -102,15 +102,11 @@ where
// TODO: compute true position
let position = 0;
// TODO: compute true evaluations
let evaluations: Vec<Vec<F>> = vec![];
assert!(block.proof.verify(
block.commit.tree_root(),
&[position],
&[H::hash_item(
&nth_evaluations(&evaluations, position).collect::<Vec<_>>()
)],
&[H::hash_item(&block.shard)],
domain_size,
));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment