Skip to main content

SnapshotMeta

Type Alias SnapshotMeta 

Source
pub type SnapshotMeta = Signed<SnapshotMetaBody>;

Aliased Type§

pub struct SnapshotMeta { /* private fields */ }

Implementations§

Source§

impl SnapshotMeta

Source

pub fn signed( store_root_hash: ObjectHash, author_registration: StoreDeviceRegistrationRef, generation: u64, predecessor: Option<StoreSnapshotRef>, image: SnapshotImageRef, membership_rollup: MembershipRollupRef, coverage: CommitFrontier, state: StoreSnapshotState, history_summary: RetainedVerifiedMergeHistorySummary, schema_version: u32, created_at: String, successor: SnapshotSuccessorLink, device_signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>

Source

pub fn snapshot_hash(&self) -> ObjectHash

Source

pub fn semantic_hash_from_bytes( bytes: &[u8], ) -> Result<ObjectHash, StoreProtocolError>

Source

pub fn parse_at( bytes: &[u8], expected_store_root_hash: ObjectHash, expected: &StoreSnapshotRef, author: &StoreDeviceRegistration, ) -> Result<Self, StoreProtocolError>

Source

pub fn parse_stream_entry_at( bytes: &[u8], expected_store_root: &StoreRootRef, expected_registration: &StoreDeviceRegistrationRef, author: &StoreDeviceRegistration, expected: &StoreSnapshotRef, ) -> Result<Self, StoreProtocolError>