> For the complete documentation index, see [llms.txt](https://www.0x1.academy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.0x1.academy/gei-kai-fa-zhe-de-zhi-nan/public-chain.md).

# 公鏈

### 公鏈（Public Blockchain）是對所有人開放的區塊鏈。任何人都可以查看交易、運行節點、發送交易、參與挖礦或驗證。比特幣和以太坊都是公鏈。

***

## 公鏈的特點

| 特點   | 說明          |
| ---- | ----------- |
| 開放參與 | 任何人都可以加入網路  |
| 透明公開 | 所有交易都可以被查閱  |
| 去中心化 | 沒有單一控制者     |
| 抗審查  | 沒有人可以阻止合法交易 |
| 無需許可 | 不需要申請或批准    |

***

## 公鏈 vs 私鏈 vs 聯盟鏈

| 類型     | 參與者  | 透明度  | 適用場景      |
| ------ | ---- | ---- | --------- |
| **公鏈** | 任何人  | 完全公開 | 加密貨幣、DeFi |
| 私鏈     | 單一組織 | 私有   | 企業內部應用    |
| 聯盟鏈    | 特定成員 | 成員公開 | 跨企業合作     |

***

## 主流公鏈

| 公鏈                                                  | 特點         | 原生代幣 |
| --------------------------------------------------- | ---------- | ---- |
| [Bitcoin](/bi-te-bi/bi-te.md)                       | 最早的公鏈，數位黃金 | BTC  |
| [Ethereum](/zhi-neng-he-yue-de-shi-jie/ethereum.md) | 智能合約平台     | ETH  |
| [Solana](/layer-1-qu-kuai-lian/solana.md)           | 高速低費       | SOL  |
| [Avalanche](/layer-1-qu-kuai-lian/avalanche.md)     | 多鏈架構       | AVAX |

***

## 公鏈的挑戰

### 不可能三角

公鏈面臨「區塊鏈不可能三角」的挑戰：

```
       去中心化
         /\
        /  \
       /    \
      /______\
   安全性    擴容性
```

很難同時做到：

* **去中心化**：足夠多的節點
* **安全性**：抵抗攻擊
* **擴容性**：處理大量交易

不同公鏈有不同的取捨。

***

## 延伸閱讀

* [私鏈](/gei-kai-fa-zhe-de-zhi-nan/si.md) — 限制參與的區塊鏈
* [創世區塊](/gei-kai-fa-zhe-de-zhi-nan/public-chain/genesis-block.md) — 公鏈的第一個區塊
* [Layer 2](/jie-jue-qu-kuai-lian-de-xiao-neng-ping-jing/layer2.md) — 公鏈的擴容方案
* [公鏈總覽](/layer-1-qu-kuai-lian/chains.md) — 各大公鏈介紹

***

#### 參考資料

* [What is a Public Blockchain?](https://ethereum.org/en/developers/docs/intro-to-ethereum/)
