index.d.ts 651 B

1234567891011
  1. import { RFC3161Timestamp } from '@sigstore/core';
  2. import type { TransparencyLogEntry } from '@sigstore/bundle';
  3. import type { CertAuthority, TLogAuthority } from '../trust';
  4. export type TimestampType = 'transparency-log' | 'timestamp-authority';
  5. export type TimestampVerificationResult = {
  6. type: TimestampType;
  7. logID: Buffer;
  8. timestamp: Date;
  9. };
  10. export declare function verifyTSATimestamp(timestamp: RFC3161Timestamp, data: Buffer, timestampAuthorities: CertAuthority[]): TimestampVerificationResult;
  11. export declare function verifyTLogTimestamp(entry: TransparencyLogEntry, tlogAuthorities: TLogAuthority[]): TimestampVerificationResult;