Block chain technology base
This series will lead to further children's shoes who are interested to learn some basic knowledge of fabric super books will not discuss the block chain of deep underlying implementation technology, focusing on the application of the block for the chain, behind it will be combined with fabric-sdk-java to combat development of the block chain. Interested parties can focus on me, rivers and lakes behind the content is continuously updated. . . .
Thanks @ sage, I will continue to go on continually updated
Block chain nouns
-
transaction
A state transition operation
-
Blocks
A collection of a certain period of time of the transaction all packaged into a trading block
-
chain
Block links
Type block chain
- ● public world strand chain
- ● Union chain requires admission control node can not join or leave
- ● internal private chain company, a subsidiary department
Block chain Features
- ● to the center (of the multi-center)
- ● trust of parties to the transaction do not need to trust, just trust block chain network
- ● Data sharing the same information to all nodes
- ● Do not tamper with (non can not be modified) transaction can not be unilaterally changed the whole network needs
platform
- ● credits bit digital block chain fire 1.0 credits
- ● Intelligent Ethernet Square 2.0 introduced contract
- ● eos 3.0
- ● fabric super books
Scenarios
- ● to trust
- ● Value Transfer ()
- ● Data Sharing (intermediate means, each API call, storage center)
Block chain technology
-
● concept p2p network protocols (peer to peer network communication) of all network nodes communicate with each other are equal, there is no server and client are created equal
development process
✧ 中心化服务 ✧ 分布式 微服务 ✧ 去中心化
-
● p2p networks fabric ----- gRPC service (using chain Alliance)
-
● Cryptography
-
hash algorithm
The value of indefinite length into a fixed-length value
common md5 sha1 sha2 sha2-256
features:✧ 正向快递,逆向困难 ✧ 输入敏感 ✧ 抗碰撞
-
Encryption and decryption algorithm
High efficiency symmetric encryption, unsafe
low asymmetric cryptography (public and private key) Efficiency
-
Architecture books
A series of orderly transaction can not be tampered with (state transition operation)
After a header block comprising a hash block
Consensus algorithm (distributed consensus algorithm)
- ● strong consistency difficult to achieve, inefficient
- ● eventual consistency
cap principle
- ● Availability
- ● Consistency
- ● partition tolerance
分布式系统不可能同时满足 可用性 一致性 分区容忍性 ,智能三者满足其2
acid principle
● 原子性
● 一致性
● 隔离性
● 持久性
(Not further described herein, are interested can click to see )
Consensus Algorithm
● Paxos 假设分布式系统中 仅有故障节点没有恶意节点
● 拜占庭算法 技能荣南故障节点也能容纳恶意节点
Alliance difference chain and the chain is also public consensus algorithm
Union chain have access control, generally do not use the Byzantine algorithm
- pow workload proved algorithm
heavy workload, the right to speak big, easier access billing rights - pos entitlement algorithm
who have assets of more than, who is more right, big voice, easier access billing rights
Block chain system architecture
The next chapter will be on the block chain system architecture for simple dismantling, are interested in children's shoes can click to see
next: block chain structure and transaction flow (fabric1.0)