tlog

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilValue = errors.New("validation error: nil value in transaction log entry")

Functions

func ValidateEntry

func ValidateEntry(entry *Entry) error

func VerifyInclusion

func VerifyInclusion(entry *Entry, verifier signature.Verifier) error

func VerifySET

func VerifySET(entry *Entry, verifiers map[string]*root.TransparencyLog) error

Types

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

func NewEntry

func NewEntry(body []byte, integratedTime int64, logIndex int64, logID []byte, signedEntryTimestamp []byte, inclusionProof *models.InclusionProof) (*Entry, error)

func ParseEntry

func ParseEntry(protoEntry *v1.TransparencyLogEntry) (entry *Entry, err error)

ParseEntry decodes the entry bytes to a specific entry type (types.EntryImpl).

func (*Entry) Body

func (entry *Entry) Body() any

func (*Entry) HasInclusionPromise

func (entry *Entry) HasInclusionPromise() bool

func (*Entry) HasInclusionProof

func (entry *Entry) HasInclusionProof() bool

func (*Entry) IntegratedTime

func (entry *Entry) IntegratedTime() time.Time

func (*Entry) LogIndex

func (entry *Entry) LogIndex() int64

func (*Entry) LogKeyID

func (entry *Entry) LogKeyID() string

func (*Entry) PublicKey

func (entry *Entry) PublicKey() any

func (*Entry) Signature

func (entry *Entry) Signature() []byte

type RekorPayload

type RekorPayload struct {
	Body           interface{} `json:"body"`
	IntegratedTime int64       `json:"integratedTime"`
	LogIndex       int64       `json:"logIndex"`
	LogID          string      `json:"logID"` //nolint:tagliatelle
}

Jump to

Keyboard shortcuts

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