Documentation
¶
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, ...) (*Entry, error)deprecated
- func NewTlogEntry(tle *v1.TransparencyLogEntry) (*Entry, error)
- func ParseEntry(protoEntry *v1.TransparencyLogEntry) (entry *Entry, err error)deprecated
- func ParseTransparencyLogEntry(tle *v1.TransparencyLogEntry) (*Entry, error)
- func (entry *Entry) Body() any
- func (entry *Entry) GetDssePayloadHash() (digest []byte, ok bool)
- func (entry *Entry) GetHashedRekordDigest() (digest []byte, algorithm string, ok bool)
- func (entry *Entry) HasInclusionPromise() bool
- func (entry *Entry) HasInclusionProof() bool
- func (entry *Entry) IntegratedTime() time.Time
- func (entry *Entry) IsRekorV2() bool
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidRekorV2Entry = errors.New("type error: object is not a Rekor v2 type, try parsing as Rekor v1")
View Source
var ErrNilValue = errors.New("validation error: nil value in transaction log entry")
Functions ¶
func ValidateEntry ¶
func VerifyCheckpointAndInclusion ¶ added in v1.1.0
VerifyCheckpointAndInclusion verifies a checkpoint and the entry's inclusion in the transparency log. This function is compatible with Rekor v1 and Rekor v2. Prefer verify.VerifyTlogEntry, which also compares the log entry against a provided bundle.
func VerifyInclusion ¶
VerifyInclusion verifies a Rekor v1-style checkpoint and the entry's inclusion in the Rekor v1 log. Prefer verify.VerifyTlogEntry, which also compares the log entry against a provided bundle.
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
func NewTlogEntry ¶ added in v1.1.0
func NewTlogEntry(tle *v1.TransparencyLogEntry) (*Entry, error)
func ParseEntry
deprecated
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 ¶ added in v1.1.0
func ParseTransparencyLogEntry(tle *v1.TransparencyLogEntry) (*Entry, error)
func (*Entry) GetDssePayloadHash ¶ added in v1.2.0
func (*Entry) GetHashedRekordDigest ¶ added in v1.2.0
func (*Entry) HasInclusionPromise ¶
func (*Entry) HasInclusionProof ¶
func (*Entry) IntegratedTime ¶
func (*Entry) TransparencyLogEntry ¶ added in v1.1.0
func (entry *Entry) TransparencyLogEntry() *v1.TransparencyLogEntry
Click to show internal directories.
Click to hide internal directories.