Graphene study

GitHub

石墨烯生态的代表有 BTS,Steem 和 EOS。石墨烯采用的是 DPOS 的共识机制,出快速度大约为 1.5s,
石墨烯技术使得区块链应用更高的交易吞吐量,BTS 可以处理十万级别的 TPS,而 EOS 则是宣称百万级别的 TPS。
同时石墨烯技术高并发处理能力也是比特币和 ETH 无法做到的。

有三个项目需要克隆:graphene,graphene-ui和fc
FC库用于管理传输细节,允许节点接受各种传输协议。

Graphene has been designed especially for transactions (token transfer) and high-throughput in order to compete with Visa and Mastercard. This results in a lack of versatility

The real bottleneck is not the memory requirements, but the bandwidth requirements. At 1 million transactions per second and 256 bytes per transaction, the network would require 256 megabytes per second (1 Gbit/sec).

industrial-performance-and-scalability

  • Keep everything in memory.
  • Keep the core business logic in a single thread.
  • Keep cryptographic operations (hashes and signatures) out of the core business logic.
  • Divide validation into state-dependent and state-independent checks.
  • Use an object oriented data model.
  • Avoid synchronization primitives (locks, atomic operations).
  • Minimize unnecessary computation in the business logic processor.

https://medium.com/karmared/core-graphene-issues-uncovered-by-the-karma-team-a6c3445a114a
However, the more we’ve drilled down the Graphene core source code, the more we’ve understood why Dan Larimer left the project and completely switched to EOS. Here are some main issues we’ve found:

what-is-graphene-blockchain-and-why-should-develop-a-graphene-based-project

  1. 第一是 转账速度特别快。现在的平均确认时间是 1.5 秒,出块时间是 3 秒
    比特币是 10 分钟出块,以太坊大约是 1 分钟;确认时间上比特币是 1 小时,以太坊是十几分钟,石墨烯只需要秒级的时间。
    在石墨烯进一步进化的 EOS 上可能到了零点几秒
  2. 吞吐量比较高
    石墨烯的吞吐量现在实测大约是 3300 笔每秒,理论上可以到 10 万次
    比特币大约每秒七笔,以太坊每秒三四十笔
  3. 石墨烯极其稳定
    石墨烯技术开发运行了这么久,从来没有出过明显的 BUG,也没有资产被盗的情况。
  4. 功能非常强大、完备、容易操作
    如果我们用过一些桌面端的钱包就会发现,比特股钱包的应用性是最强的
    以多重签名来举例:比特币也有多重签名,但是比较复杂,而且功能特别简单,只有 M/N 这种模式,就是说如果是 5 个人做多重签名,3 个人同意就可以通过,这是一个很简单的多重签名。石墨烯上的多重签名功能是可以用作公司治理的,它可以设定两个参数:首先它可以设置百分比,每个人占多少百分比,无论多少人都可以随便设。第二个是阈值,就是超过多少个签名就可以生效。假设说现在想做一个 7 个人的理事会管理,有这样一些要求:任何 2 个人出事都不能影响资金的使用;至少 3 个人同意才可以动用资金;非核心成员至少 4 个人同意才能动用资金。这些条件设置好之后,可以很快的算出每个人的占比,这个多签就设置完成了,而且这是在 UI 上直接实现,在操作界面上的,而不是用命令行来实现的。
  5. 支持免费转账
  6. 使用 DPOS 共识算法
  7. The possibility of receiving a reward not only by the miners but also by other active members of the system. Creators, remitters, curators, shoppers, market makers, entrepreneurs, merchants, bloggers, referrers, community leaders, and internet leaders amongst many others.
  8. The possibility of working with several tokens in one system at once.
  9. The possibility of binding the value of the token to another currency, precious metals, etc. If there are several tokens and one tied, for instance, to USD, the internal exchange will always be at the rate of USD. It gives a sense of stability to the token holders.

代表项目

BTS

BTS。 比特股(BitShares,简称 BTS)是一个建立在区块链技术上的开源商业系统

Steem

Steem 是一个基于区块链技术的去中心化社交网络平台。

EOS

EOS.IO 软件引入了一种区块链架构。 它为满足去中心应用纵向,横向扩展需求而设计。它通过一个可以在上面构建应用程序,类似操作系统的方式来实现。 该软件提供了账号,身份认证,数据库,异步通信,以及跨多核 CPU 或集群调度应用程序等功能。 由此而形成一种区块链架构, 它能达到每秒百万交易量的处理,用户可免费使用,且很容易快速部署去中心化应用。EOS 采用 DPOS 算法,在该共识算法下,在采用 EOS.IO 软件的区块链上,那些持有代币的人可以通过了一个连续的赞成投票系统来选择矿工。任何人可以选择参与挖矿,并有机会获得其相应比例的区块奖励,而这是跟其获得票数与其他所有矿工所获得票数成比例。如果读者对 EOS 感兴趣,可以去 GitHub 阅读下它的相关文档。