@govtechsg/open-attestation
Version:
6 lines (5 loc) • 495 B
TypeScript
import { WrappedDocument } from "./types";
import { OpenAttestationDocument, SignedWrappedDocument } from "./types";
import { SigningKey, SUPPORTED_SIGNING_ALGORITHM } from "../shared/@types/sign";
import { Signer } from "@ethersproject/abstract-signer";
export declare const signDocument: <T extends OpenAttestationDocument>(document: SignedWrappedDocument<T> | WrappedDocument<T>, algorithm: SUPPORTED_SIGNING_ALGORITHM, keyOrSigner: Signer | SigningKey) => Promise<SignedWrappedDocument<T>>;