di-wings
Version:
Aviary Tech's common library for decentralized identity
17 lines • 496 B
TypeScript
import type { JWA_ALG } from '../constants.js';
export type Signer = {
sign: ({ data }: {
data: Uint8Array;
}) => Promise<Uint8Array>;
};
export declare const detachedHeaderParams: {
b64: boolean;
crit: string[];
};
export declare const createJWSSigner: (signer: Signer, type: JWA_ALG, options?: any) => {
sign: (data: Uint8Array, options?: {
detached?: boolean;
header?: object;
}) => Promise<string>;
};
//# sourceMappingURL=createSigner.d.ts.map