Skip to content

Commit 2909c9d

Browse files
committed
Add some PartialEqs
1 parent 35773fe commit 2909c9d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

schnorr_fun/src/frost/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub type PartyIndex = Scalar<Public, NonZero>;
124124
///
125125
/// - `H`: hash type for challenges, and binding coefficient.
126126
/// - `NG`: nonce generator for FROST nonces (only used if you explicitly call nonce generation functions).
127-
#[derive(Clone)]
127+
#[derive(Clone, Debug, PartialEq)]
128128
pub struct Frost<H, NG> {
129129
/// The instance of the Schnorr signature scheme.
130130
pub schnorr: Schnorr<H, NG>,

schnorr_fun/src/schnorr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::{
2020
/// [_Fiat-Shamir_]: https://en.wikipedia.org/wiki/Fiat%E2%80%93Shamir_heuristic
2121
/// [`NonceGen<H>`]: crate::fun::hash::NonceGen
2222
/// [BIP-340]: https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki
23-
#[derive(Clone)]
23+
#[derive(Clone, Debug, PartialEq)]
2424
pub struct Schnorr<CH, NG = NoNonces> {
2525
/// The [`NonceGen`] used to generate nonces.
2626
///

secp256kfun/src/nonce.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl<R: RngCore> NonceRng for std::sync::Mutex<R> {
8585
/// [`ThreadRng`]: https://docs.rs/rand/latest/rand/rngs/struct.ThreadRng.html
8686
/// [`OsRng`]: rand_core::OsRng
8787
/// [`GlobalRng`]: crate::nonce::GlobalRng
88-
#[derive(Debug, Default, Clone)]
88+
#[derive(Debug, Default, Clone, PartialEq)]
8989
pub struct Synthetic<H, R> {
9090
rng: R,
9191
nonce_hash: H,
@@ -125,7 +125,7 @@ impl<H: Default, R: NonceRng> Synthetic<H, R> {
125125
/// ```
126126
///
127127
/// [`ThreadRng`]: https://docs.rs/rand/latest/rand/rngs/struct.ThreadRng.html
128-
#[derive(Debug, Default, Clone)]
128+
#[derive(Debug, Default, Clone, PartialEq)]
129129
pub struct GlobalRng<R> {
130130
// Using fn(R) ensures that it is sync even if R is not sync
131131
inner: PhantomData<fn(R)>,
@@ -145,7 +145,7 @@ pub struct GlobalRng<R> {
145145
/// let nonce_gen = Deterministic::<Sha256>::default().tag(b"BIP0340");
146146
/// ```
147147
/// [`Synthetic`]: crate::nonce::Synthetic
148-
#[derive(Clone, Debug, Default)]
148+
#[derive(Clone, Debug, Default, PartialEq)]
149149
pub struct Deterministic<H> {
150150
nonce_hash: H,
151151
}

0 commit comments

Comments
 (0)