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>
👎Deprecated since 0.5.0: Use
get_merkle_tree_batch_commitment insteadpub 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 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<D: Debug + Clone + Digest + FixedOutput> Debug for AggregateVerificationKey<D>
impl<D: Debug + Clone + Digest + FixedOutput> Debug for AggregateVerificationKey<D>
Source§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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.