Skip to content

Commit

Permalink
zcash_address: impl {Clone, Copy, Eq, Hash} for ZcashAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Mar 12, 2021
1 parent 2801071 commit b1629ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/zcash_address/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ pub use convert::{FromAddress, UnsupportedAddress};
pub use encoding::ParseError;

/// A Zcash address.
#[derive(Debug, PartialEq)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub struct ZcashAddress {
net: Network,
kind: AddressKind,
}

/// The Zcash network for which an address is encoded.
#[derive(Debug, PartialEq)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum Network {
/// Zcash Mainnet.
Main,
Expand All @@ -27,7 +27,7 @@ pub enum Network {
}

/// Known kinds of Zcash addresses.
#[derive(Debug, PartialEq)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
enum AddressKind {
Sprout(kind::sprout::Data),
Sapling(kind::sapling::Data),
Expand Down

0 comments on commit b1629ce

Please sign in to comment.