Blockchain & Cryptocurrency Glossary

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

  • search-icon Clear Definitions
  • search-icon Practical
  • search-icon Technical
  • search-icon Related Terms

Baking

3 min read
Pronunciation
[bey-king]
Analogy
Think of baking as running a specialized bakery in a city-wide bread production system. Instead of every household needing to maintain their own baking equipment and expertise (like proof-of-work mining), citizens can either become certified bakers by purchasing professional equipment and posting a security deposit (staking directly), or they can provide their ingredients to established bakeries while keeping ownership (delegation). The city randomly selects which bakeries produce each day's bread based on the size of their operations, with larger bakeries being selected more frequently. Selected bakeries must follow precise recipes (protocol rules) and have their products verified by other bakeries (endorsements) before distribution. Just as baking bread transforms raw ingredients into a structured, useful product, Tezos baking transforms raw transactions into ordered, validated blocks that extend the blockchain.
Definition
The process of creating, validating, and adding new blocks to the Tezos blockchain through its liquid proof-of-stake consensus mechanism. Baking involves participants (called bakers) who have staked or been delegated a sufficient amount of XTZ tokens being selected to propose and endorse blocks according to their proportional stake, securing the network while earning rewards and transaction fees.
Key Points Intro
Tezos baking operates on four key mechanisms that implement its liquid proof-of-stake consensus system.
Key Points

Roll-Based Selection: Bakers are selected to propose or endorse blocks with probability proportional to their stake measured in rolls (currently 8,000 XTZ per roll).

Endorsement System: Each block requires validation through endorsements from multiple other bakers, creating additional security through attestation.

Delegation Framework: Allows XTZ holders to participate in baking returns without running node infrastructure by delegating to active bakers.

Slashing Conditions: Implements economic penalties for bakers who violate protocol rules, protecting against equivocation and other malicious behaviors.

Example
Michael decides to participate in the Tezos network as a baker, staking 40,000 XTZ (equivalent to 5 rolls) which represents approximately 0.01% of the active stake. He configures a secure baker node with appropriate hardware security modules to protect his private keys. For each cycle of 4,096 blocks (approximately 2.8 days), the Tezos protocol randomly assigns him rights to propose and endorse blocks in proportion to his stake. In a typical cycle, he might receive rights to bake 1-2 blocks and 30-40 endorsement slots. When selected to bake a block, his node collects transactions, constructs a valid block, and broadcasts it to the network. Other assigned endorsers verify and endorse his block, confirming its validity. For successfully baking a block, Michael receives both the standard block reward and included transaction fees. Meanwhile, 200 other Tezos holders have delegated an additional 160,000 XTZ to Michael's bakery, increasing his total staking power and proportional rewards, which he distributes to his delegators after deducting his 5% service fee.
Technical Deep Dive
Tezos baking implements a sophisticated consensus mechanism operating in fixed cycles of 4,096 blocks, with each cycle divided into 16 epochs of 256 blocks. The baker selection process uses a seed derived from random data included in previous blocks, combined with a baker's public key and stake snapshots taken 5 cycles earlier (creating a 2-week delay between stake changes and corresponding baking rights). This deterministic pseudo-random process assigns baking rights for each block height to specific baker public keys. The consensus mechanism requires both block proposal (baking) and block confirmation (endorsing), with multiple endorsers assigned to each block. Endorsements function as votes for a block, with consensus favoring the chain containing the most endorsements. The protocol requires a security deposit (frozen funds) of 640 XTZ per baked block and 2.5 XTZ per endorsement slot, which remains locked for 5 cycles and can be partially or fully forfeited if the baker engages in malicious behavior like double-baking or double-endorsing. Tezos implements delegation through an account-based model where delegation operations change account metadata without transferring custody of funds, allowing delegators to maintain full control of their XTZ while participating in baking returns. The baker software stack includes components for transaction selection, block formation, endorsement management, and delegate reward distribution, typically secured through HSMs (Hardware Security Modules) that protect the baker's private keys while allowing necessary signing operations.
Security Warning
When operating a Tezos baker, implement proper key management with hardware security modules. Unlike some staking systems, Tezos baking keys can potentially authorize transactions from your staked funds, making security breaches particularly damaging.
Caveat
While Tezos baking offers a relatively accessible staking system, it requires significant technical expertise to operate securely and reliably. The upfront costs for proper security infrastructure, particularly hardware security modules, can be substantial compared to the returns for smaller bakers. Additionally, the economics of baking have led to some centralization as economies of scale favor larger operations that can amortize fixed costs across more delegated stake. The time delay between stake changes and corresponding baking rights (5 cycles or approximately 14 days) creates a significant latency for new bakers to become fully operational or for stake adjustments to affect baking participation, which may impact dynamic participation during volatile market conditions.

Baking - Related Articles

No related articles for this term.