@did-btc1/method
    Preparing search index...

    Class IntermediateDidDocument

    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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    "@context"?: (string | JSONObject)[] = BTC1_DID_DOCUMENT_CONTEXT

    A 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'.

    assertionMethod?: (string | Btc1VerificationMethod)[]

    The assertion methods of the DID Document.

    authentication?: (string | Btc1VerificationMethod)[]

    The authentication methods of the DID Document.

    capabilityDelegation?: (string | Btc1VerificationMethod)[]

    The capability delegation methods of the DID Document.

    capabilityInvocation?: (string | Btc1VerificationMethod)[]

    The capability invocation methods of the DID Document.

    controller?: string[]

    The controller of the DID Document.

    id: string

    The identifier of the DID Document.

    service: BeaconService[]

    The services of the DID Document.

    verificationMethod: Btc1VerificationMethod[]

    The verification methods of the DID Document.

    Methods

    • Convert the IntermediateDidDocument to a Btc1DidDocument by replacing the placeholder value with the provided DID.

      Parameters

      • did: string

        The DID to replace the placeholder value in the document.

      Returns Btc1DidDocument

      A new Btc1DidDocument with the placeholder value replaced by the provided DID.