Skip to main content

StoreBatchCommit

Type Alias StoreBatchCommit 

Source
pub type StoreBatchCommit = Signed<StoreBatchCommitBody>;

Aliased Type§

pub struct StoreBatchCommit { /* private fields */ }

Implementations§

Source§

impl StoreBatchCommit

Source

pub fn signed_reclaim_authorization( store_root_hash: ObjectHash, write_id: WriteId, coord: StoreCommitCoord, author_registration: StoreDeviceRegistrationRef, author: &StoreDeviceRegistration, order: StoreCommitOrder, publication_base: StorePublicationBase, membership_state: StoreMembershipStateRef, device_state: StoreDeviceStateRef, authorization: ReclaimAuthorizationRef, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>

Source

pub fn signed_reclaim_receipt( store_root_hash: ObjectHash, write_id: WriteId, coord: StoreCommitCoord, author_registration: StoreDeviceRegistrationRef, author: &StoreDeviceRegistration, order: StoreCommitOrder, publication_base: StorePublicationBase, membership_state: StoreMembershipStateRef, device_state: StoreDeviceStateRef, receipt: ReclaimReceiptRef, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>

Source

pub fn merge_dependencies( &self, ) -> &BTreeMap<AuthorStreamId, StoreBatchCommitRef>

Source

pub fn signed_with_owner_promotion_request( store_root_hash: ObjectHash, write_id: WriteId, coord: StoreCommitCoord, author_registration: StoreDeviceRegistrationRef, author: &StoreDeviceRegistration, order: StoreCommitOrder, publication_base: StorePublicationBase, membership_state: StoreMembershipStateRef, device_state: StoreDeviceStateRef, membership_authority: MembershipCoord, request: OwnerPromotionRequest, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>

Source

pub fn signed_with_candidate_abandonment( store_root_hash: ObjectHash, write_id: WriteId, coord: StoreCommitCoord, author_registration: StoreDeviceRegistrationRef, author: &StoreDeviceRegistration, order: StoreCommitOrder, publication_base: StorePublicationBase, membership_state: StoreMembershipStateRef, device_state: StoreDeviceStateRef, manifests: Vec<CandidateCleanupManifest>, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>

Source

pub fn signed_operations( store_root_hash: ObjectHash, write_id: WriteId, coord: StoreCommitCoord, author_registration: StoreDeviceRegistrationRef, author: &StoreDeviceRegistration, order: StoreCommitOrder, publication_base: StorePublicationBase, membership_state: StoreMembershipStateRef, device_state: StoreDeviceStateRef, membership_authority: MembershipCoord, input: StoreCommitOperationsInput<'_>, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>

Source§

impl StoreBatchCommit

Source

pub fn commit_hash(&self) -> ObjectHash

Source

pub fn verify_at( &self, expected_store_root_hash: ObjectHash, expected_coord: &StoreCommitCoord, author: &StoreDeviceRegistration, ) -> Result<(), StoreProtocolError>

Source

pub fn verify_store_package( &self, package_bytes: &[u8], ) -> Result<(), StoreProtocolError>

Source

pub fn verify_circle_package( &self, circle_id: CircleId, package_bytes: &[u8], ) -> Result<(), StoreProtocolError>

Source

pub fn operations_membership_authority( &self, ) -> Result<MembershipCoord, StoreProtocolError>

Source§

impl StoreBatchCommit

Source§

impl StoreBatchCommit

Source

pub fn has_pending_device_join_bootstrap<'a>( &self, state: &ResolvedStoreDeviceState, frontier: &CommitFrontier, accepted: impl IntoIterator<Item = &'a StoreBatchCommit>, ) -> Result<bool, StoreProtocolError>

Opening an Attempt creates an image consumer. Separate registration or abandonment ends that consumer; combined registration keeps the image until the registered device has published against accepted history.

Source

pub fn pending_bootstrap_registration( &self, state: &ResolvedStoreDeviceState, frontier: &CommitFrontier, ) -> Result<Option<&StoreDeviceRegistrationRef>, StoreProtocolError>

A same-principal activation opens its attempt and registers the device together. Until that exact device publishes, its original handoff is a live consumer of the selected snapshot and following accepted interval.