# Packages

Binary scanlog allows an existing CT Log to be scanned for certificates of interest.

# Functions

CalcRootHash calculates the root hash for the test data.
DefaultFetcherOptions returns new FetcherOptions with sensible defaults.
DefaultScannerOptions returns a new ScannerOptions with sensible defaults.
NewFetcher creates a Fetcher instance using client to talk to the log, taking configuration options from opts.
NewScanner creates a Scanner instance using client to talk to the log, taking configuration options from opts.

# Constants

Entry0 is first entry.
Entry1 is second entry.
Entry2 is third entry.
Entry3 is fourth entry.
FourEntries holds 4 entries.
FourEntrySTH is an STH for size 4.

# Structs

CertParseFailMatcher is a LeafMatcher which will match any Certificate or Precertificate that triggered an error on parsing.
CertVerifyFailMatcher is a LeafMatcher which will match any Certificate or Precertificate that fails validation.
EntryBatch represents a contiguous range of entries of the Log.
Fetcher is a tool that fetches entries from a CT Log.
FetcherOptions holds configuration options for the Fetcher.
MatchAll is a Matcher which will match every possible Certificate and Precertificate.
MatchIssuerRegex matches on issuer CN (common name) by regex.
MatchNone is a Matcher which will never match any Certificate or Precertificate.
MatchSCTTimestamp is a matcher which matches leaf entries with the specified Timestamp.
MatchSerialNumber performs a match for a specific serial number.
MatchSubjectRegex is a Matcher which will use CertificateSubjectRegex and PrecertificateSubjectRegex to determine whether Certificates and Precertificates are interesting.
Scanner is a tool to scan all the entries in a CT Log.
ScannerOptions holds configuration options for the Scanner.

# Interfaces

LeafMatcher describes how to match log entries, based on the Log LeafEntry (which includes the unparsed [pre-]certificate; clients should implement this interface to perform their own match criteria.
LogClient implements the subset of CT log API that the Fetcher uses.
Matcher describes how to match certificates and precertificates, based solely on the parsed [pre-]certificate; clients should implement this interface to perform their own match criteria.