Lotus notaries attest blocks and payments
Two records, two sizes, one idea: a statement anyone can check later, without taking a node at its word. A Lotus block can carry, in its coinbase, the height and hash of a Child chain 1 block its miner checked. Five notary nodes sign a receipt for each payment they saw first with no conflicting spend; three receipts out of five make the payment accepted in seconds.
- 55 bytes
- One anchor: a coinbase output naming a Child chain 1 block, at most one per Lotus block
- 228 bytes
- One notary receipt: a 164-byte body and a 64-byte Schnorr signature
- 3 of 5
- Receipts from distinct notary keys of one set make a payment accepted
- 0
- Consensus rules added by either: both are node policy, receipts since lotusd 12.5.11, anchors since 12.5.12
- Live
- Blocks: anchors
- Anchor format
- Verify an anchor
- Payments: receipts
- Receipt format
- Verify a receipt
- What each one proves
- Planned
- Sources
Live, from the network
Read while you look, never written. Your browser node asks a Lotus node over P2P (getuiq, families CHILD and FINALITY); while it is starting, or where WebSocket is blocked, the same JSON comes from the public REST API. The bytes are then decoded, hashed and checked by this page itself.
- Child chains checked
- —
Read by your browser node over P2P once it has checked the chain to its tip; from the public REST API until then.
Child chain 1, notarized by Lotus
- Anchors of checked blocks
- —
- On the best Child chain 1 branch
- —
- Child chain 1 blocks checked since the fork block
- —
- Latest anchor
- —
- Anchor bytes in that coinbase
- —
- Coinbase in that Lotus block
- —
—
Notary set and a receipt check
- Notary set
- —
- set_id
- —
—
Blocks
Child chain 1, notarized in Lotus blocks
Child chain 1 shares the Lotus history up to block 1,428,770 and continues under other rules. Lotus nodes check every block of it with its own header rules. From lotusd 12.5.12, a node that checks it and builds blocks (solo, pool, stratum, getblocktemplate, merged mining) writes one anchor in the coinbase of the blocks it builds: the chain id, height and hash of a Child chain 1 block it checked.
Which block
The block 6 below the tip of the best Child chain 1 branch the miner checked (-childchainanchordepth, 0 to 1,000). Child chain 1 targets one block every 2 minutes, so 6 blocks is about 12 minutes: deeper than the one- or two-block reorganisations of a chain with few miners. An anchor is written only when that block is higher than the latest one Lotus notarized, or when the latest one left the best branch.
Size and price
55 bytes a Lotus block at most: value (8), script length (1), script (46). The 46 script bytes are coinbase data: inside the 1,000 free data bytes of a plain coinbase, and part of the data burn of a pool block. At one Child chain 1 block every 2 minutes, at most about 40 KB a day. Before Napoleon a coinbase holds at most 3 data outputs; when the pool’s outputs take them, the anchor is left out of that block.
Never a consensus rule
No node requires an anchor, every release accepts the blocks, and a block whose anchor does not decode is as valid as any other. An anchor never enters chain work or chain selection, and it reads nothing from a parent chain: a reorganisation of a parent chain cannot change it.
When a branch changes
A Lotus reorganisation removes the anchors of the disconnected blocks from the index and adds those of the new branch. A Child chain 1 reorganisation leaves the anchor in place: that block existed and was checked at that Lotus height. The API then shows it with branch: "left" and branch_left_at_height, the last height both branches share.
Anchor format
One eMPP segment in an OP_RETURN OP_RESERVED <push> output of its own. Integers are little endian; the hash is in internal byte order (the reverse of how explorers show it). Here is a real one, byte for byte:
0000000000000000Value2eScript length6aOP_RETURN50OP_RESERVED2bPush of 43 bytes434e4f54Protocol id01Version01Type01Chainf5e51500Child height (u32, little endian)0e66eeac00000000Child block hash (internal byte order)
| Type | Bytes | Body | Status |
|---|---|---|---|
| 1, tip anchor | 43 | u32 child height, 32-byte child block hash | Shipped written and indexed since 12.5.12 |
| 2, range commitment | 47 | u32 first height, u32 last height, 32-byte Merkle root of the hashes of those child blocks of one branch, in height order | Reserved in the format; no release writes or indexes it |
The index records an anchor only when the coinbase carries exactly one well-formed type-1 segment, for a child chain of this network, above its fork block, with a hash that is not zero. Two or more, a wrong length, an unknown chain or a null hash: nothing is recorded for that block. A segment of another version or of an unknown type is ignored.
What a full node checks
Any miner can write an anchor with any height and hash. A full node therefore keeps two words apart:
- notarized: the anchor names a Child chain 1 block this node checked itself, with the child chain’s header rules. Listed under
anchors. - claimed_unchecked: the anchor names a block this node does not hold. Listed under
anchors_unchecked, never inanchors;notarizedstays false for that block, and a miner never lets such a claim stop it from writing the next anchor.
Every node keeps the anchors of its active chain in childchains.sqlite (Lotus height and hash, chain, child height and hash), written in the same transaction as the block they describe; after a crash it walks back to the last common block and reads forward. A pruned node indexes the blocks it still has and says so with index_complete: false.
A child block between two anchors is covered: the child headers this node checked link it to a later anchored block. The API names that later anchor with proof: {type: "descendant", from_height, to_height}; a block named directly gets proof: {type: "tip"}.
What a browser node can verify alone
The browser node (lotus-node.js, served by every Lotus node and used by this page) checks the proof of work and the difficulty of every Lotus header itself. To check that a Lotus block carries an anchor, it needs nothing else from anyone’s word:
- Ask where.
childchains/lotusia/notarized/<child height or hash>overgetuiq(familyCHILD, cost 2) or REST: the Lotus height and hash of the anchor. One round trip; this answer is one node’s view, nothing is proven yet. - Get the coinbase. Its id and raw bytes (family
CHAIN:blocks/<hash>/txs,txs/<txid>/raw). Hashing the bytes gives the txid: a node cannot change one byte without changing it. 570 bytes for the example above. - Prove it is in the block.
verifyTx: a BIP37merkleblockfrom a peer, checked against the merkle root of the header verified here. The 160-byte header is already held; the branch is 32 bytes per level of the block’s merkle tree. One round trip. - Read the anchor. Find the
6a 50 2b 434e4f54 01 01output and read the height and hash. Pure decoding, no trust.
Three round trips and about 1 kB on top of the headers. What the browser node does not do: check Child chain 1 under its own rules. That the named child block is valid is what the miner and the answering full nodes checked (checked_by_this_node); ask more than one node when it matters.
How to query it
REST (/api/v1/…), also over getuiq family CHILD | Answer |
|---|---|
childchains, childchains/lotusia | notarization: anchors in all, of checked blocks, on the best and on left branches, unchecked claims, first and latest anchor, blocks checked since the fork block, indexed height |
childchains/lotusia/anchors?limit=&before= | The anchors, highest Lotus height first; next_before pages back |
childchains/anchors/by-block/<height or hash> | The anchors one Lotus block writes, for every child chain |
childchains/lotusia/notarized/<hash or height> | notarized, and how: notarized_by (tip), covered_by (descendant), claimed_by (unchecked claims) |
Real answers of a public mainnet node, trimmed:
curl -s https://lotus-128.givelotus.org/api/v1/childchains/lotusia \
| jq .notarization
{
"anchors_written_by_this_node": true,
"anchor_depth": 6,
"blocks_checked_since_fork": 6361,
"anchors": 166,
"anchors_on_best_branch": 166,
"anchors_on_left_branches": 0,
"anchors_unchecked": 0,
"anchors_all": 166,
"first": {
"lotus_height": 1436331,
"child_height": 1434795,
"…": "…"
},
"latest": {
"kind": "tip",
"lotus_height": 1436630,
"lotus_hash": "00000000013ca3bbd9f9578f4d626b5011da06d02fd8189ff0941e3e76805e03",
"lotus_time": 1796120580,
"child_height": 1435125,
"child_hash": "0000000000809d3524181b34ab5f02a16811aa3d01a2eacc88eb362facee660e",
"checked_by_this_node": true,
"status": "notarized",
"branch": "best",
"branch_left_at_height": null
},
"indexed_height": 1436636,
"index_complete": true,
"kinds": [
"tip"
]
}
curl -s https://lotus-128.givelotus.org/api/v1/childchains/lotusia/notarized/1435123
{
"chain": "lotusia",
"label": "Child chain 1",
"child_height": 1435123,
"child_hash": "00000000009bacfc39f1b621ad85ee42585c5d556d31a4d9a09d0b6e8cd9025d",
"checked_by_this_node": true,
"branch": "best",
"notarized_by": [],
"claimed_by": [],
"covered_by": {
"lotus_height": 1436625,
"child_height": 1435124,
"status": "notarized",
"…": "…",
"proof": {
"type": "descendant",
"from_height": 1435123,
"to_height": 1435124
}
},
"notarized": true,
"kinds_indexed": [
"tip"
]
}
The same from a page, with the browser node:
// in a page, with lotus-node.js (the browser node of every Lotus node and of this site)
const node = await Lotus.connect({ network: 'mainnet' });
const r = await node.ui('childchains/lotusia/notarized/1435125'); // getuiq, family CHILD (3), cost 2
r.json.notarized; // true
r.height; // the tip of the node that answered
const v = await node.verifyTx('65817507d9c1a3058ac1b6bc8d90e218e2e79f5b0ebbe79fd62a2c35c42eccba', { block: 1436630 });
v.verified; // the coinbase is in that block: merkle proof against a header checked here
Payments
Payments, notarized by receipts
From lotusd 12.5.11, five Lotus nodes act as notaries. When a payment enters a notary’s mempool, the notary waits 500 ms; if it saw no other transaction spending any of the same coins, it signs a receipt and relays it. A wallet that holds valid receipts from 3 of the 5 notaries, and has seen no double-spend proof, shows the payment as accepted. A block, then finalization, still settles it.
The notary set
Set version 1, threshold 3, five keys on five fleet nodes. Each key was generated on its node and never left it in clear. The set is built into every release and pinned by the wallets with its set_id (TaggedHash("LotusNotarySet", body)): mainnet d82b1453e9b73f0ccd388eb1f0319ad0b190aeeae9fbc120e4b19f41e6c5d5a1.
03081cbdd057dacd1433b1ce7e02f073fcef16a8739440119d65ef876b2de12d37lotus-116036b35c06532ee9015b396c90acb49e4da75a22095b4ff896ab670d03d1a250194lotus-12003e3f26166eff080687fbb3c2530aa21936993104e30ad473adc58b4dbc1910f20lotus-12202ed36d9ad219be583300d669fa74dc85bff8a4951f9716da6ce16c97bb465b654lotus-12403919c2e4dc55546fc1af5bd29e19ec8c86c978d275af83dde1d5cbf771ec57eeelotus-126
A new set takes effect only through an update signed by at least 3 keys of the current set; the previous set stays trusted 3,600 s more, unless the update revokes it after a key leak. A node can withhold an update, never invent one. One leaked key forges one receipt of the three needed.
Receipt format
One receipt is one notary’s signed statement: “at issued_ms, this node had the transaction txid (exact bytes tx_hash) in its mempool on top of block tip_hash; it first saw it at first_seen_ms and had seen no other transaction spending any of its inputs.” A real one, byte for byte:
01Version01Schemeece7eff3Network magic01000000Notary set version00Key index03Flags46d783362e6f99bdtxidae8f88667d50bd36tx_hash (all bytes, input scripts included)f9e726e600000000Tip hash of the notaryd9eb1500Tip height0000000000000000Template id (unused, zero)eeec2431a2010000First seen (ms)e4ee2431a2010000Signed (ms)58020000Valid for (s)48a0f4096d4ccdb2Schnorr signature
Signature: digest = SHA256(SHA256("LotusNotaryReceipt") || SHA256("LotusNotaryReceipt") || body), signed with the Schnorr scheme of the Lotus script interpreter (64 bytes, no sighash byte). The tag keeps a receipt signature from ever being valid as a transaction signature or a set update. receipt_id = SHA256d(body || signature). The network magic in the body keeps a test-network receipt from verifying on mainnet.
Double-spend proofs
When a notary sees a second, valid spend of a coin, it builds a double-spend proof: the coin, and two signatures by its owner over two different transactions, with the exact signed preimages. About 500 bytes for a pay-to-public-key-hash coin, and verifiable without either transaction. It covers pay-to-public-key-hash, pay-to-public-key and Taproot key-path spends, with Schnorr or ECDSA signatures: what Lotus wallets sign. For other scripts the node records the conflict and signs nothing, without a portable proof. One transaction signed under two accepted fork values is the same payment, not a double spend, and no proof is built for it.
Fail closed
A notary never signs while a conflict on the payment’s coins, or on the coins of its unconfirmed ancestors, is undecided. Conflicts that cannot be examined at once are kept and examined again, or block the receipt. A conflicting transaction counts only when its spend is valid, and a peer that sends one with a bad signature is scored. Issuance is rationed: 200 receipts a second (burst 1,000) and 500 inputs a second (burst 5,000), one payer at most a tenth of that. The result: a flood of conflicts can delay or deny receipts on chosen coins, never produce a wrong receipt.
How a light client verifies a receipt itself
- Length and fields. 228 bytes, version 1, scheme 1, the client’s own network, no unknown flag bit, validity 1 to 86,400 s.
- Key.
set_versionis a set the client pinned;key_indexpicks the public key from it, never from the node. - Signature. Schnorr over the tagged digest of the 164-byte body.
- Freshness. Signed at most 2 minutes in the future, still within its validity (600 s as issued),
first_seen_msnot afterissued_ms. - Transaction. Its txid is the receipt’s
txid. - Threshold. At least 3 distinct key indexes of one set version, receipts of two set versions never added up, and no double-spend proof on any of its inputs.
Receipts and proofs reach a browser or phone node as raw P2P messages (sendfinality, finreceipt of 228 bytes, dsproof, getfinality for one txid); REST serves the same: finality/notaries, finality/status, finality/tx/<txid>, finality/dsproofs/<txid>, POST finality/submit and finality/verify, with WebSocket events tx_receipt, tx_accepted and tx_double_spend. The node, the web wallet, Lotus Desktop and the phone app check the same test vectors.
curl -s https://lotus-128.givelotus.org/api/v1/finality/tx/bd996f2e4faef57ce6422ed0dc74df315aa54e0206f39ffe05af71433683d746
{
"txid": "bd996f2e4faef57ce6422ed0dc74df315aa54e0206f39ffe05af71433683d746",
"status": "accepted",
"in_mempool": true,
"first_seen_ms": 1796120833517,
"accepted_ms": 1796120833785,
"threshold": 3,
"notaries": 5,
"set_version": 1,
"valid_receipts": 5,
"eligible": true,
"undecided": false,
"dsproofs": [],
"receipts": [
{
"key_index": 0,
"label": "lotus-116",
"issued_ms": 1796120833764,
"expiry_s": 600,
"fresh": true,
"check": "ok",
"hex": "0101ece7eff3…"
},
"… 4 more"
]
}
In the wallets and at the counter
The web wallet, the phone app and Lotus Desktop pin the notary set and verify each receipt themselves. Their labels: “Checking: 1 of 3 receipts”, then “Accepted by 3 of 5 network nodes, no conflict”, then block confirmations, and “Settled” only at the node’s finalized height. Never “final” for an accepted payment. The shop terminal of the web wallet and the phone app sends the payment to several fleet nodes, listens on at least two, and accepts after its own double-spend window, 2 s after the third receipt and no later than 3.5 s after it saw the payment, if no proof arrived on any connection. It keeps the transaction, the receipts and the window times.
Latency
Measured Time from a payment to its third receipt
- Median (p50)
- 675 ms
- 95th percentile
- 719 ms
- Under 2 s
- 100 %
- Payments measured
- 60
mainnet, 1 December 2026. Target: at least 95 % of payments with 3 receipts in under 2 s.
Measured before the fix of 12.5.11 on the test network: 12 of 36 payments sent through a node that was not a notary took more than 2 s to their third receipt, up to 9 s, though every node had the payment in its mempool within the same second. The cause was the notary starting its window from a queued callback; it now starts at mempool acceptance.
Measured after the fix, on 1 December 2026 with lotusd 12.5.12.1, from the payer’s side (from sending the payment to a public node until a public node shows 3 of 5 receipts): mainnet p50 675 ms, p95 719 ms, 60 of 60 payments under 2 s; napoleontest p50 667 ms, p95 723 ms, 60 of 60. Nearly all of it is the 500 ms notary window.
What each one proves, and what it does not
| Block anchor | Payment receipts | |
|---|---|---|
| Proves | The named Child chain 1 block existed when that Lotus block was mined, and the miner’s node had checked it. Its age is protected by all the work on top of that Lotus block. | 3 of 5 notaries had the payment first in their mempool, with no conflicting spend, on top of the block they name. |
| Does not prove | That every transaction of the child block is valid, or that Child chain 1 keeps that block on its best branch. | That the payment will be mined. A miner outside the fleet can still mine a conflicting transaction it kept private; the payer bond covers that case with collateral. |
| Two conflicting results | Possible on Child chain 1: both anchors stay, one shown as on a left branch. | Two conflicting payments can both reach 3 of 5 only if a notary signs both (3 + 3 > 5). A receipt contradicted by the chain at its own block is a proof that notary lied (checkreceipt). |
| Rule kind | Node policy: no consensus rule. | Node policy and P2P: no consensus rule. A receipt never makes a block invalid. |
| Cost | 55 bytes in a coinbase, at most one per Lotus block. | 228 bytes a receipt, 3 to 5 a payment, never on chain. |
Planned, not in a release
Designed or reserved in the protocols; none of it is written by a released node.
Child chain 1 history since block 1,428,771
Record type 2: one Lotus block commits to a range of checked child blocks with a Merkle root, and the node serves an inclusion proof for each. The format and size (47 bytes) are reserved; open, not built. The routes already answer per child block with the kind of record and its proof.
Open, bonded notaries
Notaries beyond the five fleet keys, admitted with a bond. A condition for the next item.
Receipts as a consensus rule
Today a receipt is node policy. Making it a network rule needs open notaries first.
One aggregated certificate
Scheme 2: the signers co-sign one statement with MuSig2 or FROST, one 64-byte signature and a signer bitmap in place of 3 to 5 receipts. Same body layout and tag; no release produces or accepts it.
Sources
- lotusd 12.5.12:
src/childchain/anchor.h(format, sizes, depth),src/childchain/view.cpp(statuses, proofs, counters),doc/child-chains.mdsection Notarization,doc/p2p-ui-verbs.md(families and costs) and the 12.5.12 release notes. - lotusd 12.5.11 and 12.5.12:
doc/finality/receipts.md(receipt, notary set, double-spend proof, node limits, terminal),src/finality/receipt.handmanager.h(constants), the 12.5.11 release notes (latency before and after the fix). - Mainnet records read on 1 December 2026 from the public API of
lotus-128.givelotus.org: the coinbase of block 1,436,630 and the receipts of one payment. The byte maps were decoded by this site’s build and checked against the API; the five receipt signatures verify withlotus-node.js. - The browser node: documentation (header checks,
verifyTx).
