use super::*;
impl<N: Network> Eq for Identifier<N> {}
impl<N: Network> PartialEq for Identifier<N> {
fn eq(&self, other: &Self) -> bool {
*self.is_equal(other)
}
}
impl<N: Network> core::hash::Hash for Identifier<N> {
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
self.0.hash(state)
}
}
impl<N: Network> Equal<Self> for Identifier<N> {
type Output = Boolean<N>;
fn is_equal(&self, other: &Self) -> Self::Output {
Boolean::new(self.0 == other.0)
}
fn is_not_equal(&self, other: &Self) -> Self::Output {
Boolean::new(self.0 != other.0)
}
}