index.d.ts 666 B

1234567891011121314151617
  1. import { TLogClientOptions } from './client';
  2. import type { TransparencyLogEntry } from '@sigstore/bundle';
  3. import type { SignatureBundle, Witness } from '../witness';
  4. export declare const DEFAULT_REKOR_URL = "https://rekor.sigstore.dev";
  5. type TransparencyLogEntries = {
  6. tlogEntries: TransparencyLogEntry[];
  7. };
  8. export type RekorWitnessOptions = Partial<TLogClientOptions> & {
  9. entryType?: 'dsse' | 'intoto';
  10. };
  11. export declare class RekorWitness implements Witness {
  12. private tlog;
  13. private entryType?;
  14. constructor(options: RekorWitnessOptions);
  15. testify(content: SignatureBundle, publicKey: string): Promise<TransparencyLogEntries>;
  16. }
  17. export {};