# diegocidm4/iqrdni architecture

> Architecture diagram of the GitHub repository diegocidm4/iqrdni, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/diegocidm4/iqrdni
- Repository: https://github.com/diegocidm4/iqrdni

## Overview

iQRDNI is a Swift library for configuring licensed MiDNI QR validation and parsing. The documented workflow is for an integrating app to configure the library, provide raw QR data read from a camera, and receive parsed MiDNI data if validation succeeds. The implementation is distributed as a binary framework; its internal stages cannot be verified from the available source excerpts, so the graph shows only documented responsibilities and relationships.

Main entry points: [`Sources/iQRDNI.xcframework`](https://github.com/diegocidm4/iqrdni/tree/main/Sources/iQRDNI.xcframework) (QR validation and parsing)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_app(("Integrating app"))
node_configure["Library configuration<br/>[iQRDNI.xcframework]"]
node_validator["QR validation and parsing<br/>[iQRDNI.xcframework]"]
node_certs["Police certificates"]
node_result["MiDNI data"]

node_app -->|"sets license"| node_configure
node_app -->|"supplies QR data"| node_validator
node_configure -->|"configures validation"| node_validator
node_validator -->|"checks signature"| node_certs
node_validator -->|"returns parsed data"| node_result

click node_configure "https://github.com/diegocidm4/iqrdni/tree/main/Sources/iQRDNI.xcframework"
click node_validator "https://github.com/diegocidm4/iqrdni/tree/main/Sources/iQRDNI.xcframework"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_certs,node_result toneIndigo
class node_configure,node_validator toneTeal
```

## Components

### Other components

- **Integrating app**
- [Library configuration](https://github.com/diegocidm4/iqrdni/tree/main/Sources/iQRDNI.xcframework): `Sources/iQRDNI.xcframework`
- [QR validation and parsing](https://github.com/diegocidm4/iqrdni/tree/main/Sources/iQRDNI.xcframework): `Sources/iQRDNI.xcframework`
- **Police certificates**
- **MiDNI data**

## Connections

- Integrating app → Library configuration: sets license (evidence: `README.md`)
- Integrating app → QR validation and parsing: supplies QR data (evidence: `README.md`)
- Library configuration → QR validation and parsing: configures validation (evidence: `README.md`)
- QR validation and parsing → Police certificates: checks signature (evidence: `README.md`)
- QR validation and parsing → MiDNI data: returns parsed data (evidence: `README.md`)
