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

15 lines
612 B
TypeScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
/// <reference types="node" />
/// <reference types="node" />
import { crypto } from '@sigstore/core';
import type { MessageSignature } from '@sigstore/bundle';
import type { SignatureContent } from '../shared.types';
export declare class MessageSignatureContent implements SignatureContent {
readonly signature: Buffer;
private readonly messageDigest;
private readonly artifact;
constructor(messageSignature: MessageSignature, artifact: Buffer);
compareSignature(signature: Buffer): boolean;
compareDigest(digest: Buffer): boolean;
verifySignature(key: crypto.KeyObject): boolean;
}