Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit 8b489da

Browse files
committed
add methods for da-avail
1 parent ad0828d commit 8b489da

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

aggregator/src/blob_consistency/avail.rs

+10
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,13 @@ pub struct AssignedBarycentricEvaluationConfig {
9898
/// 32 Assigned cells representing the LE-bytes of evaluation y.
9999
pub(crate) y_le: Vec<AssignedValue<Fr>>,
100100
}
101+
102+
impl AssignedBarycentricEvaluationConfig {
103+
pub fn blob_crts(&self) -> &[CRTInteger<Fr>] {
104+
&self.barycentric_assignments[0..BLOB_WIDTH]
105+
}
106+
107+
pub fn challenge_digest(&self) -> &CRTInteger<Fr> {
108+
&self.barycentric_assignments[BLOB_WIDTH]
109+
}
110+
}

0 commit comments

Comments
 (0)