Skip to main content

Chia Concepts

This section will provide a basic overview of Chia's network. We'll go into much more detail in later sections.

Chia's Network​

There are different types of peer-to-peer (P2P) networks, such as BitTorrent, Bitcoin, and Chia. The Chia network is a blockchain that performs several major functions, including processing financial transactions, running programs written in Chialisp on the Chialisp Virtual Machine (CLVM), and minting tokens from XCH (Chia's base currency). The network is composed of hundreds of thousands of nodes, each of which stores a copy of the blockchain's history, while also propagating new transactions across the network.

Coins and Transactions​

Chia uses the coin set (UTXO) model to keep track of the network's state. In this model, a coin is a first-class object. Each coin is locked with a serialized CLVM program called a puzzle, which is then hashed to create a puzzle hash. The coin's ID is a hash of its parent coin's ID, its puzzlehash, and its amount.

Each transaction in Chia must spend at least one coin. In order to spend a coin, one must provide the original puzzle, as well as a valid solution, and an optional aggregated signature. Multiple coins can communicate with each other in the same transaction by using announcements.

For more information check out the Coin Set Intro page and the Chialisp.com website.

Full Nodes​

Chia nodes connect to a random subset of other Chia nodes, called peers. The nodes periodically send and receive information from peers, which is then stored locally in a peer database. Each node broadcasts all new transactions and blocks that they see to their peers, which in turn relay this information to their peers, resulting in the information quickly being propagated throughout the network. When first starting up, nodes have to synchronize to the blockchain, by downloading the entire history of blocks and transactions.

info

The Full Node Protocol can be found in the Peer Protocol page.

Additionally, nodes have the option of farming to help secure the network. They do this by storing large files called plots, which mostly consist of random data called proofs of space. These proofs of space function as tickets in an ongoing lottery. The more plots a farmer stores, the higher the probability of winning.

info

The plot construction protocol is laid out in the Proof of Space page.

The prize for winning the lottery is called the block reward. Initially, this reward is 2 XCH. However, the reward amount is cut in half approximately every three years for the first 12 years of Chia's existence. From that point forward, the reward will always be 1/8 of an XCH.

info

More info on the block reward structure can be found in the Block Rewards page.

While "XCH" is a convenient way to denominate Chia coins, the blockchain only knows about mojos. These are the smallest denomination of Chia's coins. Each mojo is worth one trillionth (1/1,000,000,000,000) of an XCH.

Timelord nodes​

Timelord nodes broadcast proofs of time (explained in the VDFs page) around every nine seconds. This is equivalent to selecting and broadcasting the winning numbers in an ongoing lottery. When a farmer has a valid proof of space, they win the current lottery drawing. This allows them to process the highest-paying transactions from the mempool into a new block. They then broadcast this block to the rest of the network. Around one out of every three blocks contains transactions. The rest of the blocks are empty, but do pay a reward. (See the Foliage page for more details.)

info

The timelord algorithm is explained in the Timelord Algorithm page.

Wallets​

Wallets are programs that allow users to interact with the blockchain, by signing and submitting transactions to full nodes. The Chia company includes its official wallet with a typical installation. However, third-party wallets also exist.

info

The Light Clients page has more info on wallets.

Pools​

Pools allow farmers to smooth out their rewards. They pay out small rewards frequently, often daily. They tend to charge a small fee for their services. The Chia company doesn't run its own pools. Many popular Chia pools also offer services for farming or mining other cryptocurrencies.

info

For more info on Chia's pooling protocol, see the Pool Protocol page.

The rest of the documentation will go in-depth for each of the above topics.