verifier.d.ts 612 B

123456789101112131415161718
  1. import type { SignedEntity, Signer, VerificationPolicy } from './shared.types';
  2. import type { TrustMaterial } from './trust';
  3. export type VerifierOptions = {
  4. tlogThreshold?: number;
  5. ctlogThreshold?: number;
  6. tsaThreshold?: number;
  7. };
  8. export declare class Verifier {
  9. private trustMaterial;
  10. private options;
  11. constructor(trustMaterial: TrustMaterial, options?: VerifierOptions);
  12. verify(entity: SignedEntity, policy?: VerificationPolicy): Signer;
  13. private verifyTimestamps;
  14. private verifySigningKey;
  15. private verifyTLogs;
  16. private verifySignature;
  17. private verifyPolicy;
  18. }