pub struct GlobalCommitment {
pub ty: GlobalStateType,
pub state: RevealedData,
}Fields§
§ty: GlobalStateType§state: RevealedDataTrait Implementations§
Source§impl Clone for GlobalCommitment
impl Clone for GlobalCommitment
Source§fn clone(&self) -> GlobalCommitment
fn clone(&self) -> GlobalCommitment
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 CommitEncode for GlobalCommitment
impl CommitEncode for GlobalCommitment
Source§type CommitmentId = MerkleHash
type CommitmentId = MerkleHash
Type of the resulting commitment.
Source§fn commit_encode(&self, e: &mut CommitEngine)
fn commit_encode(&self, e: &mut CommitEngine)
Encodes the data for the commitment by writing them directly into a
std::io::Write writer instanceSource§impl Debug for GlobalCommitment
impl Debug for GlobalCommitment
Source§impl Hash for GlobalCommitment
impl Hash for GlobalCommitment
Source§impl PartialEq for GlobalCommitment
impl PartialEq for GlobalCommitment
impl Eq for GlobalCommitment
impl StructuralPartialEq for GlobalCommitment
Auto Trait Implementations§
impl Freeze for GlobalCommitment
impl RefUnwindSafe for GlobalCommitment
impl Send for GlobalCommitment
impl Sync for GlobalCommitment
impl Unpin for GlobalCommitment
impl UnwindSafe for GlobalCommitment
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<T> CommitId for Twhere
T: CommitEncode,
impl<T> CommitId for Twhere
T: CommitEncode,
fn commit(&self) -> CommitEngine
Source§fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
Performs commitment to client-side-validated data
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.