Hyper 超级
Ledger 分类账簿
Fabric 织物,结构
这是啥?
Hyperledge fabric项目是IBM开源的区块链项目, 2017年7月发布1.0版本,2018年1月发布1.1版本。
https://www.hyperledger.org/
https://github.com/hyperledger/fabric
Hyperledger Fabric is a blockchain framework implementation and one of the Hyperledger projects hosted by The Linux Foundation. Intended as a foundation for developing applications or solutions with a modular architecture, Hyperledger Fabric allows components, such as consensus and membership services, to be plug-and-play. Hyperledger Fabric leverages container technology to host smart contracts called “chaincode” that comprise the application logic of the system. Hyperledger Fabric was initially contributed by Digital Asset and IBM, as a result of the first hackathon.
什么开发语言?
主要是GO语言,然后是JAVA。
High-performance, secure, permissioned blockchain network. Code written in Go, chaincode (smart contracts) in Go or Java, SDKs in Node.js, Java, Go, REST and Python.
Go语言?
Go语言是谷歌2009发布的第二款开源编程语言。
Go语言专门针对多处理器系统应用程序的编程进行了优化,使用Go编译的程序可以媲美C或C++代码的速度,而且更加安全、支持并行进程。
Docker什么?
Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的Linux机器上,也可以实现虚拟化,容器是完全使用沙箱机制,相互之间不会有任何接口。
Peer基本概念
- Peers: 区块链上的对等节点; 每个peer node 有智能合约和账本。
- 一个peer可以有多个合约和账本
流程?
- 应用连接peer
- 应用提交proposal给peer
- peer触发智能合约给Chaincode
- chaincode更新请求给账本
- peer针对proposal response
- 应用request that transaction is ordered
- transaction 发送给其他peers
- peer updates 账本using transaction block
http://hyperledger-fabric.readthedocs.io/en/latest/peers/peers.html