UNPKG

@govtechsg/open-attestation

Version:
16 lines (15 loc) 577 B
import { Signer } from "@ethersproject/abstract-signer"; import { Record, Static, String } from "runtypes"; export declare enum SUPPORTED_SIGNING_ALGORITHM { Secp256k1VerificationKey2018 = "Secp256k1VerificationKey2018" } export interface SigningOptions { signAsString?: boolean; signer?: Signer; } export declare const SigningKey: Record<{ private: String; public: String; }, false>; export type SigningKey = Static<typeof SigningKey>; export type SigningFunction = (message: string, key: SigningKey | Signer, options?: SigningOptions) => Promise<string>;