Skip to main content

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.

AspectDetails
ProtocolOpenID for Verifiable Presentations (OpenID4VP)
Credential FormatSD-JWT VC (online) + mdoc/ISO 18013-5 (proximity)
Assurance LevelTarget state: HIGH once ecosystem onboarding is complete
PrivacySelective disclosure — only requested attributes shared
DeadlineAll EU Member States must issue wallets by December 2026

Integration Flow​

Cross-Device Flow (QR Code)​

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:

AttributeRequiredDescription
unique_idYesPersistent identifier from the Member State
family_nameYesCurrent surname(s)
given_nameYesCurrent first name(s)
birth_dateOptionalDate of birth (ISO 8601)
nationalityOptionalISO 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 — Only unique_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:

PurposeStarted byBacks
identityPOST /eudi/sessions, by defaultNothing: it shows who presented.
mandatePOST /eudi/sessions with purpose: "mandate" and the draft's mandate_draft_digestOne mandate, made from that draft.
approvalPOST /executions/{id}/approval/step-upOne approval, by its approver (Approving with your wallet).
wallet_linkPOST /tenants/{id}/users/{subjectId}/wallet/sessionsLinking 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:

errorWhen
EUDI_SESSION_NOT_FOUNDNo such session in your tenant. Another tenant's session is answered the same way.
EUDI_SESSION_NOT_COMPLETEDThe wallet has not presented to it, or its presentation failed.
EUDI_SESSION_EXPIREDIts ten minutes have ended. Start a new session.
EUDI_SESSION_CONSUMEDIt was already used.
EUDI_SESSION_PURPOSEIt was started for another purpose. A session started before October 2026 is an identity session.
EUDI_SESSION_BINDINGIt 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 /mandates body without eudi_session_id. A different scope, delegate or constraint, or even a different principal placeholder, is refused with EUDI_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 with POST /eudi/sessions and {"purpose":"mandate","mandate_draft_digest":"sha-256:…"}. The SDK's mandateDraftDigest(draft) computes the same value, over the draft as JSON carries it: a member set to undefined is 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 identity session 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.

  1. POST /tenants/{id}/users/{subjectId}/wallet/sessions starts a wallet_link session for ten minutes. It asks for the PID's unique_id alone (mandaitor-pid-minimal).
  2. The approver presents their wallet to it.
  3. PUT /tenants/{id}/users/{subjectId}/wallet with { "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's amr says mfa; otherwise the answer is 403 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 answered 409 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 .../wallet is for the account itself or a tenant admin. It answers 404 WALLET_NOT_LINKED when no wallet is linked.
  • Removing the link. DELETE .../wallet is 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_LINKED and WALLET_UNLINKED with the wallet's digest, before they happen. If the record cannot be written, nothing changes, and the answer is 503 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:

  1. SD-JWT parsing — Decode the compact serialization and extract disclosures
  2. Disclosure hash verification — Verify each disclosure hash matches the _sd array
  3. Cryptographic signature — Verify the JWT signature against the issuer's JWKS
  4. Issuer trust — Check the issuer against the EU Trusted Lists (LOTL)
  5. Credential revocation — Check StatusList2021 / BitstringStatusListEntry status
  6. Nonce validation — Prevent replay attacks with session-bound nonces
  7. 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.