Documentation
¶
Overview ¶
Package parse contains internal methods for parsing data structures quickly, if unsafely. This is a bit of a utility package which is an anti-pattern, but this code is critical enough that it should be reused, tested, and benchmarked rather than copied around willy nilly. If a better home becomes available, feel free to move the contents elsewhere.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckpointUnsafe ¶
CheckpointUnsafe parses a checkpoint without performing any signature verification. This is intended to be as fast as possible, but sacrifices safety because it skips verifying the note signature.
Parsing a checkpoint like this is only acceptable in the same binary as the log implementation that generated it and thus we can safely assume it's a well formed and validly signed checkpoint. Anyone copying similar logic into client code will get hurt.
Types ¶
This section is empty.