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

10 lines
399 B
TypeScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
import type { Bundle, RFC3161SignedTimestamp, TransparencyLogEntry } from '@sigstore/bundle';
export type SignatureBundle = Bundle['content'];
export type VerificationMaterial = {
tlogEntries?: TransparencyLogEntry[];
rfc3161Timestamps?: RFC3161SignedTimestamp[];
};
export interface Witness {
testify: (signature: SignatureBundle, publicKey: string) => Promise<VerificationMaterial>;
}