dsse.d.ts 491 B

123456789101112
  1. import { crypto } from '@sigstore/core';
  2. import type { Envelope } from '@sigstore/bundle';
  3. import type { SignatureContent } from '../shared.types';
  4. export declare class DSSESignatureContent implements SignatureContent {
  5. private readonly env;
  6. constructor(env: Envelope);
  7. compareDigest(digest: Buffer): boolean;
  8. compareSignature(signature: Buffer): boolean;
  9. verifySignature(key: crypto.KeyObject): boolean;
  10. get signature(): Buffer;
  11. private get preAuthEncoding();
  12. }