• Converts a public key between compressed and uncompressed formats.

    Parameters

    • publicKey: Buffer

      Public key as a Buffer (33 bytes compressed or 65 bytes uncompressed)

    • compressed: boolean = true

      Boolean flag indicating whether the output should be compressed

    Returns Buffer

    Converted public key as a Buffer