Skip to content

Commit

Permalink
checkKeyCompatibility: reject v5 keys
Browse files Browse the repository at this point in the history
  • Loading branch information
larabr committed Jul 15, 2024
1 parent be320b2 commit 4cc9ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/key/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
}

Expand Down

0 comments on commit 4cc9ff7

Please sign in to comment.