How an exchange and a game batch signed actions
Showtime processed 20,000 order additions and cancellations per simulated second with 40 ingress calls per second. The p2pgame prototype groups signed player inputs into checkpoints. In both designs, a peer can carry someone else’s work while the canister keeps the final say.
How 500 actions fit in one call
An ingress message is a request from outside the Internet Computer to a canister. An order cancellation is an instruction inside that request. In Showtime’s backend test, a trader signed a pack of 20 order actions. A submitter collected 25 full packs for the same home collector. One replicated call then carried 500 actions.
ICP allows up to 1,000 messages in a block and produces 1–3 blocks per second, depending on subnet load and node count. A message can execute after the block that included it. Packing orders together saves ingress calls. The collector still pays the cost of checking and applying the actions inside.
ICP resource limits and block rates
- 20order actions in each signed pack
- 25signed packs for the same collector
- 1replicated ingress call carrying 500 actions
Who can forward an order, and who can spend?
The trader authorizes a local trading key once with their wallet. The key signs up to 20 actions together with a BIP340 Schnorr signature. The client encrypts that pack using its session with the home collector. A forwarding peer can read the routing information while the prices and quantities stay private.
The browser sends the encrypted bytes to an authenticated edge. The edge checks the deployment, destination, packet size and expiry before forwarding to an authorized submitter. A custody receipt means a peer has taken responsibility for the bytes. A verification query at the collector opens the packs, checks their signatures and seals the batch for submission.
The submitter sends that sealed batch in one replicated update. The collector checks the current account nonce and available funds. Accepted work goes to the shared matcher. The home collector applies the results to private orders and balances and returns an acknowledgement. These are the acknowledgements counted in the benchmark.
What the 20,000 and 30,000 runs measured
Six collectors and one matcher began with 50,000 resting orders in PocketIC. Half the actions cancelled an order and half placed a replacement. Bids stayed below asks, so the runs produced zero trades. At 40 and 60 replicated ingress calls per simulated second, the backend acknowledged 20,000 and 30,000 order actions per simulated second over the final ten seconds.
The harness offered work for 20 simulated seconds. All 400,000 or 600,000 actions reached acknowledgement by 20.5 seconds. The harness paused the simulated clock for signing, encryption and verification queries. It drove the backend directly, so browser signing speed, WebRTC delivery and public network latency need separate measurements.
In the game, send the move now and settle the window later
At each tick, a player encrypts a six-byte command and signs it with a BIP340 Schnorr key. The browser sends the signed input to peers that can build a proposal. Those peers circulate proposals and ask one another for missing commands. Several paths can deliver the same input. The referee verifies the signatures in bounded batches, then counts identical copies once.
A builder gathers inputs for 128 ticks, about 2.13 seconds of game time at 60 ticks per second. A referee query simulates that window and encrypts each player’s view of the candidate result. A replicated update checks that the candidate extends the current checkpoint. Acceptance releases a key specific to that candidate. A player needs both that key and their own session key to open their view.
Would waiting three milliseconds help?
The game project tested that question separately with four Rust peers, two relay paths and simulated link delays. In the burst case, three small messages arrived one millisecond apart. Reactor started a three-millisecond timer with the first eligible item for a peer. Later arrivals could share the frame without pushing its deadline back.
Both versions delivered 5,625 effects. On the simulated 20 ms round-trip path, grouping reduced data frames from 9,376 to 3,750. The 95th-percentile time from enqueue to effect went from 15 ms to 14 ms. Frame counts include warmup and drain. This transport trial used virtual links. It measured the cost of grouping messages separately from the arena’s gameplay and IC checkpoint path.
Implementation records
The Showtime record is pinned at 1844ee7. Its docs/clients.md traces a pack from wallet to submitter, peer/transport/src/wire_gate.rs defines the edge checks, and research/performance/sustained-liquidity-20261027.md defines the measured workload.
The arena protocol is pinned at e8ff1c3. Its backend/crates/protocol/src/timeline.rs sets the 128-tick window. Its backend/crates/admission/src/timeline.rs verifies owner inputs, and research/WHITEPAPER.md describes how checkpoint acceptance releases a private view. The separate Reactor transport comparison was recorded on 1 November 2026.