@govtechsg/open-attestation
Version:
8 lines (7 loc) • 645 B
TypeScript
import { OpenAttestationDocument, SignedWrappedDocument, WrappedDocument } from "./types";
import { SigningKey, SUPPORTED_SIGNING_ALGORITHM } from "../shared/@types/sign";
import { Signer } from "@ethersproject/abstract-signer";
/**
* @deprecated will be removed in the next major release in favour of OpenAttestation v4.0 (more info: https://github.com/Open-Attestation/open-attestation/tree/alpha)
*/
export declare const signDocument: <T extends OpenAttestationDocument>(document: SignedWrappedDocument<T> | WrappedDocument<T>, algorithm: SUPPORTED_SIGNING_ALGORITHM, keyOrSigner: SigningKey | Signer) => Promise<SignedWrappedDocument<T>>;