covid-certificate
Version:
Parse and verify a european digital covid certificate (dcc)
14 lines (13 loc) • 491 B
TypeScript
import { CoseProtectedHeaders, CoseUnprotectedHeaders } from "../cose";
/**
* Get a header value from the COSE headers.
*
* If both protected and unprotected headers give the header, the
* function will return the kid given in the protected header
*
*
* @param protectedHeaders
* @param unprotectedHeaders
* @param headerKey
*/
export declare const extractHeader: (protectedHeaders: CoseProtectedHeaders, unprotectedHeaders: CoseUnprotectedHeaders, headerKey: number) => unknown;