diff --git a/pkg/verify/interface.go b/pkg/verify/interface.go index 6440554..c06310f 100644 --- a/pkg/verify/interface.go +++ b/pkg/verify/interface.go @@ -21,7 +21,6 @@ import ( in_toto "github.com/in-toto/attestation/go/v1" "github.com/secure-systems-lab/go-securesystemslib/dsse" - protocommon "github.com/sigstore/protobuf-specs/gen/pb-go/common/v1" "github.com/sigstore/sigstore-go/pkg/root" "github.com/sigstore/sigstore-go/pkg/tlog" ) @@ -95,19 +94,21 @@ type EnvelopeContent interface { // that only implements a subset of the interfaces. type BaseSignedEntity struct{} -func (b *BaseSignedEntity) VerificationProvider() (VerificationContent, error) { - return nil, errNotImplemented +var _ SignedEntity = &BaseSignedEntity{} + +func (b *BaseSignedEntity) HasInclusionPromise() bool { + return false } -func (b *BaseSignedEntity) Envelope() (*dsse.Envelope, error) { - return nil, errNotImplemented +func (b *BaseSignedEntity) HasInclusionProof() bool { + return false } -func (b *BaseSignedEntity) MessageSignature() (*protocommon.MessageSignature, error) { +func (b *BaseSignedEntity) VerificationContent() (VerificationContent, error) { return nil, errNotImplemented } -func (b *BaseSignedEntity) Signature() ([]byte, error) { +func (b *BaseSignedEntity) SignatureContent() (SignatureContent, error) { return nil, errNotImplemented }