pub struct PublicationOutcome { /* private fields */ }Expand description
Retained server acceptance of exact signed intent. Not physical durability, current membership, or permission to adopt a local database.
Implementations§
Source§impl PublicationOutcome
impl PublicationOutcome
Sourcepub fn from_publication(publication: Publication) -> Self
pub fn from_publication(publication: Publication) -> Self
Wraps verified intent as a retained outcome; callers establish acceptance.
Sourcepub fn from_response(
genesis: &Genesis,
descriptor: &[u8],
record: &[u8],
) -> Result<Self>
pub fn from_response( genesis: &Genesis, descriptor: &[u8], record: &[u8], ) -> Result<Self>
Decodes a publication reported by an authenticated transport. The signature proves exact client intent, not server storage or current authorization. Expectations must come from protected local intent, never the response.
pub fn publication(&self) -> &Publication
Sourcepub fn validate_expected(
&self,
genesis: &Genesis,
expected_descriptor: &[u8],
) -> Result<()>
pub fn validate_expected( &self, genesis: &Genesis, expected_descriptor: &[u8], ) -> Result<()>
Authenticate the signed binding against pinned genesis and local expectation. Never replace that expectation with a descriptor supplied by the server. The record is already verified against the genesis and descriptor its binding commits to, so comparing commitments suffices.
Trait Implementations§
Source§impl Clone for PublicationOutcome
impl Clone for PublicationOutcome
Source§impl Debug for PublicationOutcome
impl Debug for PublicationOutcome
impl Eq for PublicationOutcome
Source§impl PartialEq for PublicationOutcome
impl PartialEq for PublicationOutcome
impl StructuralPartialEq for PublicationOutcome
Auto Trait Implementations§
impl Freeze for PublicationOutcome
impl RefUnwindSafe for PublicationOutcome
impl Send for PublicationOutcome
impl Sync for PublicationOutcome
impl Unpin for PublicationOutcome
impl UnsafeUnpin for PublicationOutcome
impl UnwindSafe for PublicationOutcome
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