Function decodePrivateKey

  • Decodes a private key's bytes from a string. The input must be 32 bytes, represented as hex or Base64. Base64 padding is optional.

    Parameters

    • privateKey: string

      the private key string to decode

    Returns Buffer

    Throws

    TypeError if the private key format is incorrect.

Generated using TypeDoc