EUDI Wallet (eIDAS 2.0)
Beta disclaimer: Mandaitor is currently exploring and implementing EUDI Wallet support, but the required registration and ecosystem onboarding steps are still outstanding. Mandaitor should therefore not yet be described as an official EUDI Wallet party, production Relying Party, or formally recognized participant in the EUDI ecosystem.
The EU Digital Identity Wallet (EUDI Wallet) is the centrepiece of eIDAS 2.0 (Regulation EU 2024/1183). Mandaitor is preparing an integration path to consume verified Person Identification Data (PID) from EUDI Wallets and bind it to mandates once the required registration and operational prerequisites are complete.
Why EUDI Wallet?
eIDAS 2.0 answers "who is this person?" through government-issued PID. Mandaitor answers "may this person act on behalf of another?" through its mandate registry. Together, they provide a complete delegation infrastructure with legally-backed identity verification.
| Aspect | Details |
|---|---|
| Protocol | OpenID for Verifiable Presentations (OpenID4VP) |
| Credential Format | SD-JWT VC (online) + mdoc/ISO 18013-5 (proximity) |
| Assurance Level | Target state: HIGH once ecosystem onboarding is complete |
| Privacy | Selective disclosure — only requested attributes shared |
| Deadline | All EU Member States must issue wallets by December 2026 |
Integration Flow
Cross-Device Flow (QR Code)
Same-Device Flow (Deep Link)
For mobile-first scenarios, Mandaitor returns a deep link (openid4vp://authorize?...) that opens the wallet app directly on the same device.
PID Attributes
The wallet presents Person Identification Data with selective disclosure:
| Attribute | Required | Description |
|---|---|---|
unique_id | Yes | Persistent identifier from the Member State |
family_name | Yes | Current surname(s) |
given_name | Yes | Current first name(s) |
birth_date | Optional | Date of birth (ISO 8601) |
nationality | Optional | ISO 3166-1 alpha-2 country code |
For beta planning and prototype evaluation, Mandaitor currently models three presentation definitions with different data requirements:
mandaitor-pid-minimal— Onlyunique_id(most privacy-preserving)mandaitor-pid-standard— Name + unique ID (the default)mandaitor-pid-delegation— PID + delegation EAA attestation
Sessions: one purpose, one use
Every session is started for one purpose, and is bound to what that purpose needs:
| Purpose | Started by | Backs |
|---|---|---|
identity | POST /eudi/sessions, by default | Nothing: it shows who presented. |
mandate | POST /eudi/sessions with purpose: "mandate" and the draft's mandate_draft_digest | One mandate, made from that draft. |
approval | POST /executions/{id}/approval/step-up | One approval, by its approver (Approving with your wallet). |
wallet_link | POST /tenants/{id}/users/{subjectId}/wallet/sessions | Linking the wallet to the account that started it (Linking a wallet). |
- A session lasts ten minutes. The wallet must present within them, and the session must be used within them.
- It is used once. Using it moves it to
CONSUMED, and a second use is refused. - It is used only for its purpose, and only for what it was bound to when it started.
A session that cannot be used is refused with one of these codes:
error | When |
|---|---|
EUDI_SESSION_NOT_FOUND | No such session in your tenant. Another tenant's session is answered the same way. |
EUDI_SESSION_NOT_COMPLETED | The wallet has not presented to it, or its presentation failed. |
EUDI_SESSION_EXPIRED | Its ten minutes have ended. Start a new session. |
EUDI_SESSION_CONSUMED | It was already used. |
EUDI_SESSION_PURPOSE | It was started for another purpose. A session started before October 2026 is an identity session. |
EUDI_SESSION_BINDING | It was started for another draft, another approval, or by another person. |
Creating a mandate from a presentation
The presented person becomes the mandate's principal. Write the draft first: the session is bound to that exact draft, and backs a mandate made from it alone. POST /mandates replaces the principal's subject_id and eidas_attributes with the presented identity, and its display_name too unless the draft sets one. So the draft's principal is a placeholder until the wallet presents.
import { MandaitorClient, type CreateMandateRequest } from "@mandaitor/sdk";
const client = new MandaitorClient({
apiKey: "mk_test_<PASTE-YOUR-KEY-HERE>",
tenantId: "tnt_your_tenant",
});
// 1. The mandate as it will be created. The presented person replaces the principal.
const draft: CreateMandateRequest = {
principal: { type: "NATURAL_PERSON", subject_id: "eudi:presented" },
delegate: { type: "AGENT", subject_id: "agent:my-ai-agent" },
scope: {
actions: ["construction.validation.approve"],
resources: ["construction:project:*"],
effect: "ALLOW",
},
constraints: {},
};
// 2. A session bound to that draft
const session = await client.initiateEudiSession("mandaitor-pid-standard", {
mandateDraft: draft,
});
console.log(session.qr_code_uri); // Render as QR code
console.log(session.deep_link_uri); // Or open directly on mobile
// 3. Poll until the wallet has presented (within ten minutes)
const status = await client.getEudiSessionStatus(session.session_id);
if (status.status === "COMPLETED") {
console.log(status.resolved_identity?.subject_id); // "eudi:DE/123..."
}
// 4. The same draft, with the session: it backs this mandate and no other
const mandate = await client.createMandate({ ...draft, eudi_session_id: session.session_id });
- Send the same body. The session is bound to the digest of the
POST /mandatesbody withouteudi_session_id. A different scope, delegate or constraint, or even a different principal placeholder, is refused withEUDI_SESSION_BINDING. - The digest is
sha-256:followed by the unpadded base64url SHA-256 of the JSON Canonicalization Scheme (RFC 8785) form of{"contract":"mandaitor.mandate-draft/v1","draft":<body>}. Order of keys does not matter. Without the SDK, start the session withPOST /eudi/sessionsand{"purpose":"mandate","mandate_draft_digest":"sha-256:…"}. The SDK'smandateDraftDigest(draft)computes the same value, over the draft as JSON carries it: a member set toundefinedis left out, as it is from the request. - The session is spent when the mandate is created. If creation then fails, start a new session.
- An
identitysession no longer backs a mandate (SEC-043). Before October 2026 any completed session did, more than once and after it expired.
mandateDraftDigest and the mandateDraft option are in @mandaitor/sdk 5.2.0.
Linking a wallet
An approver links their EUDI Wallet to their account once. Approvals that a mandate says must be confirmed with the wallet (Approving with your wallet) are then made with it.
POST /tenants/{id}/users/{subjectId}/wallet/sessionsstarts awallet_linksession for ten minutes. It asks for the PID'sunique_idalone (mandaitor-pid-minimal).- The approver presents their wallet to it.
PUT /tenants/{id}/users/{subjectId}/walletwith{ "eudi_session_id": "eudi_…" }links the wallet and spends the session.
- Only from the account's own session, signed in with MFA. A tenant admin cannot link a wallet for someone else:
403 NOT_YOUR_ACCOUNT. Every dashboard session counts as signed in with MFA. A session from the tenant's own identity provider counts only when its token'samrsaysmfa; otherwise the answer is403 MFA_REQUIRED. - One wallet per account, one account per wallet. An account that already holds a wallet is answered
409 WALLET_ALREADY_LINKED. A wallet linked to another account in the tenant is answered409 WALLET_LINKED_ELSEWHERE. - Mandaitor keeps no PID claim. It keeps a digest of the PID's issuer and
unique_id, per tenant, and shows the link by its issuer. The PID's identifier is not stored. - Reading the link.
GET .../walletis for the account itself or a tenant admin. It answers404 WALLET_NOT_LINKEDwhen no wallet is linked. - Removing the link.
DELETE .../walletis for a tenant admin who does not hold the account. Whoever holds an account could otherwise swap its wallet for their own, so the account's holder cannot remove it:403 NOT_YOUR_OWN_WALLET. An admin's own link is removed by another admin. - Recorded first. Linking and removing are recorded on the audit trail, as
WALLET_LINKEDandWALLET_UNLINKEDwith the wallet's digest, before they happen. If the record cannot be written, nothing changes, and the answer is503 AUDIT_UNAVAILABLE.
Approving with your wallet
A mandate's escalation_rules.wallet_above sets an amount above which an execution's approval is confirmed with the approver's linked wallet, as well as their signed-in session. The approval card starts a step-up session with POST /executions/{id}/approval/step-up. The approver presents their wallet, and the approval is sent with the session's id. The presentation answers that approval and no other, and is used once. Executions describes the whole approval.
React Widget
The widget starts an identity session: it shows who presented, and backs nothing on its own.
import WalletVerification from "@/components/eudi/WalletVerification";
function MyComponent() {
return (
<WalletVerification
presentationDefinitionId="mandaitor-pid-standard"
onVerified={(session) => {
console.log("Verified:", session.resolved_identity.subject_id);
}}
onError={(error) => console.error(error)}
onCancel={() => console.log("Cancelled")}
/>
);
}
Credential Verification
Once the EUDI integration path is fully enabled, Mandaitor is designed to verify VP Tokens through a multi-step process:
- SD-JWT parsing — Decode the compact serialization and extract disclosures
- Disclosure hash verification — Verify each disclosure hash matches the
_sdarray - Cryptographic signature — Verify the JWT signature against the issuer's JWKS
- Issuer trust — Check the issuer against the EU Trusted Lists (LOTL)
- Credential revocation — Check StatusList2021 / BitstringStatusListEntry status
- Nonce validation — Prevent replay attacks with session-bound nonces
- Expiration check — Reject expired credentials
mdoc Support
For proximity presentations (BLE/NFC), Mandaitor also supports the mdoc format (ISO 18013-5). mdoc credentials use CBOR encoding and the eu.europa.ec.eudi.pid.1 namespace for PID claims.
Trusted Lists
The intended production integration maintains a cached copy of the EU List of Trusted Lists (LOTL) to verify that PID issuers are legitimate. During beta preparation, this should be understood as target architecture rather than a statement that Mandaitor has already completed every formal onboarding, registration, or recognition requirement of the EUDI ecosystem.