pub struct BlsCache { /* private fields */ }Expand description
This is a cache of pairings of public keys and their corresponding message. It accelerates aggregate verification when some public keys have already been paired, and found in the cache. We use it to cache pairings when validating transactions inserted into the mempool, as many of those transactions are likely to show up in a full block later. This makes it a lot cheaper to validate the full block. However, validating a signature where we have no cached GT elements, the aggregate_verify() primitive is faster. When long-syncing, that’s preferable.
Implementations§
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