UNPKG

@vaxxnz/nzcp

Version:

A JavaScript implementation of the NZ COVID Pass verification

6 lines (5 loc) 326 B
import { Data } from "./cborTypes"; import { DecodedCOSEStructure } from "./coseTypes"; export declare function encodeToBeSigned(bodyProtected: Uint8Array, payload: Uint8Array): Uint8Array; export declare const decodeCBOR: (buf: Uint8Array) => Data; export declare const decodeCOSE: (buf: Uint8Array) => DecodedCOSEStructure;