package ctlog

import "github.com/google/monologue/ctlog"

Package ctlog contains data structures and methods to do with CT Log metadata that is needed by Monologue.

TODO(katjoyce): Try to come up with a better package name.

Index

Types

type Log

type Log struct {
	Name      string
	URL       string
	PublicKey crypto.PublicKey
	LogID     logid.LogID
	MMD       time.Duration

	// TemporalInterval represents the interval in which a certificate's
	// NotAfter field must fall to be accepted by the Log (as specified by the
	// Log Operators).
	// TemporalInterval.Start and TemporalInterval.End are both to second
	// precision.  Any smaller units may be ignored/discarded.
	TemporalInterval *interval.Interval
}

Log contains metadata about a CT Log that is needed by Monologue.

func New

func New(url, name, b64PubKey string, mmd time.Duration, i *interval.Interval) (*Log, error)

New creates a Log structure, populating the fields appropriately.

If the Log is not a temporal shard, interval should be nil.

TODO(katjoyce): replace this implementation with something less hacky that takes log details from a log list struct based on the new Log list JSON schema.

Source Files

ctlog.go

Version
v0.0.0-20230315160450-1dc62842925e (latest)
Published
Mar 15, 2023
Platform
linux/amd64
Imports
6 packages
Last checked
1 day ago

Tools for package owners.