How TACIT works

docs

What it is

TACIT is a layer 3: its own chain, with its own blocks, that records a commitment to those blocks on Elysium. Every transaction on it is private. There is no transparent mode and there are no accounts.

The chain keeps two lists. Outputs are coins: a one-time address and a sealed amount. Key images are spends: one tag per output that has been spent, which does not say which output. A payment adds a few outputs and a few key images. That is the whole state.

A payment

SenderA 16-member MLSAG ring signature over ristretto255. The real input sits among 15 decoys picked from the chain. The signature proves ownership of one member and knowledge of its amount, without saying which.
ReceiverA one-time address P = H(r·B, i)·G + A, derived by the sender from the receiver's public address (A, B) and a random r. The receiver recognises it with the view key: H(b·R, i)·G + A.
AmountA Pedersen commitment C = x·G + v·H. Inputs minus outputs minus the fee must be a commitment to zero. Each output carries a 48-bit range proof so no amount can be negative.
Double spendThe key image I = x·Hp(P) is fixed for a given output. The chain refuses a key image it has seen.
Fee0.01 TACIT, public, paid to the faucet.

Transactions are built in the browser. The code that builds them is the same file the sequencer verifies with: /rct.js.

Addresses

A TACIT address starts with tct1 and encodes two public keys, spend and view, with a checksum. It never appears on the chain. Sharing it lets people pay you; it does not let them see what you received.

The DEX

Swaps are a transaction type of the chain itself. There is no contract and no account to trade from. The chain carries three assets, TACIT, tUSD and tHYPE, and two constant-product pools that hold TACIT against each of the other two.

AssetsEvery output carries a public asset tag. A ring only holds outputs of one asset, and amounts must balance asset by asset, so one asset can never turn into another outside a pool.
A swapA normal private transaction that also hands a stated amount of one asset to a pool: swap { pool, from, amt, min, P }. The inputs are ring-signed, the change is sealed, and P is a one-time address made the same way as any payment's.
The fillThe block fills swaps in order: out = reserveOut · x / (reserveIn + x) with x = amt · 0.997. The pool pays out to P. If the price moved and out is below min, the swap is left out of the block and nothing is spent.
PublicThe pair, the size of the trade, the pool's holdings. A pool cannot price a trade it cannot see.
SealedWho traded (1 of 16), where the coins went (a one-time address), what the trader had before and has left, and any link between two swaps by the same wallet.
Fees0.3% of the amount in stays in the pool. The transaction fee is 0.01 TACIT whatever the asset.

The coins a pool pays out are ordinary outputs. They sit in later rings like any other and are spent with the same proofs. The asset tag of every output is part of the state root.

The sequencer

One sequencer orders transactions. It checks every proof, makes a block when there is a transaction waiting, and makes one at least every 30 seconds. Each block also issues testnet coin to the faucet, in the open, so the faucet can pay it out privately.

The sequencer can refuse or delay a transaction. It cannot forge a signature, spend an output it does not own, or tell who paid whom.

Settlement

Every 20 blocks form a batch. The sequencer posts one transaction per batch to TacitSettlement on Elysium:

postBatch(index, fromHeight, toHeight, blocksRoot, stateRoot)
blocksRootSHA3-256 Merkle root of the block hashes in the batch.
stateRootSHA3-256(outputs ‖ keyImages ‖ count ‖ count), where each of the first two is a running hash: next = SHA3-256(previous ‖ item) over every output and every key image since the start.

The contract requires batch numbers and heights to continue without a gap, chains each batch to the one before with keccak256, and accepts posts only from the sequencer address. It holds no funds and has no owner functions beyond a two-step handover of the sequencer role.

Because the state root is a running hash, a batch can only be valid if it starts exactly where the previous batch ended. Dropping an output, adding a spend or reordering anything changes every root after it.

Check it yourself

  • A transaction: open it in the explorer and press verify. Your browser re-checks the ring signatures, range proofs and balance.
  • A batch: open settlement and press verify. Your browser rebuilds both hashes from the batch's data, reads the batch from Elysium's RPC, and checks it starts where the previous batch ended.

API

GET  /api/stats                    height, outputs, key images, settlement summary
GET  /api/blocks?limit=15          latest blocks
GET  /api/block/:heightOrHash      one block and its transactions
GET  /api/tx/:id                   one transaction, as the explorer shows it
GET  /api/rawtx/:id                the full transaction and its ring members
GET  /api/outputs?from=0&limit=    outputs in order, for wallets to scan
POST /api/spent    {kis:[…]}       which key images are spent
GET  /api/decoys?n=15&asset=0&avoid= random ring members of one asset
GET  /api/dex                      assets, pools, the latest swaps
POST /api/tx       {tx}            submit a private transaction or swap
POST /api/faucet   {address}       25 TACIT, once an hour
GET  /api/settlement               contract, batches, the open batch
GET  /api/settlement/batch/:i      a batch with its hashes, outputs and key images

Run it

npm install
npm run dev            # local Elysium (anvil) + contract + node on :8354
npm test               # proofs, roots, and an end-to-end run against a local Elysium
npm run test:contracts # forge tests for TacitSettlement

A node posts batches only when SETTLEMENT_ADDR and SETTLE_KEY are set and the key is the contract's sequencer. Otherwise it seals batches and says so.

Limits

  • One sequencer. Liveness depends on it.
  • Elysium records batches; it does not verify what is inside them. Verification is done by anyone replaying the public data.
  • No bridge. Testnet TACIT is issued to the faucet, which pays it out privately.
  • The pools are seeded by the network. Adding your own liquidity is not open yet.
  • The node you connect to sees your IP address.
  • Transactions are large (about 40 KB for one input and two outputs) because range proofs are not aggregated yet.