pub struct SignatureAggregatorAssumingPoP<E: EngineBLS> { /* private fields */ }
Implementations§
Source§impl<E: EngineBLS> SignatureAggregatorAssumingPoP<E>
impl<E: EngineBLS> SignatureAggregatorAssumingPoP<E>
pub fn new(message: Message) -> SignatureAggregatorAssumingPoP<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
Sourcepub fn add_publickey(&mut self, publickey: &PublicKey<E>)
pub fn add_publickey(&mut self, publickey: &PublicKey<E>)
Add only a PublicKey<E>
to our internal data.
Useful for constructing an aggregate signature, but we
recommend instead using a custom types like BitPoPSignedMessage
.
Sourcepub fn add_auxiliary_public_key(
&mut self,
publickey_in_signature_group: &PublicKeyInSignatureGroup<E>,
)
pub fn add_auxiliary_public_key( &mut self, publickey_in_signature_group: &PublicKeyInSignatureGroup<E>, )
Aggregate the auxiliary public keys in the signature group to be used verification using aux key
Sourcepub fn aggregated_publickey(&self) -> PublicKey<E>
pub fn aggregated_publickey(&self) -> PublicKey<E>
Returns the aggergated public key.
pub fn verify_using_aggregated_auxiliary_public_keys<RandomOracle: DynDigest + Default + Clone>( &self, ) -> bool
Trait Implementations§
Source§impl<E: Clone + EngineBLS> Clone for SignatureAggregatorAssumingPoP<E>
impl<E: Clone + EngineBLS> Clone for SignatureAggregatorAssumingPoP<E>
Source§fn clone(&self) -> SignatureAggregatorAssumingPoP<E>
fn clone(&self) -> SignatureAggregatorAssumingPoP<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 SignatureAggregatorAssumingPoP<E>
impl<'a, E: EngineBLS> Signed for &'a SignatureAggregatorAssumingPoP<E>
type E = E
type M = Message
type PKG = PublicKey<<&'a SignatureAggregatorAssumingPoP<E> as Signed>::E>
Source§type PKnM = Once<(Message, PublicKey<E>)>
type PKnM = Once<(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 SignatureAggregatorAssumingPoP<E>
impl<E> RefUnwindSafe for SignatureAggregatorAssumingPoP<E>where
<E as EngineBLS>::PublicKeyGroup: RefUnwindSafe,
<E as EngineBLS>::SignatureGroup: RefUnwindSafe,
impl<E> Send for SignatureAggregatorAssumingPoP<E>
impl<E> Sync for SignatureAggregatorAssumingPoP<E>
impl<E> Unpin for SignatureAggregatorAssumingPoP<E>
impl<E> UnwindSafe for SignatureAggregatorAssumingPoP<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