import
Instantiates a BearerDid object for the DID DHT method from a given PortableDid.
This method allows for the creation of a BearerDid
object using a previously created DID's key material, DID document, and metadata.
Parameters
portable Did
The PortableDid object to import.
key Manager
Optionally specify an external Key Management System (KMS) used to generate keys and sign data. If not given, a new InMemoryKeyManager instance will be created and used.
Throws
if importing incorrect DID method
if PortableDid document does not contain any verification methods, lacks an Identity Key, or the keys for any verification method are missing in the key manager.