Skip to content

Commit

Permalink
derive PartialEq + Eq for InclusionProof
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Aug 18, 2023
1 parent 1fa258f commit 58f6926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inclusion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use serde::{Deserialize as SerdeDeserialize, Serialize as SerdeSerialize};
/// A proof that a value appears in a [`CtMerkleTree`]. The byte representation of a
/// [`InclusionProof`] is identical to that of `PATH(m, D[n])` described in RFC 6962 §2.1.1.
#[cfg_attr(feature = "serde", derive(SerdeSerialize, SerdeDeserialize))]
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct InclusionProof<H: Digest> {
proof: Vec<u8>,
_marker: PhantomData<H>,
Expand Down

0 comments on commit 58f6926

Please sign in to comment.