Skip to content

Commit

Permalink
Merge pull request #134 from nuttycom/nullifier_ord
Browse files Browse the repository at this point in the history
Derive `{PartialOrd, Ord}` for `note::Nullifier`
  • Loading branch information
nuttycom authored Mar 20, 2024
2 parents 22412ae + 8275343 commit 54fc7d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this library adheres to Rust's notion of

## [Unreleased]

### Added
- `impl {PartialOrd, Ord} for sapling_crypto::note::Nullifier`

## [0.1.2] - 2024-03-08
### Added
- `sapling_crypto::zip32::IncomingViewingKey`
Expand Down
2 changes: 1 addition & 1 deletion src/note/nullifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{
};

/// Typesafe wrapper for nullifier values.
#[derive(Copy, Clone, PartialEq, Eq)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct Nullifier(pub [u8; 32]);

impl fmt::Debug for Nullifier {
Expand Down

0 comments on commit 54fc7d3

Please sign in to comment.