Skip to content

Commit

Permalink
hex prefix the sig so we don't need to re-sign every time
Browse files Browse the repository at this point in the history
  • Loading branch information
glitch003 committed Mar 15, 2024
1 parent 6d1e118 commit dc64d3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ export class LitNodeClientNodeJs
const authSigSiweMessage = new siwe.SiweMessage(authSig.signedMessage);

try {
await authSigSiweMessage.validate(authSig.sig);
await authSigSiweMessage.verify({signature: hexPrefixed(authSig.sig)});
} catch (e) {
console.debug('Need retry because verify failed', e);
return true;
Expand Down

0 comments on commit dc64d3a

Please sign in to comment.