ImmutableDigester

Trait ImmutableDigester 

Source
pub trait ImmutableDigester: Sync + Send {
    // Required methods
    fn compute_digest<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        dirpath: &'life1 Path,
        beacon: &'life2 CardanoDbBeacon,
    ) -> Pin<Box<dyn Future<Output = Result<String, ImmutableDigesterError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn compute_digests_for_range<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        dirpath: &'life1 Path,
        range: &'life2 RangeInclusive<ImmutableFileNumber>,
    ) -> Pin<Box<dyn Future<Output = Result<ComputedImmutablesDigests, ImmutableDigesterError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn compute_merkle_tree<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        dirpath: &'life1 Path,
        beacon: &'life2 CardanoDbBeacon,
    ) -> Pin<Box<dyn Future<Output = Result<MKTree<MKTreeStoreInMemory>, ImmutableDigesterError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

A digester that can compute the digest used for mithril signatures

Required Methods§

Source

fn compute_digest<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, dirpath: &'life1 Path, beacon: &'life2 CardanoDbBeacon, ) -> Pin<Box<dyn Future<Output = Result<String, ImmutableDigesterError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Compute the digest

Source

fn compute_digests_for_range<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, dirpath: &'life1 Path, range: &'life2 RangeInclusive<ImmutableFileNumber>, ) -> Pin<Box<dyn Future<Output = Result<ComputedImmutablesDigests, ImmutableDigesterError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Compute the digests for a range of immutable files

Source

fn compute_merkle_tree<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, dirpath: &'life1 Path, beacon: &'life2 CardanoDbBeacon, ) -> Pin<Box<dyn Future<Output = Result<MKTree<MKTreeStoreInMemory>, ImmutableDigesterError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Compute the digests merkle tree

Implementors§