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

16 lines
339 B
TypeScript
Executable file

/// <reference types="node" />
export type KeyMaterial = {
$case: 'x509Certificate';
certificate: string;
} | {
$case: 'publicKey';
publicKey: string;
hint?: string;
};
export type Signature = {
signature: Buffer;
key: KeyMaterial;
};
export interface Signer {
sign: (data: Buffer) => Promise<Signature>;
}