Struct keri_controller::controller::Controller
source · pub struct Controller {
pub known_events: Arc<KnownEvents>,
/* private fields */
}Fields§
§known_events: Arc<KnownEvents>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, ControllerError>
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<(), ControllerError>
pub fn find_state( &self, id: &IdentifierPrefix ) -> Result<IdentifierState, ControllerError>
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