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

affinidi-mdoc

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

7 releases

Uses new Rust 2024

0.2.5 Aug 2, 2026
0.2.4 Jul 31, 2026
0.2.3 Jun 14, 2026
0.2.0 May 28, 2026
0.1.0 Mar 23, 2026

#2366 in Authentication

Download history 2/week @ 2026-06-10 9/week @ 2026-06-17 28/week @ 2026-06-24 42/week @ 2026-07-01 10/week @ 2026-07-08 40/week @ 2026-07-15 13/week @ 2026-07-22 8/week @ 2026-07-29

71 downloads per month
Used in 2 crates

Apache-2.0

210KB
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

~9–14MB
~200K SLoC