pub struct DistanceProof {
pub challenge: DistanceChallenge,
pub proof_nodes: Vec<PeerId>,
pub signatures: Vec<Vec<u8>>,
pub response_time: Duration,
}
Expand description
Distance verification proof
Fields§
§challenge: DistanceChallenge
Original challenge
proof_nodes: Vec<PeerId>
Proof nodes that can verify distance
signatures: Vec<Vec<u8>>
Signatures from proof nodes
response_time: Duration
Response time (distance indicator)
Trait Implementations§
Source§impl Clone for DistanceProof
impl Clone for DistanceProof
Source§fn clone(&self) -> DistanceProof
fn clone(&self) -> DistanceProof
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DistanceProof
impl Debug for DistanceProof
Source§impl<'de> Deserialize<'de> for DistanceProof
impl<'de> Deserialize<'de> for DistanceProof
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DistanceProof
impl RefUnwindSafe for DistanceProof
impl Send for DistanceProof
impl Sync for DistanceProof
impl Unpin for DistanceProof
impl UnwindSafe for DistanceProof
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