Made nonce & result public

This commit is contained in:
Robert Kornacki 2019-07-22 16:01:38 -04:00
parent 1172b197f7
commit fc2d9a8607

View file

@ -7,8 +7,8 @@ const SALT: &str = "79ziepia7vhjgviiwjhnend3ofjqocsi2winc4ptqhmkvcajihywxcizewvc
/// Proof of Work over concrete type T. T can be any type that implements serde::Serialize. /// Proof of Work over concrete type T. T can be any type that implements serde::Serialize.
#[derive(Serialize, Deserialize, PartialEq, Clone, Copy, Debug)] #[derive(Serialize, Deserialize, PartialEq, Clone, Copy, Debug)]
pub struct PoW<T> { pub struct PoW<T> {
nonce: u128, pub nonce: u128,
result: u128, pub result: u128,
_spook: PhantomData<T>, _spook: PhantomData<T>,
} }