|
|
@ -20,7 +20,8 @@ const SIZE: usize = consts::SHA256_SIZE;
|
|
|
|
/// Represents a SHA256 hash
|
|
|
|
/// Represents a SHA256 hash
|
|
|
|
#[derive(Clone, Copy, Default, PartialEq, Eq, Hash, Debug)]
|
|
|
|
#[derive(Clone, Copy, Default, PartialEq, Eq, Hash, Debug)]
|
|
|
|
#[repr(C, packed)]
|
|
|
|
#[repr(C, packed)]
|
|
|
|
#[cfg_attr(feature="serde", derive(Serialize,Deserialize))]
|
|
|
|
#[cfg_attr(feature="serialise", derive(Serialize,Deserialize))]
|
|
|
|
|
|
|
|
|
|
|
|
pub struct Sha256Hash
|
|
|
|
pub struct Sha256Hash
|
|
|
|
{
|
|
|
|
{
|
|
|
|
hash: [u8; SIZE],
|
|
|
|
hash: [u8; SIZE],
|
|
|
|