2 releases
Uses new Rust 2024
| new 0.1.1 | Apr 18, 2026 |
|---|---|
| 0.1.0 | Mar 23, 2026 |
#1377 in Authentication
205KB
4.5K
SLoC
affinidi-mdoc
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.
Related Crates
affinidi-sd-jwt-vc— SD-JWT VC format (the other eIDAS mandatory format)affinidi-vc— W3C VC Data Model typesaffinidi-status-list— Credential status/revocation
License
Dependencies
~8–13MB
~169K SLoC