Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Marek <[email protected]>
  • Loading branch information
arya2 and upbqdn authored Jan 26, 2024
1 parent 297576f commit fd772f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zebra-chain/src/primitives/viewing_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ mod tests;

const KEY_HASH_BYTE_SIZE: usize = 32;

#[derive(Debug, Clone)]
/// A Zcash Sapling or Orchard viewing key
// TODO: Add Orchard types and any other Sapling key types
#[derive(Debug, Clone)]
pub enum ViewingKey {
/// An incoming viewing key for Sapling
SaplingIvk(Box<SaplingIvk>),
Expand Down Expand Up @@ -52,8 +52,8 @@ impl From<DiversifiableFullViewingKey> for ViewingKey {
}
}

#[derive(Debug, PartialOrd, Ord, PartialEq, Eq)]
/// The hash of a viewing key for use as an identifier and for authorizing remote access
#[derive(Debug, PartialOrd, Ord, PartialEq, Eq)]
pub struct KeyHash([u8; KEY_HASH_BYTE_SIZE]);

impl From<&ViewingKey> for KeyHash {
Expand Down

0 comments on commit fd772f2

Please sign in to comment.