Sha256: 2c6a85e2a4b000f6db9aff4db7b8eac0ed24c1d3de87732604f2e452a73a869b
Contents?: true
Size: 647 Bytes
Versions: 25
Compression:
Stored size: 647 Bytes
Contents
/// <reference types="node" /> import { Signature, Signer } from '@sigstore/sign'; import { OneOf } from './utility'; interface VerificationMaterial { certificates: string[]; key: { id?: string; value: string; }; } export type SignatureMaterial = { signature: Buffer; } & OneOf<VerificationMaterial>; export type SignerFunc = (payload: Buffer) => Promise<SignatureMaterial>; type CallbackSignerOptions = { signer: SignerFunc; }; export declare class CallbackSigner implements Signer { private signer; constructor(options: CallbackSignerOptions); sign(data: Buffer): Promise<Signature>; } export {};
Version data entries
25 entries across 25 versions & 1 rubygems