Browse Source

Merge pull request #181 from 0xPolygonMiden/tohrnii-blake3-ord

feat: derive ord and partialord for blake3digest
al-gkr-basic-workflow
Bobbin Threadbare 1 year ago
committed by GitHub
parent
commit
854ade1bfc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/hash/blake/mod.rs

+ 1
- 1
src/hash/blake/mod.rs

@ -26,7 +26,7 @@ const DIGEST20_BYTES: usize = 20;
/// ///
/// Note: `N` can't be greater than `32` because [`Digest::as_bytes`] currently supports only 32 /// Note: `N` can't be greater than `32` because [`Digest::as_bytes`] currently supports only 32
/// bytes. /// bytes.
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
#[cfg_attr(feature = "serde", serde(into = "String", try_from = "&str"))] #[cfg_attr(feature = "serde", serde(into = "String", try_from = "&str"))]
pub struct Blake3Digest<const N: usize>([u8; N]); pub struct Blake3Digest<const N: usize>([u8; N]);

Loading…
Cancel
Save