pub struct VcDerivationEpochState { /* private fields */ }Available on crate feature
extensions-draft and crate feature virtual-clients-draft and (32-bit or 64-bit) only.Expand description
Per-derivation-epoch state, persisted alongside the per-epoch operation
secret tree and keyed by EpochId. Bundles everything the library needs
to emit a VC commit for this epoch and to XOR application message nonces
with deterministic reuse guards.
This is the local storage encoding, not the draft’s wire struct of the same
name. The draft’s version carries the epoch_id and the operation secret
tree as fields, both of which are stored separately here and keyed by
EpochId, and calls the leaf count leaf_count rather than
emulation_group_size.
Trait Implementations§
Source§impl Debug for VcDerivationEpochState
impl Debug for VcDerivationEpochState
Source§impl<'de> Deserialize<'de> for VcDerivationEpochState
impl<'de> Deserialize<'de> for VcDerivationEpochState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Entity<CURRENT_VERSION> for VcDerivationEpochState
Source§impl Serialize for VcDerivationEpochState
impl Serialize for VcDerivationEpochState
impl VcDerivationEpochState<CURRENT_VERSION> for VcDerivationEpochState
Auto Trait Implementations§
impl Freeze for VcDerivationEpochState
impl RefUnwindSafe for VcDerivationEpochState
impl Send for VcDerivationEpochState
impl Sync for VcDerivationEpochState
impl Unpin for VcDerivationEpochState
impl UnsafeUnpin for VcDerivationEpochState
impl UnwindSafe for VcDerivationEpochState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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