Skip to main content

Architecture

Normal Transaction Flow

This is the normal lifecycle of a Tezos transaction:

Normal Flow

  1. User submits a transaction to a Tezos node actings as RPC gateway: it could be a local node, or a backend node operated by the Defi or NFT Dapp,
  2. The transaction is added to the mempool and propagates via the peer-to-peer network,
  3. The baker bakes a block and injects it to its node,
  4. The block gets propagated to the Tezos network.

We can see that this transcation is not private before getting included in a block: the RPC Gateway, the baker and anyone observing the mempool can see the transaction.

Flashbake Transaction Flow

Flashbake Flow

  1. User submits a transaction to the Flashbake Relay. It could be the relay hosted here (https://relay.flashbake.xyz) or the user may run their own,
  2. The Flashbake Relay requires a Tezos node running locally. For all intents and purposes (except injection), the Flasbake Relay acts as a Tezos Node and forwards all RPC queries to it,
  3. The injection operation is intercepted. The node queries the Registry Contact for the next flashbake-capable baker's endpoint address, then forwards the operation to it,
  4. The flashbake-capable baker (or Flashbaker) queries the Flashbake Endpoint for Flashbake operations and uses them, as well as its node mempool, to assemble a block,
  5. The baker bakes a block and injects it to its node,
  6. The block gets propagated to the Tezos network.

The operation is kept private from anyone except the relay and the baker, until the block is propagated. Assuming the user is running their own relay, the operation is private from everyone but the baker.

It is possible to run this entire flow in isolation in a private network. For more information, see our prototype repo.