• Elliptic Curve point decompression

    Parameters

    • comp: Uint8Array<ArrayBufferLike>

      Compressed public key. 1st byte: 0x02 for even or 0x03 for odd. Following curve size n bytes: x coordinate expressed as big-endian.

    • curve: Curve = 'P-256'

    Returns Uint8Array<ArrayBuffer>