Add *Ord instances to VerificationKeyBytes

This commit is contained in:
Alexis Sellier 2020-09-14 19:21:05 +02:00 committed by Henry de Valence
parent 2808cbd188
commit a03df3776f
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ use crate::{Error, Signature};
/// VerificationKey::try_from(vk_bytes)
/// .and_then(|vk| vk.verify(&sig, msg));
/// ```
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct VerificationKeyBytes(pub(crate) [u8; 32]);