chainmaker_verifier

package
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 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CMLightVerifier

type CMLightVerifier struct {
	// contains filtered or unexported fields
}

CMLightVerifier implements block verifier interface for ChainMaker Light

func NewCMLightVerifier

func NewCMLightVerifier() *CMLightVerifier

NewCMLightVerifier creates CMLightVerifier

func (*CMLightVerifier) ValidBlock

func (cms *CMLightVerifier) ValidBlock(blocker common.Blocker, preBlockHash []byte) error

ValidBlock verifies the validity of the block for ChainMaker Light

type CMSPVVerifier

type CMSPVVerifier struct {
	// contains filtered or unexported fields
}

CMSPVVerifier implements block verifier interface for ChainMaker SPV

func NewCMSPVVerifier

func NewCMSPVVerifier() *CMSPVVerifier

NewCMSPVVerifier creates CMSPVVerifier

func (*CMSPVVerifier) ValidBlock

func (cms *CMSPVVerifier) ValidBlock(blocker common.Blocker, preBlockHash []byte) error

ValidBlock verifies the validity of the block for ChainMaker SPV

Jump to

Keyboard shortcuts

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