Optional
@contextA JSON-LD context link, which provides a JSON-LD processor with the information necessary to interpret the DID document JSON. The default context URL is 'https://www.w3.org/ns/did/v1'.
Optional
assertionThe assertion methods of the DID Document.
Optional
authenticationThe authentication methods of the DID Document.
Optional
capabilityThe capability delegation methods of the DID Document.
Optional
capabilityThe capability invocation methods of the DID Document.
Optional
controllerThe controller of the DID Document.
The identifier of the DID Document.
The services of the DID Document.
The verification methods of the DID Document.
Convert the Btc1DidDocument to a JSON object.
The JSON representation of the Btc1DidDocument.
Convert the IntermediateDidDocument to a Btc1DidDocument by replacing the placeholder value with the provided DID.
The DID to replace the placeholder value in the document.
A new Btc1DidDocument with the placeholder value replaced by the provided DID.
Convert the Btc1DidDocument to an IntermediateDidDocument.
The IntermediateDidDocument representation of the Btc1DidDocument.
Validate the IntermediateDidDocument.
True if the IntermediateDidDocument is valid.
Static
createCreate a minimal IntermediateDidDocument with a placeholder ID.
The public key in multibase format.
The public key in multibase format.
The service to be included in the document.
A new IntermediateDidDocument with the placeholder ID.
Static
fromCreate a Btc1DidDocument from a JSON object.
The JSON object to convert.
The created Btc1DidDocument.
Static
fromCreate a Btc1DidDocument from "x1" btc1 identifier.
The verification methods of the DID Document.
A new Btc1DidDocument.
Static
fromCreate a minimal Btc1DidDocument from "k1" btc1 identifier.
The public key in multibase format.
The beacon services to be included in the document.
A new Btc1DidDocument with the placeholder ID.
Static
isValidates a Btc1DidDocument by breaking it into modular validation methods.
The DID document to validate.
True if the DID document is valid.
Static
sanitizeSanitize the DID Document by removing undefined values
The sanitized DID Document
Static
validateValidate the DID Document
Validated DID Document.
IntermediateDidDocument extends the Btc1DidDocument class for creating and managing intermediate DID documents. This class is used to create a minimal DID document with a placeholder ID. It is used in the process of creating a new DID document. IntermediateDidDocument