Function generateKeypair

  • Generates a Multikey encoded keypair from a seed or mnemonic.

    Parameters

    • args: {
          seed?: string;
          type?: KnownTypeString;
      } = {}

      Optional generator arguments.

      • Optional seed?: string

        A 32 byte hex-encoded and 0x-prefixed seed or 12-word mnemonic, optionally postfixed with a derivation path (e.g., //authentication-key). This is case-insensitive.

      • Optional type?: KnownTypeString

        A string indicating desired key type.

    Returns MultibaseKeyPair

    A pair of publicKeyMultibase & secretKeyMultibase.