From 4cc9ff787d2e283592ba22c5cbcca2e06a056beb Mon Sep 17 00:00:00 2001 From: larabr <7375870+larabr@users.noreply.github.com> Date: Mon, 15 Jul 2024 15:03:50 +0200 Subject: [PATCH] `checkKeyCompatibility`: reject v5 keys --- lib/key/check.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/key/check.ts b/lib/key/check.ts index 5b34d15f..7079fe43 100644 --- a/lib/key/check.ts +++ b/lib/key/check.ts @@ -73,7 +73,7 @@ export function checkKeyCompatibility(publicKey: PublicKey) { enums.curve.secp256k1 ]); - if (publicKey.keyPacket.version > 5) { + if (publicKey.keyPacket.version > 4) { throw new Error(`Version ${publicKey.keyPacket.version} keys are currently not supported.`); }