Skip to content

On‑Chain Snippet Ownership Proof - #180

Open
femiolutayo wants to merge 1 commit into
SudiptaPaul-31:mainfrom
femiolutayo:On‑Chain

Hidden character warning

The head ref may contain hidden characters: "On\u2011Chain"
Open

On‑Chain Snippet Ownership Proof#180
femiolutayo wants to merge 1 commit into
SudiptaPaul-31:mainfrom
femiolutayo:On‑Chain

Conversation

@femiolutayo

Copy link
Copy Markdown
Contributor

##closes #159

Add On-Chain Snippet Ownership Proofs

Summary

  • Add canonical Stellar wallet signing and verification for snippet ownership.
  • Generate and validate ownership proofs during snippet creation.
  • Persist proofs in an append-only database table.
  • Anchor verified proofs on Stellar for auditability.
  • Add ownership proof verification API endpoint.
  • Display verified ownership badges in the frontend.
  • Add audit logging for proof generation and verification attempts.
  • Add tests for valid, tampered, wrong-wallet, and replay scenarios.

API

GET /api/snippets/:id/ownership-proof

Returns:

{
  "verified": true,
  "proof": {
    "snippetId": "...",
    "hash": "...",
    "ownerWallet": "...",
    "signature": "...",
    "createdAt": "...",
    "anchoredTransactionHash": "..."
  }
}

Database

Run:

scripts/add-snippet-ownership-proofs.sql

Testing

  • Stellar signing smoke test passed.
  • Changed files report no TypeScript diagnostics.
  • Jest is currently blocked because jest-environment-jsdom is not installed.

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

@femiolutayo is attempting to deploy a commit to the Sudipta 's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@femiolutayo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@SudiptaPaul-31

Copy link
Copy Markdown
Owner

@femiolutayo resolve conflicts and why so much code change like nearly so many lines of code are deleted are u sure what u did or just ur agent did whatever it can

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.

On‑Chain Snippet Ownership Proof

2 participants