package tlog
import "github.com/sigstore/sigstore-go/pkg/tlog"
Index ¶
- Variables
- func ValidateEntry(entry *Entry) error
- func VerifyCheckpointAndInclusion(entry *Entry, verifier signature.Verifier, origin string) error
- func VerifyInclusion(entry *Entry, verifier signature.Verifier) error
- func VerifySET(entry *Entry, verifiers map[string]*root.TransparencyLog) error
- type Entry
- func NewEntry(body []byte, integratedTime int64, logIndex int64, logID []byte, signedEntryTimestamp []byte, inclusionProof *models.InclusionProof) (*Entry, error)
- func NewTlogEntry(tle *v1.TransparencyLogEntry) (*Entry, error)
- func ParseEntry(protoEntry *v1.TransparencyLogEntry) (entry *Entry, err error)
- func ParseTransparencyLogEntry(tle *v1.TransparencyLogEntry) (*Entry, error)
- func (entry *Entry) Body() any
- func (entry *Entry) HasInclusionPromise() bool
- func (entry *Entry) HasInclusionProof() bool
- func (entry *Entry) IntegratedTime() time.Time
- func (entry *Entry) LogIndex() int64
- func (entry *Entry) LogKeyID() string
- func (entry *Entry) PublicKey() any
- func (entry *Entry) Signature() []byte
- func (entry *Entry) TransparencyLogEntry() *v1.TransparencyLogEntry
- type RekorPayload
Variables ¶
var ErrInvalidRekorV2Entry = errors.New("type error: object is not a Rekor v2 type, try parsing as Rekor v1")
Functions ¶
func ValidateEntry ¶
func VerifyCheckpointAndInclusion ¶
VerifyCheckpointAndInclusion verifies a checkpoint and the entry's inclusion in the transparency log. This function is compatible with Rekor v1 and Rekor v2.
func VerifyInclusion ¶
VerifyInclusion verifies a Rekor v1-style checkpoint and the entry's inclusion in the Rekor v1 log.
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)
Deprecated: use NewTlogEntry. NewEntry only parses a Rekor v1 entry.
func NewTlogEntry ¶
func NewTlogEntry(tle *v1.TransparencyLogEntry) (*Entry, error)
func ParseEntry ¶
func ParseEntry(protoEntry *v1.TransparencyLogEntry) (entry *Entry, err error)
Deprecated: use ParseTransparencyLogEntry. ParseEntry only parses Rekor v1 type entries. ParseEntry decodes the entry bytes to a specific entry type (types.EntryImpl).
func ParseTransparencyLogEntry ¶
func ParseTransparencyLogEntry(tle *v1.TransparencyLogEntry) (*Entry, error)
func (*Entry) Body ¶
func (*Entry) HasInclusionPromise ¶
func (*Entry) HasInclusionProof ¶
func (*Entry) IntegratedTime ¶
func (*Entry) LogIndex ¶
func (*Entry) LogKeyID ¶
func (*Entry) PublicKey ¶
func (*Entry) Signature ¶
func (*Entry) TransparencyLogEntry ¶
func (entry *Entry) TransparencyLogEntry() *v1.TransparencyLogEntry
type RekorPayload ¶
type RekorPayload struct {
Body interface{} `json:"body"`
IntegratedTime int64 `json:"integratedTime"`
LogIndex int64 `json:"logIndex"`
LogID string `json:"logID"` //nolint:tagliatelle
}
Source Files ¶
- Version
- v1.1.1 (latest)
- Published
- Aug 5, 2025
- Platform
- linux/amd64
- Imports
- 31 packages
- Last checked
- 8 months ago –
Tools for package owners.