pub struct StateProof {
pub sig_commit: Vec<u8>,
pub signed_weight: u64,
pub sig_proofs: MerkleArrayProof,
pub part_proofs: MerkleArrayProof,
pub merkle_signature_salt_version: u64,
pub reveals: BTreeMap<u64, Reveal>,
pub positions_to_reveal: Vec<u64>,
}
Fields§
§sig_commit: Vec<u8>
§signed_weight: u64
§sig_proofs: MerkleArrayProof
§part_proofs: MerkleArrayProof
§merkle_signature_salt_version: u64
§reveals: BTreeMap<u64, Reveal>
A sparse map from the position being revealed to the corresponding elements from the sigs and participants arrays.
positions_to_reveal: Vec<u64>
Trait Implementations§
Source§impl Clone for StateProof
impl Clone for StateProof
Source§fn clone(&self) -> StateProof
fn clone(&self) -> StateProof
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 StateProof
impl Debug for StateProof
Source§impl<'de> Deserialize<'de> for StateProof
impl<'de> Deserialize<'de> for StateProof
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 StateProof
impl PartialEq for StateProof
Source§impl Serialize for StateProof
impl Serialize for StateProof
impl StructuralPartialEq for StateProof
Auto Trait Implementations§
impl Freeze for StateProof
impl RefUnwindSafe for StateProof
impl Send for StateProof
impl Sync for StateProof
impl Unpin for StateProof
impl UnwindSafe for StateProof
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