Function pubKeyToBytes

Converts the given public key to a bytestring

  • Parameters

    • pubKey: Uint8Array

      The public key to convert.

    • Optionaluncompressed: boolean

      Whether the public key has already been compressed.

    Returns Uint8Array

    A byte array representing the converted public key.