pub struct CivicsRoutingTable { /* private fields */ }Implementations§
Source§impl CivicsRoutingTable
impl CivicsRoutingTable
pub fn new() -> Self
Sourcepub fn hydrate_from_db(&self, db: &[NQuin])
pub fn hydrate_from_db(&self, db: &[NQuin])
Hydrates trusted groups from the .q42 database slice using the zero-allocation VM.
Sourcepub fn add_trusted_group(&self, group_hash: [u8; 8], public_key: VerifyingKey)
pub fn add_trusted_group(&self, group_hash: [u8; 8], public_key: VerifyingKey)
Add a trusted Group DID to the memory cache
Verifies if a semantic route is authorized by a Trusted Group Verifiable Credential. Operates in O(1) memory lookup time. Instantly drops if group is unknown.
Auto Trait Implementations§
impl Freeze for CivicsRoutingTable
impl !RefUnwindSafe for CivicsRoutingTable
impl Send for CivicsRoutingTable
impl Sync for CivicsRoutingTable
impl Unpin for CivicsRoutingTable
impl UnsafeUnpin for CivicsRoutingTable
impl !UnwindSafe for CivicsRoutingTable
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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 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>
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