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

17 lines
339 B
TypeScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
/// <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>;
}