# Functions

BuildLogLeaf returns a Trillian LogLeaf structure for a (pre-)cert and the chain of certificates leading it up to a known root.
BuildLogLeafWithChainHash returns a Trillian LogLeaf structure for a (pre-)cert and the chain of certificates leading it up to a known root.
ExtraDataForChain creates the extra data associated with a log entry as described in RFC6962 section 4.6.
ExtraDataForChainHash creates the extra data associated with a log entry as described in RFC6962 section 4.6 except the chain being replaced with its hash.
NewFixedTimeSource creates a FixedTimeSource instance.

# Structs

FixedTimeSource provides a fixed time for use in tests.
SystemTimeSource provides the current system local time.

# Interfaces

TimeSource can provide the current time, or be replaced by a mock in tests to return specific values.