BearerDid

class BearerDid(val uri: String, val did: Did, val keyManager: KeyManager, val document: DidDocument)

Represents a Decentralized Identifier (DID) along with its DID document, key manager, metadata, and convenience functions.

Parameters

did

The Decentralized Identifier (DID) to represent.

keyManager

The KeyManager instance used to manage the cryptographic keys associated with the DID.

document

The DID Document associated with the DID.

Constructors

Link copied to clipboard
constructor(uri: String, did: Did, keyManager: KeyManager, document: DidDocument)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val did: Did
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val uri: String

Functions

Link copied to clipboard

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

Link copied to clipboard
fun getSigner(selector: VMSelector? = null): <Error class: unknown class><DidSigner, VerificationMethod>

GetSigner returns a sign method that can be used to sign a payload using a key associated to the DID. This function also returns the verification method needed to verify the signature.