#affinidi #ssi #mdoc #eidas #iso-18013

affinidi-mdoc

ISO/IEC 18013-5 mdoc (Mobile Document) implementation for mobile driving licences and eIDAS attestations

2 releases

Uses new Rust 2024

new 0.1.1 Apr 18, 2026
0.1.0 Mar 23, 2026

#1377 in Authentication

Apache-2.0

205KB
4.5K SLoC

affinidi-mdoc

Crates.io Documentation Rust License

ISO/IEC 18013-5 mdoc (Mobile Document) implementation for mobile driving licences (mDL) and eIDAS 2.0 attestations.

Installation

[dependencies]
affinidi-mdoc = "0.1"

Features

  • CBOR encoding: Full CBOR serialization/deserialization via ciborium
  • COSE signatures: COSE_Sign1 signing and verification via coset
  • Mobile Security Object (MSO): Issuer-signed digests of attribute values
  • Namespace-based attributes: Organized by doc type and namespace
  • IssuerSigned / DeviceResponse: Full credential and presentation structures
  • Selective disclosure: Holder reveals only chosen attributes per namespace

eIDAS PID Namespace

The eIDAS PID namespace eu.europa.ec.eudi.pid.1 defines standard attributes: family_name, given_name, birth_date, age_over_18, nationality, etc.

License

Apache-2.0

Dependencies

~8–13MB
~169K SLoC