Struct keri_controller::controller::Controller
source · pub struct Controller {
pub known_events: Arc<KnownEvents>,
pub communication: Arc<Communication>,
}Fields§
§known_events: Arc<KnownEvents>§communication: Arc<Communication>Implementations§
source§impl Controller
impl Controller
pub fn new(config: ControllerConfig) -> Result<Self, ControllerError>
pub async fn incept( &self, public_keys: Vec<BasicPrefix>, next_pub_keys: Vec<BasicPrefix>, witnesses: Vec<LocationScheme>, witness_threshold: u64, ) -> Result<String, MechanicsError>
pub fn finalize_incept( &self, event: &[u8], sig: &SelfSigningPrefix, ) -> Result<Identifier, ControllerError>
pub fn get_kel_with_receipts( &self, id: &IdentifierPrefix, ) -> Option<Vec<Notice>>
pub fn verify( &self, data: &[u8], signature: &Signature, ) -> Result<(), VerificationError>
pub fn find_state( &self, id: &IdentifierPrefix, ) -> Result<IdentifierState, MechanicsError>
Auto Trait Implementations§
impl Freeze for Controller
impl !RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl !UnwindSafe for Controller
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> 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>
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