verifier

package
v0.10.10 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 7 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