sigstore.d.ts 736 B

12345678910
  1. import { SerializedBundle } from '@sigstore/bundle';
  2. import * as config from './config';
  3. export declare function sign(payload: Buffer, options?: config.SignOptions): Promise<SerializedBundle>;
  4. export declare function attest(payload: Buffer, payloadType: string, options?: config.SignOptions): Promise<SerializedBundle>;
  5. export declare function verify(bundle: SerializedBundle, options?: config.VerifyOptions): Promise<void>;
  6. export declare function verify(bundle: SerializedBundle, data: Buffer, options?: config.VerifyOptions): Promise<void>;
  7. export interface BundleVerifier {
  8. verify(bundle: SerializedBundle, data?: Buffer): void;
  9. }
  10. export declare function createVerifier(options?: config.VerifyOptions): Promise<BundleVerifier>;