# 什么是公有链，私有链，联盟链

## 什么是公有链？

公有链，顾名思义，从字面上理解，就是“公有”，它是指对全世界所有人开放的，任何人都可以读取数据、发送交易且交易能够获得有效确认的共识区块链。在公有链上，各个节点均可自由加入和退出网络，并参加链上数据的读写，并且，网络中不存在任何中心化的服务端节点。比特币和以太坊都属于公有链。

## 什么是私有链？

私有链中各个节点的写入权限收归内部控制，而读取权限可视需求有选择性地对外开放。专有链仍热具备区块链多节点运行的通用结构，适用于特定机构的内部数据管理与审计。

## 什么是联盟链？

联盟链的各个节点通常有与之对应的实体机构组织，通过授权后才能加入与退出网络。各机构组织组成利益相关的联盟，共同维护区块链的健康运转。

**公有链，私有链，联盟链之间的区别？**

三大类型区块链的核心区别，在于访问权限的开放程度，或者叫去中心化程度。本质上，联盟链也属于私有链，只是私有的程度不同。一般来说，去中心化程度越高、信任和安全程度越高，交易效率则越低。

如有不明白或者不清楚的地方，请加入官方电报群：[**https://t.me/gtokentool**](https://t.me/gtokentool)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gtokentool.com/qu-kuai-lian/shen-me-shi-gong-you-lian-si-you-lian-lian-meng-lian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
