export

Converts a BearerDid object to a portable format containing the URI and verification methods associated with the DID.

This method is useful when you need to represent the key material and metadata associated with a DID in format that can be used independently of the specific DID method implementation. It extracts both public and private keys from the DID's key manager and organizes them into a PortableDid structure.