Skip to content

pin signed SIWE message in coinbase claim route#28

Open
patnir wants to merge 1 commit into
masterfrom
pin-coinbase-siwe-message
Open

pin signed SIWE message in coinbase claim route#28
patnir wants to merge 1 commit into
masterfrom
pin-coinbase-siwe-message

Conversation

@patnir

@patnir patnir commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Demonstrates the third-party integrator pin on the offchain /coinbase claim flow. Before trusting the Base Verify token, the app now confirms the user signed exactly what we asked for: the right action and a signature that really comes from the wallet in the message. Trait pinning already existed; this adds action pinning and signature-to-wallet binding.

Test plan

  • Claim normally with an eligible Coinbase One wallet -> succeeds
  • Edit the SIWE message to drop the action before signing -> 400 "Signed message failed verification"
  • Submit a signature for a different message -> 400
  • Confirm smart-wallet (Base Account) signatures still pass

type=routine
risk=low
impact=sev5

- verify the signature matches the wallet named in the message (handles smart wallets via viem)
- pin the action to the one this airdrop gates on, so users cant swap it to mint a second token
- shows what a third-party integrator should do instead of trusting the token blindly
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
base-camp-verify-demo Ready Ready Preview, Comment Jun 19, 2026 6:11pm

Request Review

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.

1 participant