pub struct PotOProof {
pub challenge_id: String,
pub challenge_hash: String,
pub tensor_result_hash: String,
pub mml_score: f64,
pub path_signature: String,
pub path_distance: u32,
pub computation_nonce: u64,
pub computation_hash: String,
pub miner_pubkey: String,
pub timestamp: DateTime<Utc>,
}Expand description
The full PoT-O proof submitted by a miner.
Fields§
§challenge_id: String§challenge_hash: String§tensor_result_hash: String§mml_score: f64§path_signature: String§path_distance: u32§computation_nonce: u64§computation_hash: String§miner_pubkey: String§timestamp: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for PotOProof
impl<'de> Deserialize<'de> for PotOProof
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PotOProof, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PotOProof, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PotOProof
impl Serialize for PotOProof
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PotOProof
impl RefUnwindSafe for PotOProof
impl Send for PotOProof
impl Sync for PotOProof
impl Unpin for PotOProof
impl UnsafeUnpin for PotOProof
impl UnwindSafe for PotOProof
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more