verifier

package
v1.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogVerifier

type LogVerifier struct{}

LogVerifier wraps Trillian functionality for verifying consistency proof and getting root hash from entries.

func New

func New() *LogVerifier

New returns new client for monitoring VCT log consistency.

func (*LogVerifier) GetRootHashFromEntries

func (v *LogVerifier) GetRootHashFromEntries(entries []*command.LeafEntry) ([]byte, error)

GetRootHashFromEntries constructs Merkle tree from entries and calculates root hash.

func (*LogVerifier) VerifyConsistencyProof

func (v *LogVerifier) VerifyConsistencyProof(snapshot1, snapshot2 int64, root1, root2 []byte, proof [][]byte) error

VerifyConsistencyProof verifies consistency proof.

Jump to

Keyboard shortcuts

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