From c144f66bcb1aa7b129a5dfbb706fd43c91e0627e Mon Sep 17 00:00:00 2001 From: aman035 Date: Fri, 24 Nov 2023 13:05:38 +0530 Subject: [PATCH] fix: fix verification error warn --- packages/restapi/src/lib/helpers/crypto.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/restapi/src/lib/helpers/crypto.ts b/packages/restapi/src/lib/helpers/crypto.ts index 9c5a2778d..cb2cb18fb 100644 --- a/packages/restapi/src/lib/helpers/crypto.ts +++ b/packages/restapi/src/lib/helpers/crypto.ts @@ -505,7 +505,13 @@ export const verifyProfileKeys = async ( } try { - if (publicKey && publicKey.length > 0 && verificationProof) { + if ( + publicKey && + publicKey.length > 0 && + verificationProof && + // Allow pgp sig validation after eip191v2 only + verificationProof.split(':')[0] === 'eip191v2' + ) { const data = { caip10, did,