Skip to main content

StoreDeviceHead

Type Alias StoreDeviceHead 

Source
pub type StoreDeviceHead = Signed<StoreDeviceHeadBody>;

Aliased Type§

pub struct StoreDeviceHead { /* private fields */ }

Implementations§

Source§

impl StoreDeviceHead

Source

pub fn signed( store_root_hash: ObjectHash, author_registration: StoreDeviceRegistrationRef, commit: StoreBatchCommitRef, successor: SuccessorLink, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>

Source

pub fn head_hash(&self) -> ObjectHash

Source

pub fn slot_sequence(&self) -> u64

Source

pub fn signature_is_valid_for( &self, expected_registration: &StoreDeviceRegistration, ) -> bool

Source

pub fn parse_at( bytes: &[u8], expected_store_root_hash: ObjectHash, expected_registration: &StoreDeviceRegistration, expected_ref: &StoreBatchCommitRef, ) -> Result<Self, StoreProtocolError>