[][src]Trait grin_core::core::verifier_cache::VerifierCache

pub trait VerifierCache: Sync + Send {
    fn filter_kernel_sig_unverified(
        &mut self,
        kernels: &[TxKernel]
    ) -> Vec<TxKernel>;
fn filter_rangeproof_unverified(
        &mut self,
        outputs: &[Output]
    ) -> Vec<Output>;
fn add_kernel_sig_verified(&mut self, kernels: Vec<TxKernel>);
fn add_rangeproof_verified(&mut self, outputs: Vec<Output>); }

Verifier cache for caching expensive verification results. Specifically the following -

  • kernel signature verification
  • output rangeproof verification

Required methods

fn filter_kernel_sig_unverified(
    &mut self,
    kernels: &[TxKernel]
) -> Vec<TxKernel>

Takes a vec of tx kernels and returns those kernels that have not yet been verified.

fn filter_rangeproof_unverified(&mut self, outputs: &[Output]) -> Vec<Output>

Takes a vec of tx outputs and returns those outputs that have not yet had their rangeproofs verified.

fn add_kernel_sig_verified(&mut self, kernels: Vec<TxKernel>)

Adds a vec of tx kernels to the cache (used in conjunction with the the filter above).

fn add_rangeproof_verified(&mut self, outputs: Vec<Output>)

Adds a vec of outputs to the cache (used in conjunction with the the filter above).

Loading content...

Implementors

impl VerifierCache for LruVerifierCache[src]

Loading content...