arnaucube
arnaucube/miden-cryptoPublic Self-hosted repository
Merge pull request #181 from 0xPolygonMiden/tohrnii-blake3-ord

feat: derive ord and partialord for blake3digest
Bobbin Threadbare 43513081+bobbinth@users.noreply.github.com
Fri, 11 Aug 2023 13:42:09 -0700
commit

854ade1bfc2eee452eec218dfa4c8308ab369a02

parent

d9e85230a65268d2a408fc72bdf25677e7032d09

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/hash/blake/mod.rs → src/hash/blake/mod.rs

@@ -26,7 +26,7 @@ /// N-bytes output of a blake3 function.

/// /// Note: `N` can't be greater than `32` because [`Digest::as_bytes`] currently supports only 32 /// 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", serde(into = "String", try_from = "&str"))] pub struct Blake3Digest<const N: usize>([u8; N]);