Skip to main content

EncryptedEndpoint

Struct EncryptedEndpoint 

Source
pub struct EncryptedEndpoint<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> EncryptedEndpoint<'a>

Source

pub fn authority_state(&self) -> Result<VerifiedState>

Source

pub fn open(home: &Path, identity: &'a NodeIdentity) -> Result<Self>

Source

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.

Source

pub fn apply_authority(&mut self, updates: &[SignedState]) -> Result<()>

Authority updates may advance through expired history. Every cryptographic operation still requires fresh authority. Revoked nodes can save the update.

Source

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.

Source

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.

Source

pub fn join( &mut self, invitation: &Outgoing, expected: &[&str], now: u64, ) -> Result<()>

The expected roster is a trusted local decision, never a relay assertion.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn outbox(&self, after: i64, limit: usize) -> Result<Vec<(i64, Outgoing)>>

Queued opaque packets in commit order, bounded for transport polling. Transport must apply current recipient authorization before sending.

Source

pub fn inbox( &self, group_id: &[u8], after: i64, limit: usize, ) -> Result<Vec<(i64, InboxMessage)>>

Trusted local inspection only. Chat policy and revocation must be checked again before exposing a stored plaintext to an MCP conversation.

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<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more