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, publication_predecessor: StoreCurrentPublicationRecord, image: SnapshotImageRef, membership_rollup: MembershipRollupRef, coverage: CommitFrontier, state: StoreSnapshotState, history_summary: RetainedVerifiedMergeHistorySummary, schema_version: u32, created_at: String, 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 verify_at( &self, expected_store_root_hash: ObjectHash, expected: &StoreSnapshotRef, author: &StoreDeviceRegistration, ) -> Result<(), StoreProtocolError>

Verify an already decoded snapshot against its exact canonical object.