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 (*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.
Click to show internal directories.
Click to hide internal directories.