pub struct EncryptedEndpoint<'a> { /* private fields */ }Implementations§
Source§impl<'a> EncryptedEndpoint<'a>
impl<'a> EncryptedEndpoint<'a>
pub fn open(home: &Path, identity: &'a NodeIdentity) -> Result<Self>
Sourcepub fn initialize(&mut self, state: &VerifiedState, now: u64) -> Result<()>
pub fn initialize(&mut self, state: &VerifiedState, now: u64) -> Result<()>
One-time bootstrap from independently authenticated authority. Opening an existing database cannot replace its pin, checkpoint, or node identity.
Authority updates may advance through expired history. Every cryptographic operation still requires fresh authority. Revoked nodes can save the update.
Sourcepub fn key_package(&mut self, request: Uuid, now: u64) -> Result<Vec<u8>>
pub fn key_package(&mut self, request: Uuid, now: u64) -> Result<Vec<u8>>
Generate once and reuse the same public package on transport retries. Consumed private key packages are deleted by OpenMLS during successful join.
Sourcepub fn create_group(
&mut self,
request: Uuid,
peers: &[(&str, &[u8])],
now: u64,
) -> Result<Outgoing>
pub fn create_group( &mut self, request: Uuid, peers: &[(&str, &[u8])], now: u64, ) -> Result<Outgoing>
Create a group with an explicit set of approved nodes. The returned Welcome and the sender’s new group state are committed atomically.
Sourcepub fn join(
&mut self,
invitation: &Outgoing,
expected: &[&str],
now: u64,
) -> Result<()>
pub fn join( &mut self, invitation: &Outgoing, expected: &[&str], now: u64, ) -> Result<()>
The expected roster is a trusted local decision, never a relay assertion.
Sourcepub fn send(
&mut self,
group_id: &[u8],
id: Uuid,
body: &[u8],
now: u64,
) -> Result<Outgoing>
pub fn send( &mut self, group_id: &[u8], id: Uuid, body: &[u8], now: u64, ) -> Result<Outgoing>
Idempotent encryption: retrying an ID returns the exact committed wire bytes.
Sourcepub fn rotate(
&mut self,
group_id: &[u8],
request: Uuid,
now: u64,
) -> Result<Outgoing>
pub fn rotate( &mut self, group_id: &[u8], request: Uuid, now: u64, ) -> Result<Outgoing>
Advance the epoch; no previous-epoch secrets are retained in logical state.
Sourcepub fn remove_revoked(
&mut self,
group_id: &[u8],
request: Uuid,
now: u64,
) -> Result<Outgoing>
pub fn remove_revoked( &mut self, group_id: &[u8], request: Uuid, now: u64, ) -> Result<Outgoing>
Remove every credential no longer authorized by the saved owner state. A revoked member prevents application sends until this succeeds.
Sourcepub fn receive(
&mut self,
group_id: &[u8],
wire: &[u8],
now: u64,
) -> Result<Received>
pub fn receive( &mut self, group_id: &[u8], wire: &[u8], now: u64, ) -> Result<Received>
Decrypt into the durable local inbox, committing ratchets and receipts in the same transaction. Replays never create a second inbox entry.
Auto Trait Implementations§
impl<'a> !Freeze for EncryptedEndpoint<'a>
impl<'a> !RefUnwindSafe for EncryptedEndpoint<'a>
impl<'a> !Sync for EncryptedEndpoint<'a>
impl<'a> !UnwindSafe for EncryptedEndpoint<'a>
impl<'a> Forget for EncryptedEndpoint<'a>
impl<'a> Move for EncryptedEndpoint<'a>
impl<'a> Send for EncryptedEndpoint<'a>
impl<'a> Unpin for EncryptedEndpoint<'a>
impl<'a> UnsafeUnpin for EncryptedEndpoint<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more