Skip to content

Commit

Permalink
wip: impl Prove for Vector
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Mar 29, 2024
1 parent 19cfd25 commit 5598936
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ssz-rs/src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::{
merkleization::{
elements_to_chunks, get_power_of_two_ceil, merkleize, pack, GeneralizedIndex,
GeneralizedIndexable, HashTreeRoot, MerkleizationError, Node, Path, PathElement,
ProofAndWitness, Prove,
},
ser::{Serialize, SerializeError, Serializer},
Serializable, SimpleSerialize,
Expand Down Expand Up @@ -278,6 +279,15 @@ where
}
}

impl<T, const N: usize> Prove for Vector<T, N>
where
T: SimpleSerialize + GeneralizedIndexable + Prove,
{
fn prove(&mut self, index: GeneralizedIndex) -> Result<ProofAndWitness, MerkleizationError> {
//
}
}

#[cfg(feature = "serde")]
struct VectorVisitor<T: Serializable>(PhantomData<Vec<T>>);

Expand Down

0 comments on commit 5598936

Please sign in to comment.