Function applyUpdateTransactionToDid

  • Applies a DID update transaction to an existing DID object to produce the updated DID. This can be used to derive the current state of a DID from its previous state and the most recent update transaction, rather than resolving the DID "from scratch" using its creation transaction and every update transaction since then.

    Parameters

    • did: Did

      The previous state of the DID.

    • txHex: string

      The most recent update transaction in hex format.

    • Optional didIndex: number

    Returns Did

    The current state of the DID.