Bearer Did
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.
key Manager
The KeyManager instance used to manage the cryptographic keys associated with the DID.
document
The DID Document associated with the DID.
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.