pub struct BankHashProof {
pub parent_bankhash: Hash,
pub blockhash: Hash,
/* private fields */
}Expand description
The proof for a bankhash is simply its components.
It’s not very interesting on its own, but when combined with crate::accounts_delta_hash
it can be used to prove the state of accounts at a particular slot.
Fields§
§parent_bankhash: HashThe bankhash of the parent block. NOT the blockhash.
blockhash: HashThe Proof-of-History tick after interleaving all the transactions in the block. NOT related to the bankhash.
Implementations§
Trait Implementations§
Source§impl Clone for BankHashProof
impl Clone for BankHashProof
Source§fn clone(&self) -> BankHashProof
fn clone(&self) -> BankHashProof
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 BankHashProof
impl Debug for BankHashProof
Source§impl<'de> Deserialize<'de> for BankHashProof
impl<'de> Deserialize<'de> for BankHashProof
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
Source§impl PartialEq for BankHashProof
impl PartialEq for BankHashProof
Source§impl Serialize for BankHashProof
impl Serialize for BankHashProof
impl Copy for BankHashProof
impl Eq for BankHashProof
impl StructuralPartialEq for BankHashProof
Auto Trait Implementations§
impl Freeze for BankHashProof
impl RefUnwindSafe for BankHashProof
impl Send for BankHashProof
impl Sync for BankHashProof
impl Unpin for BankHashProof
impl UnwindSafe for BankHashProof
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more