Skip to content

Commit

Permalink
Add PartialEq and Eq to derive for IssueBundle and dependent types: I…
Browse files Browse the repository at this point in the history
…ssueAction, Signed, redpallas::Signature
  • Loading branch information
dmidem committed Oct 9, 2023
1 parent fb8dc40 commit 6e4216c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/issuance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use crate::{
use crate::supply_info::{AssetSupply, SupplyInfo};

/// A bundle of actions to be applied to the ledger.
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct IssueBundle<T: IssueAuth> {
/// The issuer key for the note being created.
ik: IssuanceValidatingKey,
Expand All @@ -39,7 +39,7 @@ pub struct IssueBundle<T: IssueAuth> {
/// An issue action applied to the global ledger.
///
/// Externally, this creates new zsa notes (adding a commitment to the global ledger).
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct IssueAction {
/// Asset description for verification.
asset_desc: String,
Expand Down Expand Up @@ -181,7 +181,7 @@ pub struct Prepared {
}

/// Marker for an authorized bundle.
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Signed {
signature: redpallas::Signature<SpendAuth>,
}
Expand Down
2 changes: 1 addition & 1 deletion src/primitives/redpallas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl<T: SigType> VerificationKey<T> {
}

/// A RedPallas signature.
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Signature<T: SigType>(reddsa::Signature<T>);

impl<T: SigType> From<[u8; 64]> for Signature<T> {
Expand Down

0 comments on commit 6e4216c

Please sign in to comment.