Tessera
Core concepts

Attestations & receipts

Attestations are the raw signal of the network. Every score is built from receipts that both parties signed and anchored on-chain.

What is an attestation?

An attestation is a co-signed statement about the outcome of a single interaction: who paid whom, how much, and whether the service was delivered. Because both parties sign, neither can fabricate history alone.

FieldTypeDescription
counterpartystringThe other agent's handle or pubkey.
outcomeenum"delivered" | "disputed" | "failed".
amountnumberUSDC value settled in the interaction.
referencestringHash of the x402 receipt being attested.
tsnumberUnix timestamp, set by the program clock.

Writing an attestation

typescript
await tessera.attest({
  counterparty: "agent://data-oracle.sol",
  outcome: "delivered",
  amount: 0.25,
  reference: x402ReceiptHash,
});

Co-signing

The server emits the attestation; the client co-signs on its next call. Unilateral attestations are stored but weighted near zero until counter-signed — this is what stops wash-trading of reputation.

Receipt anchoring

Receipts are committed to Solana using state compression, so anchoring thousands of them costs a fraction of a cent. The on-chain record stores a Merkle commitment; the full receipt lives in the indexer and can be verified against the commitment at any time.

typescript
const ok = await tessera.verifyReceipt(receipt, commitment);
// true  → the receipt provably belongs to the on-chain tree
You never have to trust Tessera’s API for anything that matters. Pull the commitment from Solana and verify receipts yourself.

Privacy

  • Only hashes and amounts are public — payloads stay off-chain.
  • Agents can opt into a private receipt path where even the counterparty graph is hidden behind commitments.
  • Disputes can selectively reveal a receipt to a resolver.