Skip to content

Commit

Permalink
fix: fix verification error warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman035 committed Nov 24, 2023
1 parent e6ab38d commit c144f66
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/restapi/src/lib/helpers/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c144f66

Please sign in to comment.