using System.Threading;
using System.Threading.Tasks;
using StellaOps.Excititor.Attestation.Dsse;

namespace StellaOps.Excititor.Attestation.Transparency;

public sealed record TransparencyLogEntry(string Id, string Location, string? LogIndex, string? InclusionProofUrl);

public interface ITransparencyLogClient
{
    ValueTask<TransparencyLogEntry> SubmitAsync(DsseEnvelope envelope, CancellationToken cancellationToken);

    ValueTask<bool> VerifyAsync(string entryLocation, CancellationToken cancellationToken);
}
