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§
Sourcefn read_recovery_key(&self, did_suffix: &str) -> Result<JWK, KeyManagerError>
fn read_recovery_key(&self, did_suffix: &str) -> Result<JWK, KeyManagerError>
Reads a recovery key.
Sourcefn read_update_key(&self, did_suffix: &str) -> Result<JWK, KeyManagerError>
fn read_update_key(&self, did_suffix: &str) -> Result<JWK, KeyManagerError>
Reads an update key.
Sourcefn read_next_update_key(&self, did_suffix: &str) -> Result<JWK, KeyManagerError>
fn read_next_update_key(&self, did_suffix: &str) -> Result<JWK, KeyManagerError>
Reads a candidate next update key.
Sourcefn apply_next_update_key(
&self,
did_suffix: &str,
next_update_key: &JWK,
) -> Result<(), KeyManagerError>
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