# 前言

![https://github.com/yeasy/blockchain\_guide](https://img.shields.io/badge/Version-1.1.8-blue.svg) ![](https://img.shields.io/badge/Language-Traditional%20Chinese-orange.svg) ![https://github.com/yeasy](https://img.shields.io/badge/Author-Baohua%20Yang-yellowgreen.svg) ![https://github.com/ChenPoWei](https://img.shields.io/badge/Translator-Chen%20Po%20Wei-blue.svg)

![](https://github.com/ChenPoWei/blockchain_guide_zh/raw/master/_images/blockchain_book.png)

區塊鏈技術是現代金融科技（Fintech）領域的一項重要技術創新。

作為分散式記賬（Distributed Ledger Technology，DLT）系統的核心技術，區塊鏈被認為在金融、徵信、物聯網、經濟貿易、資產管理等眾多領域都擁有廣泛的應用前景。區塊鏈技術自身尚處於快速發展的初級階段，現有區塊鏈系統在設計和實現中利用了分散式系統、密碼學、博弈論、網路協議等諸多學科的知識，為學習原理和實踐應用都帶來了不小的挑戰。

本書希望可以探索區塊鏈概念的來龍去脈，剝繭抽絲，系統剖析關鍵技術原理，同時講解實踐應用。在開發相關開源分散式賬本平臺（如超級賬本），以及設計基於區塊鏈的企業方案過程中，筆者積累了一些實踐經驗，也通過本書一併分享出來，希望能推動區塊鏈技術的早日成熟和更多應用場景的出現。

## 目錄

* [前言](https://poweichen.gitbook.io/blockchain-guide-zh/master)
* [修訂記錄](https://poweichen.gitbook.io/blockchain-guide-zh/revision)
* [如何貢獻](https://poweichen.gitbook.io/blockchain-guide-zh/contribute)
* [區塊鏈的誕生](https://poweichen.gitbook.io/blockchain-guide-zh/born)
  * [記賬科技的千年演化](https://poweichen.gitbook.io/blockchain-guide-zh/born/ledger_history)
  * [分佈式記賬與區塊鏈](https://poweichen.gitbook.io/blockchain-guide-zh/born/dlt_problem)
  * [站在前人肩膀上的比特幣](https://poweichen.gitbook.io/blockchain-guide-zh/born/bitcoin)
  * [區塊鏈的商業價值](https://poweichen.gitbook.io/blockchain-guide-zh/born/business)
  * [本章小結](https://poweichen.gitbook.io/blockchain-guide-zh/born/summary)
* [核心技術概覽](https://poweichen.gitbook.io/blockchain-guide-zh/overview)
  * [定義與原理](https://poweichen.gitbook.io/blockchain-guide-zh/overview/definition)
  * [技術的演化與分類](https://poweichen.gitbook.io/blockchain-guide-zh/overview/dlt)
  * [關鍵問題和挑戰](https://poweichen.gitbook.io/blockchain-guide-zh/overview/challenge)
  * [趨勢與展望](https://poweichen.gitbook.io/blockchain-guide-zh/overview/vision)
  * [認識上的誤區](https://poweichen.gitbook.io/blockchain-guide-zh/overview/misunderstand)
  * [本章小結](https://poweichen.gitbook.io/blockchain-guide-zh/overview/summary)
* [典型應用場景](https://poweichen.gitbook.io/blockchain-guide-zh/scenario)
  * [應用場景概覽](https://poweichen.gitbook.io/blockchain-guide-zh/scenario/overview)
  * [金融服務](https://poweichen.gitbook.io/blockchain-guide-zh/scenario/finance)
  * [徵信和權屬管理](https://poweichen.gitbook.io/blockchain-guide-zh/scenario/trust)
  * [資源共享](https://poweichen.gitbook.io/blockchain-guide-zh/scenario/sharing)
  * [貿易管理](https://poweichen.gitbook.io/blockchain-guide-zh/scenario/trading)
  * [物聯網](https://poweichen.gitbook.io/blockchain-guide-zh/scenario/iot)
  * [其它場景](https://poweichen.gitbook.io/blockchain-guide-zh/scenario/others)
  * [本章小結](https://poweichen.gitbook.io/blockchain-guide-zh/scenario/summary)
* [分佈式系統核心技術](https://poweichen.gitbook.io/blockchain-guide-zh/distribute_system)
  * [一致性問題](https://poweichen.gitbook.io/blockchain-guide-zh/distribute_system/intro)
  * [共識算法](https://poweichen.gitbook.io/blockchain-guide-zh/distribute_system/consensus)
  * [FLP 不可能原理](https://poweichen.gitbook.io/blockchain-guide-zh/distribute_system/flp)
  * [CAP 原理](https://poweichen.gitbook.io/blockchain-guide-zh/distribute_system/cap)
  * [ACID 原則與多階段提交](https://poweichen.gitbook.io/blockchain-guide-zh/distribute_system/acid)
  * [Paxos 算法與 Raft 算法](https://poweichen.gitbook.io/blockchain-guide-zh/distribute_system/paxos)
  * [拜占庭問題與算法](https://poweichen.gitbook.io/blockchain-guide-zh/distribute_system/bft)
  * [可靠性指標](https://poweichen.gitbook.io/blockchain-guide-zh/distribute_system/availability)
  * [本章小結](https://poweichen.gitbook.io/blockchain-guide-zh/distribute_system/summary)
* [密碼學與安全技術](https://poweichen.gitbook.io/blockchain-guide-zh/crypto)
  * [密碼學簡史](https://poweichen.gitbook.io/blockchain-guide-zh/crypto/history)
  * [Hash 算法與數字摘要](https://poweichen.gitbook.io/blockchain-guide-zh/crypto/hash)
  * [加解密算法](https://poweichen.gitbook.io/blockchain-guide-zh/crypto/algorithm)
  * [消息認證碼與數字簽名](https://poweichen.gitbook.io/blockchain-guide-zh/crypto/signature)
  * [數字證書](https://poweichen.gitbook.io/blockchain-guide-zh/crypto/cert)
  * [PKI 體系](https://poweichen.gitbook.io/blockchain-guide-zh/crypto/pki)
  * [Merkle 樹結構](https://poweichen.gitbook.io/blockchain-guide-zh/crypto/merkle_trie)
  * [Bloom Filter 結構](https://poweichen.gitbook.io/blockchain-guide-zh/crypto/bloom_filter)
  * [同態加密](https://poweichen.gitbook.io/blockchain-guide-zh/crypto/homoencryption)
  * [其它問題](https://poweichen.gitbook.io/blockchain-guide-zh/crypto/others)
  * [本章小結](https://poweichen.gitbook.io/blockchain-guide-zh/crypto/summary)
* [比特幣 —— 區塊鏈思想誕生的搖籃](https://poweichen.gitbook.io/blockchain-guide-zh/bitcoin)
  * [比特幣項目簡介](https://poweichen.gitbook.io/blockchain-guide-zh/bitcoin/intro)
  * [實體貨幣到加密數字貨幣](https://poweichen.gitbook.io/blockchain-guide-zh/bitcoin/currency)
  * [基本原理和設計](https://poweichen.gitbook.io/blockchain-guide-zh/bitcoin/design)
  * [挖礦過程](https://poweichen.gitbook.io/blockchain-guide-zh/bitcoin/mining)
  * [共識機制](https://poweichen.gitbook.io/blockchain-guide-zh/bitcoin/consensus)
  * [閃電網絡](https://poweichen.gitbook.io/blockchain-guide-zh/bitcoin/lightning_network)
  * [側鏈](https://poweichen.gitbook.io/blockchain-guide-zh/bitcoin/sidechain)
  * [熱點問題](https://poweichen.gitbook.io/blockchain-guide-zh/bitcoin/other)
  * [相關工具](https://poweichen.gitbook.io/blockchain-guide-zh/bitcoin/tools)
  * [本章小結](https://poweichen.gitbook.io/blockchain-guide-zh/bitcoin/summary)
* [以太坊 —— 掙脫加密貨幣的枷鎖](https://poweichen.gitbook.io/blockchain-guide-zh/ethereum)
  * [以太坊項目簡介](https://poweichen.gitbook.io/blockchain-guide-zh/ethereum/intro)
  * [核心概念](https://poweichen.gitbook.io/blockchain-guide-zh/ethereum/concept)
  * [主要設計](https://poweichen.gitbook.io/blockchain-guide-zh/ethereum/design)
  * [相關工具](https://poweichen.gitbook.io/blockchain-guide-zh/ethereum/tools)
  * [安裝客戶端](https://poweichen.gitbook.io/blockchain-guide-zh/ethereum/install)
  * [使用智能合約](https://poweichen.gitbook.io/blockchain-guide-zh/ethereum/smart_contract)
  * [智能合約案例：投票](https://poweichen.gitbook.io/blockchain-guide-zh/ethereum/contract_example)
  * [本章小結](https://poweichen.gitbook.io/blockchain-guide-zh/ethereum/summary)
* [超級賬本 —— 面向企業的分佈式賬本](https://poweichen.gitbook.io/blockchain-guide-zh/hyperledger)
  * [超級賬本項目簡介](https://poweichen.gitbook.io/blockchain-guide-zh/hyperledger/intro)
  * [社區組織結構](https://poweichen.gitbook.io/blockchain-guide-zh/hyperledger/community)
  * [頂級項目介紹](https://poweichen.gitbook.io/blockchain-guide-zh/hyperledger/top_project)
  * [開發必備工具](https://poweichen.gitbook.io/blockchain-guide-zh/hyperledger/tools)
  * [貢獻代碼](https://poweichen.gitbook.io/blockchain-guide-zh/hyperledger/contribute)
  * [本章小結](https://poweichen.gitbook.io/blockchain-guide-zh/hyperledger/summary)
* [Fabric 部署與管理](https://poweichen.gitbook.io/blockchain-guide-zh/fabric)
  * [簡介](https://poweichen.gitbook.io/blockchain-guide-zh/fabric/intro)
  * [使用 Fabric 1.0 版本](https://poweichen.gitbook.io/blockchain-guide-zh/fabric/1.0)
  * [使用 Fabric SDK Node](https://poweichen.gitbook.io/blockchain-guide-zh/fabric/sdk-node)
  * [Fabric v0.6](https://poweichen.gitbook.io/blockchain-guide-zh/fabric/v0.6)
    * [安裝部署](https://poweichen.gitbook.io/blockchain-guide-zh/fabric/v0.6/install)
    * [使用 chaincode](https://poweichen.gitbook.io/blockchain-guide-zh/fabric/v0.6/usage)
    * [權限管理](https://poweichen.gitbook.io/blockchain-guide-zh/fabric/v0.6/membersrcv-usage)
    * [Python 客戶端](https://poweichen.gitbook.io/blockchain-guide-zh/fabric/v0.6/hyperledger-py)
  * [小結](https://poweichen.gitbook.io/blockchain-guide-zh/fabric/summary)
* [區塊鏈應用開發](https://poweichen.gitbook.io/blockchain-guide-zh/app_dev)
  * [簡介](https://poweichen.gitbook.io/blockchain-guide-zh/app_dev/intro)
  * [鏈上代碼工作原理](https://poweichen.gitbook.io/blockchain-guide-zh/app_dev/chaincode)
  * [示例一：信息公證](https://poweichen.gitbook.io/blockchain-guide-zh/app_dev/chaincode_example01)
  * [示例二：交易資產](https://poweichen.gitbook.io/blockchain-guide-zh/app_dev/chaincode_example02)
  * [示例三：數字貨幣發行與管理](https://poweichen.gitbook.io/blockchain-guide-zh/app_dev/chaincode_example03)
  * [示例四：學歷認證](https://poweichen.gitbook.io/blockchain-guide-zh/app_dev/chaincode_example04)
  * [示例五：社區能源共享](https://poweichen.gitbook.io/blockchain-guide-zh/app_dev/chaincode_example05)
  * [小結](https://poweichen.gitbook.io/blockchain-guide-zh/app_dev/summary)
* [Fabric 架構與設計](https://poweichen.gitbook.io/blockchain-guide-zh/fabric_design)
  * [簡介](https://poweichen.gitbook.io/blockchain-guide-zh/fabric_design/intro)
  * [架構設計](https://poweichen.gitbook.io/blockchain-guide-zh/fabric_design/design)
  * [消息協議](https://poweichen.gitbook.io/blockchain-guide-zh/fabric_design/protocol)
  * [小結](https://poweichen.gitbook.io/blockchain-guide-zh/fabric_design/summary)
* [區塊鏈服務平臺設計](https://poweichen.gitbook.io/blockchain-guide-zh/baas)
  * [簡介](https://poweichen.gitbook.io/blockchain-guide-zh/baas/intro)
  * [IBM Bluemix 雲區塊鏈服務](https://poweichen.gitbook.io/blockchain-guide-zh/baas/bluemix)
  * [微軟 Azure 雲區塊鏈服務](https://poweichen.gitbook.io/blockchain-guide-zh/baas/azure)
  * [使用超級賬本 Cello 搭建區塊鏈服務](https://poweichen.gitbook.io/blockchain-guide-zh/baas/cello)
  * [本章小結](https://poweichen.gitbook.io/blockchain-guide-zh/baas/summary)
* [性能與評測](https://poweichen.gitbook.io/blockchain-guide-zh/evaluation)
  * [簡介](https://poweichen.gitbook.io/blockchain-guide-zh/evaluation/intro)
  * [Hyperledger Fabric v0.6](https://poweichen.gitbook.io/blockchain-guide-zh/evaluation/hyperledger)
  * [小結](https://poweichen.gitbook.io/blockchain-guide-zh/evaluation/summary)
* [附錄](https://poweichen.gitbook.io/blockchain-guide-zh/appendix)
  * [術語](https://poweichen.gitbook.io/blockchain-guide-zh/appendix/terms)
  * [常見問題](https://poweichen.gitbook.io/blockchain-guide-zh/appendix/faq)
  * [Golang 開發相關](https://poweichen.gitbook.io/blockchain-guide-zh/appendix/golang)
    * [安裝與配置 Golang 環境](https://poweichen.gitbook.io/blockchain-guide-zh/appendix/golang/install)
    * [編輯器與 IDE](https://poweichen.gitbook.io/blockchain-guide-zh/appendix/golang/ide)
    * [高效開發工具](https://poweichen.gitbook.io/blockchain-guide-zh/appendix/golang/tools)
  * [ProtoBuf 與 gRPC](https://poweichen.gitbook.io/blockchain-guide-zh/appendix/grpc)
  * [參考資源鏈接](https://poweichen.gitbook.io/blockchain-guide-zh/appendix/resources)

## 閱讀使用

本書適用於對區塊鏈技術感興趣，且具備一定資訊和金融基礎知識的讀者；無技術背景的讀者也可以從中瞭解到區塊鏈的應用現狀。

* 線上閱讀：[GitBook](https://poweichen.gitbook.io/blockchain-guide-zh/) 或 [GitHub](https://github.com/ChenPoWei/blockchain_guide/blob/master/SUMMARY.md)

如果發現疏漏，歡迎提交到 [勘誤表](https://github.com/yeasy/blockchain_guide/wiki/%E3%80%8A%E5%8C%BA%E5%9D%97%E9%93%BE%E5%8E%9F%E7%90%86%E3%80%81%E8%AE%BE%E8%AE%A1%E4%B8%8E%E5%BA%94%E7%94%A8%E3%80%8B%E5%8B%98%E8%AF%AF%E8%A1%A8)。

## 參與貢獻

區塊鏈技術自身仍在快速發展中，生態環境也在蓬勃成長。歡迎 [參與維護項目](https://poweichen.gitbook.io/blockchain-guide-zh/contribute)。

* [修訂記錄](https://poweichen.gitbook.io/blockchain-guide-zh/revision)
* [貢獻者名單](https://github.com/yeasy/blockchain_guide/graphs/contributors)
