Concepts

Receipts and proof

How an Abazi receipt is built, signed, chained and anchored on Solana, and the four checks anyone can run on one without an account.

View as .mdUpdated
Don't trust the log. Check the receipt. Every payment gets a receipt: canonical JSON, hashed with SHA-256, signed with Ed25519, linked to the organization's previous receipt and anchored on Solana. Anyone with the link can run four checks without an account and without trusting Abazi's database.

Who needs it

Owners and finance, who want proof that does not depend on Abazi's word. Auditors and counterparties, who were sent a receipt link. Merchants, whose disputes start from a receipt.

What a receipt contains

A receipt is issued for each payment, refund, installment, sweep and revocation. Its body has fixed fields:

GroupFields
WhoOrganization, agent, mandate and its version, approval and approver when there was one
DecisionALLOW and the reason code
WhomMerchant name and its trust tier at the time
WhatAmount, asset, network, rail, payout address, settlement reference, delivery status
OrderIssue time, sequence number and the previous receipt's hash

The agent's stated purpose is not in the receipt.

How it is built

Canonical JSON. The body is serialized with RFC 8785, so the same data always gives the same bytes.
Hash. SHA-256 of those bytes.
Signature. Ed25519 over the hash, with the active receipt key. The key id is stored with the receipt, and the public keys are published at /.well-known/uapg-receipt-keys.json.
Chain. Each organization's receipts form one sequence. Each body carries its sequence number and the previous receipt's hash; the first one uses 64 zeros.
Anchor. A background task writes the memo uapg:v1: followed by the hash to Solana. The anchor is pending until that transaction is finalized.

The four checks

Receipt verifier

What do the four checks prove, and what makes one fail?

Receipt body (trimmed)

"receipt_id":"rcpt_example"
"type":"payment"
"decision":"ALLOW"
"amount_base_units":"50000"
"asset":"USDC"
"seq":42
"prev_hash":"5a18…c3e2"

Envelope

"hash":"9f2c…41ab"
"signature":"Ed25519 over the hash"
"anchor":"Solana, finalized"
  1. body
  2. canonical JSON
  3. SHA-256
  4. signed · chained · anchored

Checks

  1. 1. HashPASS

    Recomputed hash equals the stated hash 9f2c…41ab.

  2. 2. SignaturePASS

    The Ed25519 signature verifies over the recomputed hash with the published key.

  3. 3. Chain linkPASS

    prev_hash 5a18…c3e2 equals the hash of the previous receipt.

  4. 4. AnchorPASS

    The finalized memo on Solana says uapg:v1:9f2c…41ab.

ResultPASS
Text description

A receipt is a JSON body plus four envelope fields: hash, signature, key id and anchor. The body is serialized as canonical JSON (RFC 8785) and hashed with SHA-256. The hash is signed with Ed25519; the public keys are published. The body carries its sequence number and the previous receipt's hash, so each organization's receipts form a chain. The hash is written to Solana in a memo that reads uapg:v1 followed by the hash.

  1. Hash: recompute SHA-256 over the canonical body and compare it with the stated hash.
  2. Signature: verify the Ed25519 signature over the recomputed hash with the published key. Because it is checked against the recomputed hash, changing the body fails both the hash and the signature.
  3. Chain link: the body's prev_hash must equal the hash of the previous receipt in the chain (64 zeros for the first). Rewriting an earlier receipt breaks the link of the one after it.
  4. Anchor: PENDING until the memo transaction is finalized; then the memo must equal uapg:v1 plus the recomputed hash.

The overall result is FAIL if any check fails, PASS if all four pass, and PENDING otherwise.

Current state: Hash PASS, Signature PASS, Chain link PASS, Anchor PASS. Result PASS.

CheckPasses whenCatches
HashThe SHA-256 of the canonical body equals the stated hash.Any change to any field.
SignatureThe Ed25519 signature over that recomputed hash verifies with the published key.A body changed and re-hashed by someone without Abazi's key.
Chain linkThe previous-hash field equals the hash of the receipt before it in the sequence (64 zeros for the first).A receipt removed or inserted in the middle.
On-chain anchorA finalized Solana memo transaction contains this hash. PENDING until finalized.A receipt rewritten after it was anchored.

All four PASS gives PASS. Any FAIL gives FAIL. Otherwise, while the anchor is not final, the result is PENDING.

Public receipt verification page with four checks
The public receipt check: four checks, no account needed.Captured 2026-11-16

Boundary

  • Append-only. A receipt is never edited. A correction is a new receipt, for example a refund receipt linked to the original. The anchor status is kept apart from the receipt for that reason.
  • Public by link. Anyone with a receipt's id can open its public check, GETVerify receipt publicly/verify/{id}. Ids are unguessable. The public view shows the receipt, its settlement and the paying organization's name, and nothing else from the organization's account.
  • An anchor is a timestamp, not a payment. A pending or failed anchor does not affect the payment it describes.
  • What a PASS proves. That this exact body was signed by Abazi's receipt key, sits in the organization's sequence and was anchored on Solana. It does not prove the merchant delivered what was promised; delivery status is a field, and disputes cover the rest.

Example

The published receipt key, from GETList receipt signing keys/.well-known/uapg-receipt-keys.json:

{"keys":[{"kid":"rk_2026_11","kty":"OKP","crv":"Ed25519","x":"wJip5rVmdSNAfa3tYwbrkVP-CrFQDjSUE2ZFTKDJwuo","status":"active"}]}
capturedthe active Ed25519 receipt key, captured from the Abazi API· the Abazi API · 2026-11-16· exit 0

The public check of a receipt for an x402 payment on Solana, from GETVerify receipt publicly/verify/{id}. Trimmed: hashes, signature, addresses, transaction references, links, the merchant name and the organization name are removed.

{
  "result": "PASS",
  "checks": { "hash": "PASS", "signature": "PASS", "chain": "PASS", "anchor": "PASS" },
  "receipt": {
    "receipt_id": "rcpt_01m7gybm28hgtyebv1g9n36dzy",
    "type": "payment",
    "decision": "ALLOW",
    "reason_code": "WITHIN_POLICY",
    "merchant_tier": "VERIFIED",
    "amount_base_units": "50000",
    "asset": "USDC",
    "network": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
    "rail": "x402",
    "delivery_status": "delivered",
    "seq": 1,
    "prev_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "kid": "rk_2026_11",
    "anchor": { "status": "finalized" }
  }
}
capturedall four checks pass and the anchor is finalized, captured from the Abazi API· the Abazi API · 2026-11-16· exit 0

The amount is in base units with six decimals: 50000 is 0.05 USDC. This is the organization's first receipt, so its previous hash is 64 zeros.

Failure cases

CaseResult
One character of the body changedHash, Signature and Anchor FAIL, because the signature and the on-chain memo are checked against the hash recomputed from the body. Chain link still passes. The result is FAIL.
A receipt removed from the middle of the sequenceChain link FAIL on the receipt after it.
The memo transaction is not finalized yetAnchor PENDING. The result is PENDING.
An unknown idNot found.

How to verify

  • In a browser: the public check page shows the receipt in readable form, the four checks, a JSON download and a link to the anchor on a Solana explorer.
  • On your own: download the JSON, serialize the body with RFC 8785, hash it, verify the signature with the published key, compare the previous hash, and look up the memo. The verify a receipt guide walks through each step.

Next steps

On this page