pub struct Zoda<H> { /* private fields */ }Trait Implementations§
Source§impl<H: Hasher> Scheme for Zoda<H>
impl<H: Hasher> Scheme for Zoda<H>
Source§type Commitment = Summary
type Commitment = Summary
A commitment attesting to the shards of data.
Source§type ReShard = ReShard<H>
type ReShard = ReShard<H>
A shard shared with other participants, to aid them in reconstruction. Read more
Source§type CheckingData = CheckingData<H>
type CheckingData = CheckingData<H>
Data which can assist in checking shards.
Source§type CheckedShard = CheckedShard
type CheckedShard = CheckedShard
A shard that has been checked for inclusion in the commitment. Read more
type Error = Error
Source§fn encode(
config: &Config,
data: impl Buf,
concurrency: usize,
) -> Result<(Self::Commitment, Vec<Self::Shard>), Self::Error>
fn encode( config: &Config, data: impl Buf, concurrency: usize, ) -> Result<(Self::Commitment, Vec<Self::Shard>), Self::Error>
Encode a piece of data, returning a commitment, along with shards, and proofs. Read more
Source§fn reshard(
config: &Config,
commitment: &Self::Commitment,
index: u16,
shard: Self::Shard,
) -> Result<(Self::CheckingData, Self::CheckedShard, Self::ReShard), Self::Error>
fn reshard( config: &Config, commitment: &Self::Commitment, index: u16, shard: Self::Shard, ) -> Result<(Self::CheckingData, Self::CheckedShard, Self::ReShard), Self::Error>
Take your own shard, check it, and produce a Scheme::ReShard to forward to others. Read more
Source§fn check(
_config: &Config,
_commitment: &Self::Commitment,
checking_data: &Self::CheckingData,
index: u16,
reshard: Self::ReShard,
) -> Result<Self::CheckedShard, Self::Error>
fn check( _config: &Config, _commitment: &Self::Commitment, checking_data: &Self::CheckingData, index: u16, reshard: Self::ReShard, ) -> Result<Self::CheckedShard, Self::Error>
Check the integrity of a reshard, producing a checked shard. Read more
Source§fn decode(
_config: &Config,
_commitment: &Self::Commitment,
checking_data: Self::CheckingData,
shards: &[Self::CheckedShard],
_concurrency: usize,
) -> Result<Vec<u8>, Self::Error>
fn decode( _config: &Config, _commitment: &Self::Commitment, checking_data: Self::CheckingData, shards: &[Self::CheckedShard], _concurrency: usize, ) -> Result<Vec<u8>, Self::Error>
Decode the data from shards received from other participants. Read more
impl<H: Copy> Copy for Zoda<H>
impl<H: Hasher> ValidatingScheme for Zoda<H>
Auto Trait Implementations§
impl<H> Freeze for Zoda<H>
impl<H> RefUnwindSafe for Zoda<H>where
H: RefUnwindSafe,
impl<H> Send for Zoda<H>where
H: Send,
impl<H> Sync for Zoda<H>where
H: Sync,
impl<H> Unpin for Zoda<H>where
H: Unpin,
impl<H> UnwindSafe for Zoda<H>where
H: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more