pub struct SignedEpochLedger {
pub album_id: Uuid,
pub admin_pub: HybridVerifyingKey,
pub ceiling: u32,
pub entries: Vec<LedgerEntry>,
}Expand description
The portable, admin-signed epoch ledger: every attested (epoch, write_tier_pub) with its
admin signature. amk_present is local-only state and deliberately is not part of this
signed artifact — on reload it is restored from the epochs a device actually holds AMKs for.
Fields§
§album_id: UuidAlbum this ledger speaks for.
admin_pub: HybridVerifyingKeyThe admin-tier public key every entry is signed under.
ceiling: u32The attested epoch ceiling (must equal the max attested epoch).
entries: Vec<LedgerEntry>One entry per attested epoch.
Trait Implementations§
Source§impl Clone for SignedEpochLedger
impl Clone for SignedEpochLedger
Source§fn clone(&self) -> SignedEpochLedger
fn clone(&self) -> SignedEpochLedger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignedEpochLedger
impl Debug for SignedEpochLedger
Source§impl<'de> Deserialize<'de> for SignedEpochLedger
impl<'de> Deserialize<'de> for SignedEpochLedger
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
Auto Trait Implementations§
impl Freeze for SignedEpochLedger
impl RefUnwindSafe for SignedEpochLedger
impl Send for SignedEpochLedger
impl Sync for SignedEpochLedger
impl Unpin for SignedEpochLedger
impl UnsafeUnpin for SignedEpochLedger
impl UnwindSafe for SignedEpochLedger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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