We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 002102b commit 93116ecCopy full SHA for 93116ec
1 file changed
aggregation_mode/src/aggregators/mod.rs
@@ -125,6 +125,16 @@ impl AlignedProof {
125
}
126
127
128
+/// Merkle tree commitment for aligned proofs.
129
+///
130
+/// Each leaf node (representing a proof) is committed by hashing:
131
+/// — The program id: the verification key hash in SP1 or the image ID in RISC Zero
132
+/// — Public inputs.
133
134
+/// Intermediate nodes in the tree are formed by computing the keccak pairs of child nodes.
135
136
+/// Note: this commitment scheme is repeated in both risc0 and sp1 aggregation programs.
137
+/// Therefore, any change to the commitment scheme must be mirrored there.
138
impl IsMerkleTreeBackend for AlignedProof {
139
type Data = AlignedProof;
140
type Node = [u8; 32];
0 commit comments