1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::hash::{H256, H512};
use codec::{Decode, Encode};

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};

use scale_info::TypeInfo;

#[derive(Encode, Decode, Debug, Clone, PartialEq, Eq, Default, TypeInfo)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
/// stores information needed to verify if
/// shuffling seed was generated properly
pub struct ShufflingSeed {
	/// shuffling seed for the previous block
	pub seed: H256,
	/// seed signature
	pub proof: H512,
}