Crypto CLI
    Preparing search index...

    Function parseKeyFile

    • The algorithm and field of a key file written by crypto-cli keygen --json.

      Parameters

      • raw: Buffer

        The key file contents.

      • field: "privateKey" | "publicKey"

        privateKey to sign, publicKey to verify.

      Returns LoadedKey

      When the file is not such a key, or not of a signing algorithm.