pub type SnapshotMeta = Signed<SnapshotMetaBody>;Aliased Type§
pub struct SnapshotMeta { /* private fields */ }Implementations§
Source§impl SnapshotMeta
impl SnapshotMeta
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>
pub fn snapshot_hash(&self) -> ObjectHash
pub fn semantic_hash_from_bytes( bytes: &[u8], ) -> Result<ObjectHash, StoreProtocolError>
pub fn parse_at( bytes: &[u8], expected_store_root_hash: ObjectHash, expected: &StoreSnapshotRef, author: &StoreDeviceRegistration, ) -> Result<Self, StoreProtocolError>
Sourcepub fn verify_at(
&self,
expected_store_root_hash: ObjectHash,
expected: &StoreSnapshotRef,
author: &StoreDeviceRegistration,
) -> Result<(), StoreProtocolError>
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.