witness.d.ts 399 B

123456789
  1. import type { Bundle, RFC3161SignedTimestamp, TransparencyLogEntry } from '@sigstore/bundle';
  2. export type SignatureBundle = Bundle['content'];
  3. export type VerificationMaterial = {
  4. tlogEntries?: TransparencyLogEntry[];
  5. rfc3161Timestamps?: RFC3161SignedTimestamp[];
  6. };
  7. export interface Witness {
  8. testify: (signature: SignatureBundle, publicKey: string) => Promise<VerificationMaterial>;
  9. }