parse

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

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

func CheckpointUnsafe(rawCp []byte) (string, uint64, []byte, error)

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.

Jump to

Keyboard shortcuts

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