Skip to main content

StorePublicationEntry

Type Alias StorePublicationEntry 

Source
pub type StorePublicationEntry = Signed<StorePublicationEntryBody>;

Aliased Type§

pub struct StorePublicationEntry { /* private fields */ }

Implementations§

Source§

impl StorePublicationEntry

Source

pub fn signed_commit( current: &StoreCurrentPublicationRecord, commit: &VerifiedStoreBatchCommit, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>

Source

pub fn signed_snapshot( current: &StoreCurrentPublicationRecord, author_registration: StoreDeviceRegistrationRef, snapshot: StoreSnapshotRef, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>

Source

pub fn entry_hash(&self) -> ObjectHash

Source

pub fn parse_at( bytes: &[u8], expected_store_root_hash: ObjectHash, reference: &StorePublicationRef, expected_signing_pubkey: &str, ) -> Result<Self, StoreProtocolError>

Source

pub fn verify_published_commit( &self, commit: &VerifiedStoreBatchCommit, publisher_signing_pubkey: &str, ) -> Result<(), StoreProtocolError>