pub struct SessionProof {
pub session_id: [u8; 32],
pub merkle_root: [u8; 32],
pub proof_count: u64,
pub started_at: u64,
pub ended_at: u64,
pub rules_hash: [u8; 32],
pub signature: Vec<u8>,
}Expand description
Session proof - single hash proving entire session
Fields§
§session_id: [u8; 32]Session ID
merkle_root: [u8; 32]Merkle root of all proofs
proof_count: u64Number of proofs in session
started_at: u64Session time range
ended_at: u64§rules_hash: [u8; 32]Rules hash used for session
signature: Vec<u8>Signature over session proof
Trait Implementations§
Source§impl Clone for SessionProof
impl Clone for SessionProof
Source§fn clone(&self) -> SessionProof
fn clone(&self) -> SessionProof
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionProof
impl Debug for SessionProof
Source§impl<'de> Deserialize<'de> for SessionProof
impl<'de> Deserialize<'de> for SessionProof
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 SessionProof
impl RefUnwindSafe for SessionProof
impl Send for SessionProof
impl Sync for SessionProof
impl Unpin for SessionProof
impl UnwindSafe for SessionProof
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