Skip to content

Add shareable verification receipt links#212

Merged
kojibai merged 11 commits intomainfrom
codex/update-shared-url-to-show-verification-status
Jan 11, 2026
Merged

Add shareable verification receipt links#212
kojibai merged 11 commits intomainfrom
codex/update-shared-url-to-show-verification-status

Conversation

@kojibai
Copy link
Copy Markdown
Owner

@kojibai kojibai commented Jan 11, 2026

Motivation

  • Allow a verification link shared after a successful verify to reproduce the verified state for recipients so they can open the link and immediately see that the sigil was verified.
  • Avoid requiring recipients to upload the original SVG by encoding a compact receipt into the shared URL that the verifier can hydrate into its UI.

Description

  • Added a SharedReceipt type and helpers parseProofCapsule, readSharedReceiptFromLocation, encodeReceiptParam, and buildReceiptShareUrl to encode/decode a canonical receipt payload into a base64url r query parameter.
  • Wire VerifyPage to read an initial receipt (initialReceipt) and maintain sharedReceipt state, hydrate result/embeddedProof/proof hashes from the receipt when no SVG is present, and prefer the receipt-containing share URL when sharing (onShareReceipt).
  • Clear sharedReceipt whenever the user uploads, edits, or verifies a new SVG to avoid stale state, and import derivePhiKeyFromSig/base64UrlEncode to validate and construct hydrated state.
  • Changes confined to src/pages/VerifyPage.tsx and related helper usage; receipt encoding uses base64UrlEncode and canonical receiptJson produced by existing receiptJson logic.

Testing

  • No automated tests were run for this change.

Codex Task

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 11, 2026

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

Project Deployment Review Updated (UTC)
phi-network-5aii Ready Ready Preview, Comment Jan 11, 2026 5:23pm

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a0aec2e1e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…ating-status-a2p7y4

Include KAS and ZK fields from shared receipt into embedded proof
…ating-status

Include KAS and ZK fields from shared receipt into embedded proof
…issue

Fix ZK verification from shared receipts
@kojibai kojibai merged commit 5eb8bd5 into main Jan 11, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant