PortableDid

class PortableDid(val uri: String, val privateKeys: List<Jwk>, val document: DidDocument, val metadata: Map<String, Any>)

PortableDid is a serializable BearerDid that documents the key material and metadata of a Decentralized Identifier (DID) to enable usage of the DID in different contexts.

This format is useful for exporting, saving to a file, or importing a DID across process boundaries or between different DID method implementations.

Constructors

Link copied to clipboard
constructor(uri: String, privateKeys: List<Jwk>, document: DidDocument, metadata: Map<String, Any>)

Properties

Link copied to clipboard

The DID Document associated with the PortableDid.

Link copied to clipboard

Additional metadata associated with the PortableDid.

Link copied to clipboard

The private keys associated with the PortableDid.

Link copied to clipboard
val uri: String

The URI of the DID.