Skip to content

Commit c82a270

Browse files
authored
chore: Add PartialEq and Eq to KeyId (#520)
1 parent 52e81dc commit c82a270

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

anchor/common/bls_lagrange/src/blsful.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use zeroize::Zeroizing;
1010

1111
use crate::Error;
1212

13-
#[derive(Debug, Clone)]
13+
#[derive(Debug, Clone, PartialEq, Eq)]
1414
pub struct KeyId {
1515
num: u64,
1616
identifier: IdentifierPrimeField<Scalar>,

anchor/common/bls_lagrange/src/blst.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use rand::prelude::*;
1212

1313
use crate::{Error, random_key};
1414

15-
#[derive(Debug, Clone)]
15+
#[derive(Debug, Clone, PartialEq, Eq)]
1616
pub struct KeyId {
1717
num: u64,
1818
// note: while blst_scalar is also used for bls keys, the scalars used in key ids are NOT

0 commit comments

Comments
 (0)