Skip to content

Commit

Permalink
add comment to verify function
Browse files Browse the repository at this point in the history
  • Loading branch information
TAdev0 committed Oct 14, 2024
1 parent c0e4469 commit 7790977
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/utreexo/src/stump/accumulator.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ use crate::stump::proof::{UtreexoBatchProof, UtreexoBatchProofTrait};

#[generate_trait]
pub impl StumpUtreexoAccumulatorImpl of StumpUtreexoAccumulator {
/// Adds multiple items to the accumulator
/// Adds multiple items to the accumulator.
fn add(self: @UtreexoStumpState, hashes: Span<felt252>) -> UtreexoStumpState {
// TODO: check if vanilla implementation is compatible with rustreexo, add tests
// https://github.com/mit-dci/rustreexo/blob/6a8fe53fa545df8f1a30733fa6ca9f7b0077d051/src/accumulator/stump.rs#L252
*self
}

/// Verifies that one or multiple leaves hashes are part of the utreexo forest given a proof.
fn verify(
self: @UtreexoStumpState, proof: @UtreexoBatchProof, del_hashes: Span<felt252>
) -> Result<(), ByteArray> {
Expand Down

0 comments on commit 7790977

Please sign in to comment.