UNPKG

covid-certificate

Version:

Parse and verify a european digital covid certificate (dcc)

16 lines (15 loc) 376 B
import { HealthCertificate } from "../health-certificate/HealthCertificate"; /** * Parse certificate string * * @example * ```js * const certificate = parse("HC1:your_data_from_QR_Code"); * ``` * @remarks * * This function will not verify the signature of the data. * * @param certificate */ export declare const parse: (certificate: string) => HealthCertificate;