Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkpoint ¶
Checkpoint represents a tlog-checkpoint note text.
https://c2sp.org/tlog-checkpoint
func Open ¶
Open opens a signed checkpoint note and parses its text. An error is returned if signedNote is not a well-formed note, if its signature lines are not exactly one verified signature per verifier and nothing else (note.InvalidSignatureError for a rejected one), or if the note's text is not a well-formed checkpoint.
func Unmarshal ¶
func Unmarshal(noteText []byte) (*Checkpoint, error)
Unmarshal parses a checkpoint note text. The text must not have any signature lines. For a signed note, use Open.
func (*Checkpoint) Marshal ¶
func (c *Checkpoint) Marshal() ([]byte, error)
Marshal returns the note text, first checking the checkpoint against the tlog-checkpoint requirements. It returns an error if the checkpoint is invalid.
func (*Checkpoint) SignedNote ¶ added in v0.20260908.0
func (c *Checkpoint) SignedNote(signatureLines []byte) ([]byte, error)
SignedNote returns the checkpoint as a signed note: the note text followed by signatureLines.