Function resolveDidBtc

  • Resolves a DID from a series of bitcoin transactions.

    Parameters

    • transactions: string[]

      An array of bitcoin transactions in hex format and chronological order used to resolve the DID. The first transaction must be the DID creation transaction and each subsequent transaction must spend the DID UTXO from the previous transaction and update the DID.

    • Optional didIndex: number

      The index of the did to resolve from the batch creation, if applicable.

    Returns Did

    The current state of the DID resolved from the transactions.