一、文章内容
1. 做了什么?
We then move into the IoT domain, and describe how a blockchain-IoT combination:
Facilitates the sharing of services and resources leading to the creation of a marketplace of services between devices andAllows us to automate in a cryptographically verifiable manner several existing, time-consuming workflows.
详细描述了区块链和智能合约的工作模式,说明了区块链引入区块链和智能合约到现有系统所带来的优缺点。描述了区块链结合物联网的全新用例,
2. 文章结构
区块链工作模式
网络一致性
Proof-of-Work (PoW):任何节点都可以解决难题(算力)Proof-of-Stake(PoS):Power of Work的一个替代品,需要更少的计算资源Practical Byzantine Fault Tolerance (PBFT):解决拜占庭问题,至少需要3f +1个节点,允许f的错误节点Tangaroa:Raft algorithm 的个变种,对错误节点超过1/3时有更强的保证,允许验证节点集合的动态改变Ripple’s consensus algorithm:使用Unique Node Lists (UNL)解决BFT-tolerate系统的高延迟乔问题,在5f +1个节点中只允许1/5的节点错误Mining diversity scheme:挖矿密度用于计算矿工在进行下一次挖矿之前需要等待的区块数量Sieve: (HyperLedger Fabric)增强了PBFT算法,增加了特殊执行和验证机制,允许网络检测和过滤不确定性的请求区块链数字资产交易
Alice 给 Bob转账过程
一个交易删除一行(UTXO)并且创建新的行(UTXO)
智能合约
(1) 思想
将其嵌入软、硬件,能够自动执行将合约条款翻译成代码
(2)特点
合约有自己的状态,可以掌控区块上的资产(Account-based-model)合约允许我们使用代码进行逻辑的交易合适的智能合约需要描述合约所有的输出存储在区块链,对所有人公开拥有唯一的地址,通过此地址触发合同进行交易(发送信息或交易)智能合约是确定的,相同的输入会产生相同的输出通过签名消息进行交互,全网可验证、可溯源