Skip to main content

AlbumAuthority

Trait AlbumAuthority 

Source
pub trait AlbumAuthority {
    // Required methods
    fn album_id(&self) -> Uuid;
    fn epoch_ceiling(&self) -> AmkVersion;
    fn write_tier_pubkey(&self, epoch: AmkVersion) -> Option<HybridVerifyingKey>;
    fn has_amk(&self, epoch: AmkVersion) -> bool;
    fn admin_chain_verifies(&self) -> bool;
}
Expand description

One album’s MLS-attested authorization state, as needed by verify_asset.

An instance represents a single album. All methods reflect the album’s admin-signed commit chain; an implementation must never let server-asserted state substitute for it.

Required Methods§

Source

fn album_id(&self) -> Uuid

The album this authority speaks for.

Source

fn epoch_ceiling(&self) -> AmkVersion

The monotonic epoch ceiling: the highest amk_version the admin chain attests. A manifest claiming a higher epoch is terminal-rejected (the server cannot fabricate a future epoch a client will honor).

Source

fn write_tier_pubkey(&self, epoch: AmkVersion) -> Option<HybridVerifyingKey>

The write-tier public key for epoch, or None if the chain attests no such epoch. verify_asset checks the manifest’s write_sig against this key.

Source

fn has_amk(&self, epoch: AmkVersion) -> bool

Whether the AMK content key for epoch is held locally. When an epoch is within the attested range but its AMK has not yet arrived over MLS, the asset is pending, not forged.

Source

fn admin_chain_verifies(&self) -> bool

Whether the admin-signed attestation chain itself verifies. If this is false, the authority is untrusted and verify_asset must terminal-reject everything — an implementation must never trust an unsigned or forged ledger.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§