Builder

class Builder

Builder object to build a DidDocument.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Sets AlsoknownAses.

Link copied to clipboard

Builds DidDocument after validating the required fields.

Link copied to clipboard

Sets Context to the DidDocument.

Link copied to clipboard

Sets Controllers.

Link copied to clipboard

Adds Id to the DidDocument.

Link copied to clipboard

Sets Services.

Link copied to clipboard

Add verification method adds a verification method to the document. If Purposes are provided, the verification method's ID will be added to the corresponding list of purposes.

Link copied to clipboard

Adds VerificationMethods for a single purpose.