libocr – 利伯克尔区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,libocr – 利伯克尔区块链毕设代写 是一篇很好的国外资料

libocr

libocr consists of a Go library and a set of Solidity smart contracts that implement the Chainlink Offchain Reporting Protocol, a Byzantine fault tolerant protocol that allows a set of oracles to generate offchain an aggregate report of the oracles’ observations of some underlying data source. This report is then transmitted to an onchain contract in a single transaction.

You may also be interested in libocr’s integration into the actual Chainlink node.

Protocol Description

Protocol execution mostly happens offchain over a peer to peer network between Chainlink nodes. The nodes regularly elect a new leader node who drives the rest of the protocol. The protocol is designed to choose each leader fairly and quickly rotate away from leaders that aren’t making progress towards timely onchain reports.

The leader regularly requests followers to provide freshly signed observations and aggregates them into a report. It then sends the aggregate report back to the followers and asks them to attest to the report’s validity by signing it. If a quorum of followers approves the report, the leader assembles a final report with the quorum’s signatures and broadcasts it to all followers.

The nodes then attempt to transmit the final report to the smart contract according to a randomized schedule. Finally, the smart contract verifies that a quorum of nodes signed the report and exposes the median value to consumers.

Organization

. ├── contract: Ethereum smart contracts ├── gethwrappers: go-ethereum bindings for the contracts, generated with abigen ├── networking: libp2p-based p2p networking layer ├── offchainreporting: offchain reporting protocol ├── permutation: helper package for generating permutations └── subprocesses: helper package for managing go routines 

Merge pull request


libocr

libocr由一个Go库和一组实现Chainlink Offchain Reporting协议的Solidity智能合约组成,Chainlink Offchain Reporting协议是一种拜占庭式容错协议,允许一组oracle在Offchain中生成oracle对一些底层数据源的观察的聚合报告。然后在单个事务中将此报告传输到onchain合同。

您可能还对libocr集成到实际的Chainlink节点感兴趣。

协议描述

协议的执行主要发生在链链路节点之间的对等网络上的链外。这些节点定期选举一个新的领导节点,领导协议的其余部分。该协议旨在公平、快速地选择每一位领导人,而不是那些在及时的在线报告方面没有进展的领导人。

领导者定期要求追随者提供新签署的观察结果,并将其汇总成报告。然后,它将聚合报告发送回关注者,并要求他们通过签名来证明报告的有效性。如果有法定人数的追随者批准了该报告,则领导者会整理一份带有法定人数签名的最终报告,并将其广播给所有追随者。

然后节点尝试根据随机调度将最终报告传输到智能合约。最后,智能合约验证了一组节点签署了报告,并向消费者公开了中间值。

组织

. ├── contract: Ethereum smart contracts ├── gethwrappers: go-ethereum bindings for the contracts, generated with abigen ├── networking: libp2p-based p2p networking layer ├── offchainreporting: offchain reporting protocol ├── permutation: helper package for generating permutations └── subprocesses: helper package for managing go routines 

Merge pull request

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/20281.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » libocr – 利伯克尔区块链毕设代写

提供最优质的资源集合

立即查看 了解详情