Skip to main content
The lucid_reputation program stores verifiable reputation data for AI assets on Solana. It tracks feedback scores, third-party validations, and supports revocation — all linked to cryptographic receipt hashes. Program ID (devnet): 4FWEH1XQb7p1pU9r8Ap8xomDYVxdSdwk6fFT8XD63G3A

Instructions

Account Structures

PassportStats

PDA seeds: ["stats", passport_id_bytes] Rolling aggregates maintained atomically on every feedback submission or revocation.

FeedbackEntry

PDA seeds: ["feedback", passport_id_bytes, index_le_bytes]

ValidationEntry

PDA seeds: ["validation", passport_id_bytes, receipt_hash]

Usage

Revocation

Only the original submitter can revoke their feedback. On revocation:
  • feedback.revoked is set to true
  • stats.total_score is decremented by the revoked score
  • stats.avg_score is recomputed from remaining non-revoked entries
  • stats.feedback_count is not decremented (it tracks total entries for PDA derivation)

Events