Testnet only. Sei Atlantic-2, chain 1328.Not audited. Test funds only.
TestnetOpen app

Security

Event archive

Why the app keeps a verified copy of the pool's events, and why you don't have to trust it.

Public Sei RPC nodes keep only a few days of event logs. A wallet setting up on a new phone has to read every pool event since the pool was deployed to rebuild the tree and find its notes. Without a copy, it can't.

Batin keeps a copy at /api/events/v1. Events are public chain data, with no keys and no plaintext. Nothing in the copy is taken on trust:

  • the leaves must run from 0 with no gaps, and must hash to a root the pool contract knows;
  • every nullifier must be marked spent in the contract;
  • every deposit must match its record in the contract.

The phone checks the root again before using the copy. A wrong copy can't move or steal funds: proofs are checked against the contract's own roots, and a note is only accepted if it decrypts and recomputes to its commitment. The worst a bad copy could do is hide a note until the phone reads the chain again.

The copy grows two ways. A daily job appends new blocks while the RPC still has them. Any phone that holds a fuller verified copy, for example one that synced before old blocks were pruned, can contribute it. The server checks it against the chain before keeping it.

batin-sdk 0.2 starts from the archive automatically (useArchive, on for the shared pool).

Source: apps/web/content/docs/archive.md