UNPKG

dte-signer-sv

Version:

Sign Digital Tax Documents (DTE) for El Salvador's Ministry of Finance

8 lines (7 loc) 428 B
import jose from "node-jose"; export declare const HASH_ALGORITHM = "sha512"; export declare const PRIVATE_KEY_HASH_ALGORITHM = "pkcs8"; export declare const SIGNATURE_ALGORITHM = "RS512"; export declare const hash: (data: string) => string; export declare const createJwk: (privateKey: string) => Promise<jose.JWK.Key>; export declare const sign: (data: object, privateKey: jose.JWK.Key) => Promise<jose.JWS.CreateSignResult>;