Struct blst::min_sig::AggregatePublicKey
source · pub struct AggregatePublicKey { /* private fields */ }
Implementations§
source§impl AggregatePublicKey
impl AggregatePublicKey
pub fn from_public_key(pk: &PublicKey) -> Self
pub fn to_public_key(&self) -> PublicKey
pub fn aggregate( pks: &[&PublicKey], pks_validate: bool, ) -> Result<Self, BLST_ERROR>
pub fn aggregate_with_randomness( pks: &[PublicKey], randomness: &[u8], nbits: usize, pks_groupcheck: bool, ) -> Result<Self, BLST_ERROR>
pub fn aggregate_serialized( pks: &[&[u8]], pks_validate: bool, ) -> Result<Self, BLST_ERROR>
pub fn add_aggregate(&mut self, agg_pk: &AggregatePublicKey)
pub fn add_public_key( &mut self, pk: &PublicKey, pk_validate: bool, ) -> Result<(), BLST_ERROR>
Trait Implementations§
source§impl Clone for AggregatePublicKey
impl Clone for AggregatePublicKey
source§fn clone(&self) -> AggregatePublicKey
fn clone(&self) -> AggregatePublicKey
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 Debug for AggregatePublicKey
impl Debug for AggregatePublicKey
impl Copy for AggregatePublicKey
Auto Trait Implementations§
impl Freeze for AggregatePublicKey
impl RefUnwindSafe for AggregatePublicKey
impl Send for AggregatePublicKey
impl Sync for AggregatePublicKey
impl Unpin for AggregatePublicKey
impl UnwindSafe for AggregatePublicKey
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)