pub struct PilotKeyStore { /* private fields */ }Implementations§
Source§impl PilotKeyStore
impl PilotKeyStore
pub fn open(root: impl Into<PathBuf>) -> Self
pub fn root_dir(&self) -> &Path
pub fn init(&self) -> Result<(), PilotKeyStoreError>
pub fn inspect(&self) -> Result<PilotKeyStoreStatus, PilotKeyStoreError>
pub fn load( &self, node_secret_key: &SecretKey, ) -> Result<Option<PilotIdentity>, PilotKeyStoreError>
pub fn generate( &self, node_secret_key: &SecretKey, ) -> Result<PilotIdentity, PilotKeyStoreError>
pub fn export_public_identity( &self, node_secret_key: &SecretKey, ) -> Result<Option<PilotPublicIdentity>, PilotKeyStoreError>
pub fn archived_pilot_auth_dids( &self, ) -> Result<Vec<DidKey>, PilotKeyStoreError>
pub fn generate_next_active_pilot_auth_secret_key( &self, node_secret_key: &SecretKey, ) -> Result<SecretKey, PilotKeyStoreError>
pub fn replace_active_pilot_auth( &self, node_secret_key: &SecretKey, next_active_pilot_auth_secret_key: &SecretKey, ) -> Result<PilotIdentity, PilotKeyStoreError>
Trait Implementations§
Source§impl Clone for PilotKeyStore
impl Clone for PilotKeyStore
Source§fn clone(&self) -> PilotKeyStore
fn clone(&self) -> PilotKeyStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PilotKeyStore
impl RefUnwindSafe for PilotKeyStore
impl Send for PilotKeyStore
impl Sync for PilotKeyStore
impl Unpin for PilotKeyStore
impl UnsafeUnpin for PilotKeyStore
impl UnwindSafe for PilotKeyStore
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