Skip to content

Partial Dart implementation of COSE, RFC8152

License

Notifications You must be signed in to change notification settings

jbx1/dart_cose

 
 

Repository files navigation

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);

About

Partial Dart implementation of COSE, RFC8152

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 100.0%