The whole consensus depends on the very first block hardcoded in the wallet you get.

If you want to reduce the size of the blockchain, you still have to download the full chain first.

Otherwise you have to trust a thirdparty, and usually centralized.

For example, we, as the core team, can publish a new ‘genesis’ block containing calculated balance of each account, in this way, the blockchain is pruned.

However it’s centralized, because of the privateky.

DAO is not possible here, we don’t even have a trusted blockchain here.

So, pruning blockchain in decentralized way is rather difficult.

Possible improvements

As I wrote in the IPZN’s wiki, an archival block (i.e. evaluated balances) is generated periodically backed by the same consensus.

When a user downloads IPZN client somewhere, the initial consensus, the most recent archival block, is inclueded.

After syncing a few new blocks, and verified, the blockchain is pruned locally again.


区块链共识由初始共识产生,就是硬编码在钱包里的创世区块的哈希。也可以说是你从哪下载区块链钱包的,就获取了哪里的共识。

想减小区块链数据的大小,也得先下完整个链,验证,之后在截取,留下最近一段时间的链。

否则呢,你必须信任一个第三方,因此又有单点故障的风险。

比如说,我们核心团队,可以发布一个新的“初始”区块,包含计算后的账户数据,这样就截取了区块链。

发布方式途径可以是分布式的,但核心团队仍然是一个“单点”,私钥在我们手里呢。

DAO 呢?区块链都还没建起来,哪里来的 DAO。

改进

我在 IPZN 的 wiki 里写道,每过一定时间,一个新的“初始”区块会产生,包含所以账户计算后的余额,称为“存档区块”。

存档区块由生成其他区块相同的共识机制生成,分布式的。

用户到我们官网下载 IPZN 时,初始共识,即最近的存档区块,编码进了程序。

只需要再同步几个区块,校验,再截去不需要的链,就行了。