pub struct BlsCache { /* private fields */ }Implementations§
Source§impl BlsCache
impl BlsCache
pub fn new(capacity: NonZeroUsize) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn aggregate_verify<Pk: Borrow<PublicKey>, Msg: AsRef<[u8]>>( &self, pks_msgs: impl IntoIterator<Item = (Pk, Msg)>, sig: &Signature, ) -> bool
pub fn update(&self, aug_msg: &[u8], gt: GTElement)
pub fn evict<Pk, Msg>(&self, pks_msgs: impl IntoIterator<Item = (Pk, Msg)>)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BlsCache
impl RefUnwindSafe for BlsCache
impl Send for BlsCache
impl Sync for BlsCache
impl Unpin for BlsCache
impl UnwindSafe for BlsCache
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