15 lines
592 B
TypeScript
15 lines
592 B
TypeScript
/// <reference types="node" />
|
|
import { Bundle } from '@sigstore/bundle';
|
|
import * as sigstore from './types/sigstore';
|
|
export type KeySelector = (hint: string) => string | Buffer | undefined;
|
|
export declare class Verifier {
|
|
private trustedRoot;
|
|
private keySelector;
|
|
constructor(trustedRoot: sigstore.TrustedRoot, keySelector?: KeySelector);
|
|
verify(bundle: Bundle, options: sigstore.RequiredArtifactVerificationOptions, data?: Buffer): void;
|
|
private verifyArtifactSignature;
|
|
private verifySigningCertificate;
|
|
private verifyTLogEntries;
|
|
private getPublicKey;
|
|
}
|