pub enum StmAggrSig<D: Clone + Digest + FixedOutput + Send + Sync> {
    Future,
    Concatenation(ConcatenationProof<D>),
}Expand description
An STM aggregate signature.
Variants§
Implementations§
Source§impl<D: Clone + Digest + FixedOutput + Send + Sync> AggregateSignature<D>
 
impl<D: Clone + Digest + FixedOutput + Send + Sync> AggregateSignature<D>
Sourcepub fn verify(
    &self,
    msg: &[u8],
    avk: &AggregateVerificationKey<D>,
    parameters: &Parameters,
) -> Result<(), StmAggregateSignatureError<D>>
 
pub fn verify( &self, msg: &[u8], avk: &AggregateVerificationKey<D>, parameters: &Parameters, ) -> Result<(), StmAggregateSignatureError<D>>
Verify an aggregate signature
Sourcepub fn batch_verify(
    stm_signatures: &[Self],
    msgs: &[Vec<u8>],
    avks: &[AggregateVerificationKey<D>],
    parameters: &[Parameters],
) -> Result<(), StmAggregateSignatureError<D>>
 
pub fn batch_verify( stm_signatures: &[Self], msgs: &[Vec<u8>], avks: &[AggregateVerificationKey<D>], parameters: &[Parameters], ) -> Result<(), StmAggregateSignatureError<D>>
Batch verify a set of aggregate signatures
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, StmAggregateSignatureError<D>>
 
pub fn from_bytes(bytes: &[u8]) -> Result<Self, StmAggregateSignatureError<D>>
Extract an aggregate signature from a byte slice.
Sourcepub fn to_concatenation_proof(&self) -> Option<&ConcatenationProof<D>>
 
pub fn to_concatenation_proof(&self) -> Option<&ConcatenationProof<D>>
If the aggregate signature is a concatenation proof, return it.
Trait Implementations§
Source§impl<D: Clone + Clone + Digest + FixedOutput + Send + Sync> Clone for AggregateSignature<D>
 
impl<D: Clone + Clone + Digest + FixedOutput + Send + Sync> Clone for AggregateSignature<D>
Source§fn clone(&self) -> AggregateSignature<D>
 
fn clone(&self) -> AggregateSignature<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<'de, D: Clone + Digest + FixedOutput + Send + Sync> Deserialize<'de> for AggregateSignature<D>where
    MerkleBatchPath<D>: Deserialize<'de>,
 
impl<'de, D: Clone + Digest + FixedOutput + Send + Sync> Deserialize<'de> for AggregateSignature<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 + Send + Sync> From<&AggregateSignature<D>> for AggregateSignatureType
 
impl<D: Clone + Digest + FixedOutput + Send + Sync> From<&AggregateSignature<D>> for AggregateSignatureType
Source§fn from(aggr_sig: &AggregateSignature<D>) -> Self
 
fn from(aggr_sig: &AggregateSignature<D>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<D> Freeze for AggregateSignature<D>
impl<D> RefUnwindSafe for AggregateSignature<D>where
    D: RefUnwindSafe,
impl<D> Send for AggregateSignature<D>
impl<D> Sync for AggregateSignature<D>
impl<D> Unpin for AggregateSignature<D>where
    D: Unpin,
impl<D> UnwindSafe for AggregateSignature<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