Orchard: derive serde::{Deserialize, Serialize} by default on redpallas::VerificationKeyBytes
This commit is contained in:
parent
d11a4419ac
commit
94edc90975
|
@ -15,8 +15,7 @@ use super::{Error, SigType};
|
||||||
/// This is useful for representing a compressed verification key; the
|
/// This is useful for representing a compressed verification key; the
|
||||||
/// [`VerificationKey`] type in this library holds other decompressed state
|
/// [`VerificationKey`] type in this library holds other decompressed state
|
||||||
/// used in signature verification.
|
/// used in signature verification.
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
#[derive(Copy, Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
|
||||||
pub struct VerificationKeyBytes<T: SigType> {
|
pub struct VerificationKeyBytes<T: SigType> {
|
||||||
pub(crate) bytes: [u8; 32],
|
pub(crate) bytes: [u8; 32],
|
||||||
pub(crate) _marker: PhantomData<T>,
|
pub(crate) _marker: PhantomData<T>,
|
||||||
|
|
Loading…
Reference in New Issue