Skip to content

feat(identity): SEP-1/SEP-12 creator verification and verified badges… - #551

Merged
barry01-hash merged 1 commit into
PromptMintLabs:mainfrom
legend-esc:feat/500-sep-identity
Aug 31, 2026
Merged

feat(identity): SEP-1/SEP-12 creator verification and verified badges…#551
barry01-hash merged 1 commit into
PromptMintLabs:mainfrom
legend-esc:feat/500-sep-identity

Conversation

@legend-esc

Copy link
Copy Markdown
Contributor

Summary

Adds SEP-compatible creator identity verification and a verified-creator badge:

  • SEP-1 (Stellar Info File): a creator proves domain ownership by publishing a stellar.toml that lists their Stellar account (in ACCOUNTS or [[VERIFIED_CREATORS]]) plus a SIGNING_KEY.
  • SEP-12 (KYC / identity): a signed attestation object (mirroring a SEP-12 customer record) confirms the creator's verified legal/display identity; the signature is verified against the domain's SIGNING_KEY with ed25519.

Changes

  • src/lib/identity/ — types, a focused stellar.toml parser (fetch/parse/findCreatorInToml), verify (SEP-1 check + SEP-12 ed25519 signature verification via @stellar/stellar-base), and a localStorage cache so the badge renders consistently on the viewer's device.
  • src/hooks/useCreatorVerification.ts — drives verification against a creator-controlled domain.
  • src/components/VerifiedCreatorBadge.tsx — badge with method/domain/issuedAt tooltip; compact + full variants.
  • src/components/CreatorVerificationCard.tsx — lets the connected creator verify their identity from their profile.
  • Integrated into ReputationSummary and the public creator header in pages/profile/page.tsx.
  • Tests for the parser, SEP-1/SEP-12 verification (incl. tamper/replay rejection), the badge, and the hook (mocked fetch).
  • .changeset/sep-identity-500.md

Notes / follow-up

  • Verification results are cached locally; a backend-indexed claim (so badges are visible to all viewers) is the natural next step and would slot into useCreatorVerification via the existing stellarTomlUrl option.
  • stellar.toml must be served over HTTPS (enforced).

Closes #500

…PromptMintLabs#500)

Add SEP-compatible creator identity verification: creators prove domain
ownership via a stellar.toml (SEP-1) listing their Stellar account + a
SIGNING_KEY, and optionally a signed SEP-12 attestation. New lib/identity
parses/validates the TOML and verifies ed25519 attestation signatures;
useCreatorVerification drives the flow; VerifiedCreatorBadge renders the
badge; CreatorVerificationCard lets connected creators verify from their
profile. Badge appears on reputation summaries and public creator profiles.

Co-Authored-By: Kilo <kilo@github.com>
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@legend-esc 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

@barry01-hash
barry01-hash merged commit eb5ce28 into PromptMintLabs:main Aug 31, 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.

Add SEP-compatible identity and creator verification

2 participants