spv

module
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2021 License: Apache-2.0

README

项目简介

SPV项目是ChainMaker的SPV轻节点,主要有两种模式,一种是spv模式,该模式支持ChainMaker(v2.0.0+)Fabric(v1.4.0+)两种链类型,该模式下将同步区块头及部分其他数据并通过同步的数据实现交易有效性的验证; 另一种是light模式,该模式仅支持ChainMaker(v2.0.0+),该模式下将同步区块头以及同组织内的交易信息,并支持用户注册回调,在区块被提交至本地数据库后执行。

spv模式下具有如下功能:

  • 实现对多链的区块头及部分其他数据的同步,且可对外提供交易存在性及有效性证明。
  • 可独立部署获取业务链的数据,并提供交易存在性及有效性证明服务。
  • 可作为组件集成进其他模块,调用启动以获取业务链的数据,并提供交易存在性及有效性证明。

light模式下具有如下功能:

  • 实现对多链的区块及同组织内用户交易的同步功能。
  • 可独立部署获取业务链的数据,并对外提供区块以及交易信息的查询功能,以及交易转发的功能。
  • 可作为组件集成进其他模块,并支持用户注册回调,在区块被提交至本地数据库后执行。

适配版本

spv chainmaker-go chainmaker-sdk-go fabric fabric-sdk-go
v2.1.0 v2.0.0+ v2.0.0 v1.4.0+ v1.0.0

快速了解

可通过如下链接进一步了解。

Directories

Path Synopsis
Package adapter defines SDK interface and contains the implementations of each chain
Package adapter defines SDK interface and contains the implementations of each chain
Package coder defines coding and decoding interface and contains the implementations of each chain
Package coder defines coding and decoding interface and contains the implementations of each chain
Package common defines the interfaces that block, block header and transaction need to implement, and contains the implementations of each chain
Package common defines the interfaces that block, block header and transaction need to implement, and contains the implementations of each chain
Package conf contains the logic to read and initialize system configuration
Package conf contains the logic to read and initialize system configuration
Package logger contains spv logs for each module
Package logger contains spv logs for each module
cmd
Package manager contains block synchronization logic
Package manager contains block synchronization logic
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
pb
api
Package prover is transaction validation module
Package prover is transaction validation module
Package rpcserver is gRPC server module
Package rpcserver is gRPC server module
Package server is SPV module
Package server is SPV module
Package storage is storage module of all chains
Package storage is storage module of all chains
kvdb
Package kvdb is kvdb module
Package kvdb is kvdb module
kvdb/leveldb
Package leveldb is leveldb module
Package leveldb is leveldb module
tools
main
Package main implements a test tool
Package main implements a test tool
utils
chainmaker_tools
chainmaker_tools defines tools for ChainMaker spv
chainmaker_tools defines tools for ChainMaker spv
fabric_tools
fabric_tools defines tools for Fabric spv
fabric_tools defines tools for Fabric spv
Package verifier defines block verifier interface and contains the implementations of each chain
Package verifier defines block verifier interface and contains the implementations of each chain

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL