NET-Web-API-w-Angular/my-app/node_modules/@sigstore/verify/dist/verifier.d.ts

19 lines
612 B
TypeScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
import type { SignedEntity, Signer, VerificationPolicy } from './shared.types';
import type { TrustMaterial } from './trust';
export type VerifierOptions = {
tlogThreshold?: number;
ctlogThreshold?: number;
tsaThreshold?: number;
};
export declare class Verifier {
private trustMaterial;
private options;
constructor(trustMaterial: TrustMaterial, options?: VerifierOptions);
verify(entity: SignedEntity, policy?: VerificationPolicy): Signer;
private verifyTimestamps;
private verifySigningKey;
private verifyTLogs;
private verifySignature;
private verifyPolicy;
}