Function generateDID

  • Generate a DID and DID Document along with mnemonic and key pairs.

    Parameters

    • Optional strength: number

      The strength of the mnemonic to generate.

    • Optional rng: ((size) => Buffer)

      A custom random number generator function.

        • (size): Buffer
        • Parameters

          • size: number

          Returns Buffer

    • Optional wordlist: string[]

      A custom wordlist for generating the mnemonic.

    Returns GenerateResult

    An object containing the mnemonic, DID, DID Document, and key pairs.