verifier

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package verifier implements the core verifying functionality of PoET implementation. It is intended to be used by for verifying proofs created by the prover package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(proof shared.MerkleProof, labelHashFunc func(data []byte) []byte,
	merkleHashFunc merkle.HashFunc, numLeaves uint64, securityParam uint8,
) error

Validate verifies that a Merkle proof was generated by an honest PoET prover. It validates that the number of proven leaves matches the security param, validates the Merkle proof itself and verifies the labels are derived from the left cousins in the Merkle tree.

Types

This section is empty.

Jump to

Keyboard shortcuts

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