Skip to content

Comments

Add verifyAdr36 verification support to provider app#212

Draft
Copilot wants to merge 2 commits intodevelopfrom
copilot/add-verifyadr36-support
Draft

Add verifyAdr36 verification support to provider app#212
Copilot wants to merge 2 commits intodevelopfrom
copilot/add-verifyadr36-support

Conversation

Copy link

Copilot AI commented Feb 18, 2026

Aligns provider app auth implementation with middleman app to support both ERC4361 and ADR36 signature verification methods.

Changes

  • apps/provider/package.json: Updated @poktscan/vault-siwp from #shannon to #shannon-adr36
  • apps/provider/src/auth.ts: Replaced siwp.verify() with parallel verification via Promise.allSettled:
const results = await Promise.allSettled([
  siwp.verifyERC4361({ signature, domain, publicKey }),
  siwp.verifyAdr36({ signature, domain, publicKey }),
]);

if (results.every((result) => result.status === "rejected")) {
  throw (results.at(0) as PromiseRejectedResult).reason;
}

const result = results.find((result) => result.status === "fulfilled")!.value;

Authentication succeeds if either verification method passes, matching middleman behavior.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: jhenriquez <408459+jhenriquez@users.noreply.github.com>
Copilot AI changed the title [WIP] Add verifyAdr36 verification support to provider app Add verifyAdr36 verification support to provider app Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants