@govtechsg/open-attestation
Version:
7 lines (6 loc) • 553 B
TypeScript
import { Signer } from "@ethersproject/abstract-signer";
import { SigningFunction, SigningOptions, SigningKey } from "../../shared/@types/sign";
import { defaultSigners } from "./signatureSchemes";
export declare const signerBuilder: (signers: Map<string, SigningFunction>) => (alg: string, message: string, keyOrSigner: SigningKey | Signer, options?: SigningOptions) => Promise<string>;
export declare const sign: (alg: string, message: string, keyOrSigner: SigningKey | Signer, options?: SigningOptions) => Promise<string>;
export { defaultSigners };