verifier

package
v0.0.0-...-ac47704 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatenateProofs

func ConcatenateProofs(_ context.Context,
	lower *types.Proof,
	higher *types.Proof,
) (
	*types.Proof,
	error,
)

ConcatenateProofs concatenates two proofs. The root of the lower proof should be the value of the higher proof.

func VerifyProof

func VerifyProof(_ context.Context,
	root phase0.Root,
	proof *types.Proof,
) (
	bool,
	error,
)

VerifyProof verifies a proof, returning true if the proof is verified and otherwise false.

Types

type Service

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

func New

func New(_ context.Context,
	chainSvc *chain.Service,
) (
	*Service,
	error,
)

func (*Service) VerifyValidatorProof

func (s *Service) VerifyValidatorProof(ctx context.Context,
	proof *types.ValidatorProof,
) (
	bool,
	error,
)

VerifyValidatorProof verifies a proof for a validator at a given block.

Jump to

Keyboard shortcuts

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