Skip to main content

load_controller_did

Function load_controller_did 

Source
pub fn load_controller_did(
    identity_storage: &dyn IdentityStorage,
) -> Result<String, PairingError>
Expand description

Load the controller DID from a pre-initialized identity storage adapter.

Args:

  • identity_storage: Pre-initialized identity storage adapter.

Usage:

let did = load_controller_did(identity_storage.as_ref())?;