Trait ControllerKeyManager

Source
pub trait ControllerKeyManager: KeyManager {
    // Provided methods
    fn read_recovery_key(
        &self,
        did_suffix: &str,
    ) -> Result<JWK, KeyManagerError> { ... }
    fn read_update_key(&self, did_suffix: &str) -> Result<JWK, KeyManagerError> { ... }
    fn read_next_update_key(
        &self,
        did_suffix: &str,
    ) -> Result<JWK, KeyManagerError> { ... }
    fn apply_next_update_key(
        &self,
        did_suffix: &str,
        next_update_key: &JWK,
    ) -> Result<(), KeyManagerError> { ... }
}

Provided Methods§

Source

fn read_recovery_key(&self, did_suffix: &str) -> Result<JWK, KeyManagerError>

Reads a recovery key.

Source

fn read_update_key(&self, did_suffix: &str) -> Result<JWK, KeyManagerError>

Reads an update key.

Source

fn read_next_update_key(&self, did_suffix: &str) -> Result<JWK, KeyManagerError>

Reads a candidate next update key.

Source

fn apply_next_update_key( &self, did_suffix: &str, next_update_key: &JWK, ) -> Result<(), KeyManagerError>

Apply the next_update_key to update_key and remove next_update_key

Implementors§