Merge pull request #134 from nuttycom/nullifier_ord
Derive `{PartialOrd, Ord}` for `note::Nullifier`
This commit is contained in:
commit
54fc7d3d9c
|
@ -7,6 +7,9 @@ and this library adheres to Rust's notion of
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- `impl {PartialOrd, Ord} for sapling_crypto::note::Nullifier`
|
||||||
|
|
||||||
## [0.1.2] - 2024-03-08
|
## [0.1.2] - 2024-03-08
|
||||||
### Added
|
### Added
|
||||||
- `sapling_crypto::zip32::IncomingViewingKey`
|
- `sapling_crypto::zip32::IncomingViewingKey`
|
||||||
|
|
|
@ -10,7 +10,7 @@ use crate::{
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Typesafe wrapper for nullifier values.
|
/// Typesafe wrapper for nullifier values.
|
||||||
#[derive(Copy, Clone, PartialEq, Eq)]
|
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
|
||||||
pub struct Nullifier(pub [u8; 32]);
|
pub struct Nullifier(pub [u8; 32]);
|
||||||
|
|
||||||
impl fmt::Debug for Nullifier {
|
impl fmt::Debug for Nullifier {
|
||||||
|
|
Loading…
Reference in New Issue