Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 755 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 755 Bytes

Pub Build status

dart_cose

A package that can be used to decode and validate a COSE that contains a European Digital Green Certificate (DGC).

Getting Started

Import the COSE as binary (List) and your keys in a map kid => PEM and call the decodeAndVerify function on Cose.

Example:

    final result = Cose.decodeAndVerify(
        coseIntList,
        {
          'kid': '''pem'''
        },
    );
    print(result.errorCode);
    print(result.verified);
    print(result.payload);