- parseMagicBytes(
prefixedKey: ArrayBuffer,
):
| { keyBuffer: ArrayBuffer; type: "rsa" }
| { keyBuffer: ArrayBuffer; type: "ed25519" }
| { keyBuffer: ArrayBuffer; type: "bls12-381" } Returns
| { keyBuffer: ArrayBuffer; type: "rsa" }
| { keyBuffer: ArrayBuffer; type: "ed25519" }
| { keyBuffer: ArrayBuffer; type: "bls12-381" }
Parse magic bytes on prefixed key-buffer to determine the cryptosystem & the unprefixed key-buffer.