pub struct VerifiedStorePublicationInterval { /* private fields */ }Implementations§
Source§impl VerifiedStorePublicationInterval
impl VerifiedStorePublicationInterval
Sourcepub fn verified(
previous: StoreCurrentPublicationRecord,
current: StoreCurrentPublicationRecord,
entries: Vec<StorePublicationIntervalEntry>,
) -> Result<Self, StoreProtocolError>
pub fn verified( previous: StoreCurrentPublicationRecord, current: StoreCurrentPublicationRecord, entries: Vec<StorePublicationIntervalEntry>, ) -> Result<Self, StoreProtocolError>
Continue from an already authenticated record. An empty interval must preserve that exact record, including its signature.
Sourcepub fn from_nonempty_history(
previous: StoreCurrentPublicationRecordBody,
current: StoreCurrentPublicationRecord,
entries: Vec<StorePublicationIntervalEntry>,
) -> Result<Self, StoreProtocolError>
pub fn from_nonempty_history( previous: StoreCurrentPublicationRecordBody, current: StoreCurrentPublicationRecord, entries: Vec<StorePublicationIntervalEntry>, ) -> Result<Self, StoreProtocolError>
A carried historical interval authenticates its starting state through the first entry’s state hash and its terminal signed record. It carries no provider observation or conditional publication authority.
Sourcepub fn from_genesis(
store_root_hash: ObjectHash,
founder_pubkey: &str,
current: StoreCurrentPublicationRecord,
entries: Vec<StorePublicationIntervalEntry>,
) -> Result<Self, StoreProtocolError>
pub fn from_genesis( store_root_hash: ObjectHash, founder_pubkey: &str, current: StoreCurrentPublicationRecord, entries: Vec<StorePublicationIntervalEntry>, ) -> Result<Self, StoreProtocolError>
Start from the pinned Store root without requiring its founder’s private key. An empty Store still authenticates the actual remote genesis record.
Sourcepub fn previous(&self) -> &StoreCurrentPublicationRecordBody
pub fn previous(&self) -> &StoreCurrentPublicationRecordBody
The authenticated starting state, derived from the prior record or root.
pub fn current(&self) -> &StoreCurrentPublicationRecord
pub fn entries(&self) -> &[AcceptedStorePublicationEntry]
pub fn accepted_commit( &self, commit: &VerifiedStoreBatchCommit, ) -> Result<AcceptedStoreCommitPublication, StoreProtocolError>
Trait Implementations§
Source§impl Clone for VerifiedStorePublicationInterval
impl Clone for VerifiedStorePublicationInterval
Source§fn clone(&self) -> VerifiedStorePublicationInterval
fn clone(&self) -> VerifiedStorePublicationInterval
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for VerifiedStorePublicationInterval
impl PartialEq for VerifiedStorePublicationInterval
Source§fn eq(&self, other: &VerifiedStorePublicationInterval) -> bool
fn eq(&self, other: &VerifiedStorePublicationInterval) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for VerifiedStorePublicationInterval
impl StructuralPartialEq for VerifiedStorePublicationInterval
Auto Trait Implementations§
impl !Freeze for VerifiedStorePublicationInterval
impl RefUnwindSafe for VerifiedStorePublicationInterval
impl Send for VerifiedStorePublicationInterval
impl Sync for VerifiedStorePublicationInterval
impl Unpin for VerifiedStorePublicationInterval
impl UnsafeUnpin for VerifiedStorePublicationInterval
impl UnwindSafe for VerifiedStorePublicationInterval
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.