ZCash light client

1. 引言

light client可在未下载整个历史区块的情况下,与区块链进行交互。

ZCash的light client又名lightweight node,需引用a trusted full node’s copy of the blockchain,该full node可fully enforces all of the rules of the blockchain。

在这里插入图片描述

相关代码实现可参看:

2. Lightwalletd

Lightwalletd为a stateless server,用于给light client提供blockchain information。

Lightwalletd的主要工作有:

  • 1)从zcashd中拿来blockchain data;
  • 2)对这些data进行处理以减少数据量;
  • 3)将处理后的数据存储在数据库中。

支持具有不同需求的light client,不直接与zcashd交互,直接从Lightwalletd中获取相关数据。

参考资料

[1] ZCash Light Client Development

猜你喜欢

转载自blog.csdn.net/mutourend/article/details/121288120
今日推荐