pub struct TxHashSet {
pub output_root_hash: String,
pub range_proof_root_hash: String,
pub kernel_root_hash: String,
}
Expand description
TxHashSet
Fields§
§output_root_hash: String
Output Root Hash
range_proof_root_hash: String
§kernel_root_hash: String
Implementations§
Source§impl TxHashSet
impl TxHashSet
Sourcepub fn from_head(chain: Arc<Chain>) -> Result<TxHashSet, Error>
pub fn from_head(chain: Arc<Chain>) -> Result<TxHashSet, Error>
A TxHashSet in the context of the api is simply the collection of PMMR roots. We can obtain these in a lightweight way by reading them from the head of the chain. We will have validated the roots on this header against the roots of the txhashset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TxHashSet
impl<'de> Deserialize<'de> for TxHashSet
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 TxHashSet
impl RefUnwindSafe for TxHashSet
impl Send for TxHashSet
impl Sync for TxHashSet
impl Unpin for TxHashSet
impl UnwindSafe for TxHashSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.