Skip to content

Commit

Permalink
Check if entry has inclusion proof rather than entity (#310)
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Sirish A Yelgundhalli <[email protected]>
  • Loading branch information
adityasaky authored Oct 11, 2024
1 parent 8e9fa2c commit 6d84685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/verify/tlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func VerifyArtifactTransparencyLog(entity SignedEntity, trustedMaterial root.Tru
verifiedTimestamps = append(verifiedTimestamps, Timestamp{Time: entry.IntegratedTime(), URI: tlogVerifier.BaseURL})
}
}
if entity.HasInclusionProof() {
if entry.HasInclusionProof() {
verifier, err := getVerifier(tlogVerifier.PublicKey, tlogVerifier.SignatureHashFunc)
if err != nil {
return nil, err
Expand Down

0 comments on commit 6d84685

Please sign in to comment.