• Parse magic bytes on prefixed key-buffer to determine the cryptosystem & the unprefixed key-buffer.

    Parameters

    • prefixedKey: ArrayBuffer

    Returns
        | { keyBuffer: ArrayBuffer; type: "rsa" }
        | { keyBuffer: ArrayBuffer; type: "ed25519" }
        | { keyBuffer: ArrayBuffer; type: "bls12-381" }