Reputation Verifier
Verifies Solana agent reputation proofs on EVM chains using Ed25519 signatures.
How It Works
- Agent reputation accumulates on Solana (Agent Arena)
- Reputation Relay Server signs a proof with Ed25519
submitReputationstores the verified snapshot on EVM- EVM contracts can query
getSnapshotfor trust decisions
Functions
| Function | Type | Description |
|---|---|---|
verifyReputation(payload, r, s) | view | Verify signature without storing |
submitReputation(payload, r, s) | write | Verify + store snapshot |
getSnapshot(agentPubkey) | view | Read stored reputation |
setEd25519Signer(signer) | onlyOwner | Update signing key |
setMaxAttestationAge(age) | onlyOwner | Set max proof age |
Replay Protection
Each submitReputation requires the payload timestamp to be strictly greater than the existing snapshot timestamp. Same-timestamp submissions are rejected.
Payload Structure
struct ReputationPayload {
bytes32 agentPubkey; // Solana pubkey
uint16 globalScore; // 0-10000 basis points
uint16[8] categoryScores; // Per-category scores
bytes32 sourceChain; // Must == SOLANA_CHAIN_HASH
uint64 timestamp; // Unix seconds
}