pub struct MultiMessageSignatureAggregatorAssumingPoP<E: EngineBLS> { /* private fields */ }
Expand description
ProofOfPossion trait which should be implemented by secret
Implementations§
Source§impl<E: EngineBLS> MultiMessageSignatureAggregatorAssumingPoP<E>
impl<E: EngineBLS> MultiMessageSignatureAggregatorAssumingPoP<E>
pub fn new() -> MultiMessageSignatureAggregatorAssumingPoP<E>
Sourcepub fn add_signature(&mut self, signature: &Signature<E>)
pub fn add_signature(&mut self, signature: &Signature<E>)
Add only a Signature<E>
to our internal signature.
Useful for constructing an aggregate signature, but we
recommend instead using a custom types like BitPoPSignedMessage
.
Sourcepub fn add_message_n_publickey(
&mut self,
message: &Message,
publickey: &PublicKey<E>,
)
pub fn add_message_n_publickey( &mut self, message: &Message, publickey: &PublicKey<E>, )
Add only a Message
and PublicKey<E>
to our internal data.
Useful for constructing an aggregate signature, but we
recommend instead using a custom types like BitPoPSignedMessage
.
Trait Implementations§
Source§impl<E: Clone + EngineBLS> Clone for MultiMessageSignatureAggregatorAssumingPoP<E>
impl<E: Clone + EngineBLS> Clone for MultiMessageSignatureAggregatorAssumingPoP<E>
Source§fn clone(&self) -> MultiMessageSignatureAggregatorAssumingPoP<E>
fn clone(&self) -> MultiMessageSignatureAggregatorAssumingPoP<E>
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<'a, E: EngineBLS> Signed for &'a MultiMessageSignatureAggregatorAssumingPoP<E>
impl<'a, E: EngineBLS> Signed for &'a MultiMessageSignatureAggregatorAssumingPoP<E>
type E = E
type M = &'a Message
type PKG = &'a PublicKey<<&'a MultiMessageSignatureAggregatorAssumingPoP<E> as Signed>::E>
Source§type PKnM = Iter<'a, Message, PublicKey<E>>
type PKnM = Iter<'a, Message, PublicKey<E>>
Iterator over, messages and public key reference pairs.
Source§fn messages_and_publickeys(self) -> Self::PKnM
fn messages_and_publickeys(self) -> Self::PKnM
Returns an iterator over messages and public key reference for
pairings, often only partially aggregated.
Auto Trait Implementations§
impl<E> Freeze for MultiMessageSignatureAggregatorAssumingPoP<E>
impl<E> RefUnwindSafe for MultiMessageSignatureAggregatorAssumingPoP<E>where
<E as EngineBLS>::SignatureGroup: RefUnwindSafe,
<E as EngineBLS>::PublicKeyGroup: RefUnwindSafe,
impl<E> Send for MultiMessageSignatureAggregatorAssumingPoP<E>
impl<E> Sync for MultiMessageSignatureAggregatorAssumingPoP<E>
impl<E> Unpin for MultiMessageSignatureAggregatorAssumingPoP<E>
impl<E> UnwindSafe for MultiMessageSignatureAggregatorAssumingPoP<E>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more