// isDSSEEnvelope validates r contains a DSSE envelope, which is the best
// indicator for an attestations created by Syft
isDSSEEnvelope validates r contains a DSSE envelope, which is the best
indicator for an attestations created by Syft
// isDSSEEnvelope validates r contains a DSSE envelope which is the best // indicator for an attestations created by Syft
func isDSSEEnvelope(r io.Reader) bool {
	env := &ssldsse.Envelope{}
	err := json.NewDecoder(r).Decode(env)
	if err != nil {
		return false
	}
	return env.PayloadType == types.IntotoPayloadType
}
func isDSSEEnvelope ( r io . Reader ) bool { env := & ssldsse . Envelope { } err := json . NewDecoder ( r ) . Decode ( env ) if err != nil { return false } return env . PayloadType == types . IntotoPayloadType }
isDSSEEnvelope validates r contains a DSSE envelope, which is the best
indicator for an attestations created by Syft
isDSSEEnvelope validates r contains a DSSE envelope which is the best indicator for an attestations created by Syft