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§
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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,
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