Struct txoo::Attestation
source · pub struct Attestation {
pub block_hash: BlockHash,
pub block_height: u32,
pub filter_header: FilterHeader,
pub time: u64,
}Expand description
An attestation by the oracle to a certain chain tip and spend filter at a certain time
Fields§
§block_hash: BlockHashThe block hash of the chain tip
block_height: u32The block height of the chain tip
filter_header: FilterHeaderThe filter header of the chain tip (hash of the previous header and the GCS filter)
time: u64The time the attestation was created, as seconds since the unix epoch
Implementations§
source§impl Attestation
impl Attestation
Trait Implementations§
source§impl Clone for Attestation
impl Clone for Attestation
source§fn clone(&self) -> Attestation
fn clone(&self) -> Attestation
Returns a copy 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 Attestation
impl Debug for Attestation
source§impl<'de> Deserialize<'de> for Attestation
impl<'de> Deserialize<'de> for Attestation
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