LOADING...
LOADING...
LOADING...
当前位置: 玩币族首页 > 区块链资讯 > Blockstack的最新共识 - PoX简介

Blockstack的最新共识 - PoX简介

2020-02-07 Blockstack 来源:区块链网络

本文介绍Blockstack区块链Stacks Chain 2.0的新共识算法PoX(Proof ofTransfer)

了解Blockstack的朋友应该都知道,Stacks Chain 1.0没有挖矿,是一条寄生于Bitcoin链之上的虚拟链(Virtual Chain)。

然而Stacks Chain 2.0依然建立在Bitcoin之上,但是更像一个独立的链:

有自己的区块

有挖矿的节点

有出块的共识

有了上述这些,Stacks Chain 2.0就不是“Virutal Chain”了,而是比特币之上的“Layer 2”了,甚至超越了”Layer 2“的概念。为什么要这样设计?

Blockstack团队在2014年项目初创时在技术选型上算是煞费苦心,它并不想成为一个操作系统,它想选择一个安全稳定的“操作系统”,在此之上实现自己的技术栈。在亲身经历过NameCoin的失败后,才认识到Bitcoin有可能是这个世界上唯一安全的区块链。

Stacks Chain 2.0仍然利用比特币的安全性,Stacks Chain的协议实现一部分在自己的代码中,另一部分是通过比特币的交易和交易元数据(Meta Data)实现,两者密不可分。

在Stacks Chain 2.0最初的设计里,拟采用PoB(Proof of Burn)共识,这不是Blockstack的发明,网上可以搜索到。问题是按照Blockstack发行的STX现在的市场价格,谁会去销毁BTC换成STX呢?除此之外在我看来,销毁BTC会受到BTC社区以及比特币信仰者的抵触,对老大必须要尊重。

还好Blockstack团队也认识到了这个问题,实际上采用了PoB的一种泛化(Generalization)形式—— PoX(Proof of Transfer),即:PoB是PoX的一个特例。PoX并不会将比特币销毁(发送到一个黑洞地址),而是将比特币发送给Stacks Chain的参与者,类似Staking,在其官方文档中这样介绍:

STX holders that control some threshold number of STX would be able to issue a signed message that locks their STX tokens for some period of time, specifies a Bitcoin address to receive funds, and signals (votes) on a Stacks chain ver- sion/fork as the current one.

中文大意是:具备一定阈值以上数量的STX持有者,可以发送一个签名消息,将其持有的STX锁定一个周期,并指定一个比特币地址来收取奖金,同时投票选择一个Stacks Chain的当前分支。

按照这个设计矿工也可以获得奖金,促使矿工买入STX,还会导致矿工结盟(Consolidation)。从而不消耗任何比特币,还能完全控制Stacks Chain所有产出的STX!Blockstack团队看到了这个威胁,正在考虑了一些策略来规避。

每个参与者都能获得奖励吗?在其官方文档中这样介绍:

If a miner is building off a descendant of the anchor block, the miner must send commitment funds to 5 addresses from the reward set, chosen as follows:

Use the verifiable random function (also used by sortition) to choose 5 addresses from the reward set. These 5 addresses are the reward addresses for this block.

Once addresses have been chosen for a block, these addresses are removed from the reward set, so that future blocks in the reward cycle do not repeat the addresses.

解释一下,上面这段文字是说,有资格的参与者组成一个集合(reward set),矿工在出块时采用VRF算法,在reward set里面随机选取5个幸运者,这5个幸运者将得到本次出块的奖金。一旦一个地址被选中,则被移除这个reward set,保证在当前的reward cycle里面不会中奖2次。

关于reward cycle的定义目前并不是很清楚,官方文档中只是说固定长度:

Stacks reward cycles are fixed length — if fewer addresses participate in the Stacking rewards than there are slots in the cycle, then for the remaining blocks, all miners must send funds to burn addresses

总结一下,PoX是Blockstack团队的发明,目前看具有一定的价值,说不定将来会是一个趋势,成为一个标准。但是需要看Stacks Chains 2.0的实现,以及上线之后是不是有其他没有考虑到的问题。

昨天STX价格上涨40%+,如果是真实的市场反应的话,那说明PoX目前为止得到了市场的认同,是好事。在Stacks Chain 2.0上线之后,挖矿、Staking、智能合约等对STX的需求会提振,期望Blockstack可以稳扎稳打,在实现去中心化互联网梦想的同时,更多回报给投资者。

声明:本文转载自微信公众号”魔链思享会“,仅供参考,不代表Blockstack官方观点。


—-

编译者/作者:Blockstack

玩币族申明:玩币族作为开放的资讯翻译/分享平台,所提供的所有资讯仅代表作者个人观点,与玩币族平台立场无关,且不构成任何投资理财建议。文章版权归原作者所有。

LOADING...
LOADING...