pub struct AggregateVerificationKey<D: Clone + Digest + FixedOutput> { /* private fields */ }
Expand description
Stm aggregate key (batch compatible), which contains the merkle tree commitment and the total stake of the system. Batch Compat Merkle tree commitment includes the number of leaves in the tree in order to obtain batch path.
Implementations§
Source§impl<D: Digest + Clone + FixedOutput> AggregateVerificationKey<D>
impl<D: Digest + Clone + FixedOutput> AggregateVerificationKey<D>
pub fn get_mt_commitment(&self) -> MerkleTreeBatchCommitment<D>
pub fn get_total_stake(&self) -> Stake
Trait Implementations§
Source§impl<D: Clone + Clone + Digest + FixedOutput> Clone for AggregateVerificationKey<D>
impl<D: Clone + Clone + Digest + FixedOutput> Clone for AggregateVerificationKey<D>
Source§fn clone(&self) -> AggregateVerificationKey<D>
fn clone(&self) -> AggregateVerificationKey<D>
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<'de, D: Clone + Digest + FixedOutput> Deserialize<'de> for AggregateVerificationKey<D>where
MerkleBatchPath<D>: Deserialize<'de>,
impl<'de, D: Clone + Digest + FixedOutput> Deserialize<'de> for AggregateVerificationKey<D>where
MerkleBatchPath<D>: Deserialize<'de>,
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<D: Clone + Digest + FixedOutput> From<&ClosedKeyRegistration<D>> for AggregateVerificationKey<D>
impl<D: Clone + Digest + FixedOutput> From<&ClosedKeyRegistration<D>> for AggregateVerificationKey<D>
Source§fn from(reg: &ClosedKeyRegistration<D>) -> Self
fn from(reg: &ClosedKeyRegistration<D>) -> Self
Converts to this type from the input type.
Source§impl<D: Digest + Clone + FixedOutput> PartialEq for AggregateVerificationKey<D>
impl<D: Digest + Clone + FixedOutput> PartialEq for AggregateVerificationKey<D>
Source§impl<D: Clone + Digest + FixedOutput> Serialize for AggregateVerificationKey<D>where
MerkleBatchPath<D>: Serialize,
impl<D: Clone + Digest + FixedOutput> Serialize for AggregateVerificationKey<D>where
MerkleBatchPath<D>: Serialize,
impl<D: Digest + Clone + FixedOutput> Eq for AggregateVerificationKey<D>
Auto Trait Implementations§
impl<D> Freeze for AggregateVerificationKey<D>
impl<D> RefUnwindSafe for AggregateVerificationKey<D>where
D: RefUnwindSafe,
impl<D> Send for AggregateVerificationKey<D>where
D: Send,
impl<D> Sync for AggregateVerificationKey<D>where
D: Sync,
impl<D> Unpin for AggregateVerificationKey<D>where
D: Unpin,
impl<D> UnwindSafe for AggregateVerificationKey<D>where
D: UnwindSafe,
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