4.1.1. Features and limitations#
This chapter says what KyCH does, with which programs, and where it stops. Everything here was built and tested on the branch that introduced the EU wallets, the German eID and eIDAS (November 2026); the test results quoted are those recorded in the source tree, mostly on simulated trust infrastructure (Where the test results are).
4.1.1.1. Sources of identity: vocabularies#
KyCH calls each source of identity a vocabulary. A vocabulary fixes the
kind of interaction, the credential format and the names of the claims,
which KyCH passes on unchanged (“native” names); /info says which
vocabulary a result came from.
Vocabulary |
What the person uses |
Kind |
Format, credential type |
Helpers (interchangeable) |
|---|---|---|---|---|
|
the Swiss e-ID (Beta ID) in the swiyu wallet |
|
SD-JWT VC, |
swiyu-verifier |
|
the EU person identification data (PID) in an EU Digital Identity Wallet |
|
SD-JWT VC, |
eudi-verifier, waltid-verifier, kych-oid4vp |
|
the same PID as an ISO/IEC 18013-5 mdoc |
|
mdoc, doctype |
the same three |
|
the online function of the German identity card, the eID card for EU citizens or the electronic residence permit, with AusweisApp |
|
the attributes of the eID server interface (BSI TR-03130) |
governikus-eumw with kych-eumw-bridge, or kych-eid |
|
another member state’s notified eID, through the eIDAS network |
|
the eIDAS SAML attribute profile (natural person) |
eidas-node-connector with kych-eumw-bridge |
The PID is defined by CIR (EU) 2024/2977 [CIR2024-2977] and the PID Rulebook [PIDRB] of the Architecture and Reference Framework [ARF]; KyCH asks for it over OpenID for Verifiable Presentations 1.0 [OID4VP] in the High Assurance Interoperability Profile [HAIP], as an SD-JWT VC [SD-JWT-VC] (built on SD-JWT, [RFC9901]) or an ISO/IEC 18013-5 mdoc [ISO18013-5]. The two PID encodings are separate vocabularies, because their claim names and value shapes differ (nested objects in the SD-JWT VC, flat data elements in the mdoc), but they are offered to the person as one choice: one request offers the wallet both, and the wallet presents whichever it holds.
The Swiss e-ID is not an eIDAS means of identification, so a deployment
under German anti-money-laundering law leaves swiyu switched off. The
package’s defaults, for compatibility with earlier versions, enable
swiyu and nothing else; an operator names the vocabularies to offer
(Configuration).
4.1.1.1.1. What each source can deliver#
The data a German financial institution has to record for a natural person (BaFin’s application form O.1; § 8 (2) GwG [GWG], as BaFin interprets it [BAFIN-AUA]) against what the sources carry, by their native names:
Datum |
|
|
|
|
|
|---|---|---|---|---|---|
family name |
|
|
|
|
|
given names |
|
|
|
|
|
date of birth |
|
|
|
|
|
place of birth |
|
|
|
|
|
nationalities |
|
|
|
|
|
address |
none |
|
|
|
|
document data |
number, issuer, country, expiry |
issuer and country; number optional |
issuer and country; number optional |
none: |
|
The sources of these names are the PID Rulebook [PIDRB], the eID server interface of BSI TR-03130 [TR03130] and the eIDAS SAML Attribute Profile [EIDAS-ATTR].
4.1.1.2. Helpers#
A helper does the protocol and cryptographic work for a vocabulary. Each is a separate program, in a Debian package of its own, listening on its own Unix domain socket; a vocabulary names its helper in the configuration, and the operator can switch between interchangeable helpers at any time – a session finishes on the helper it started with, new sessions go to the new one.
Package |
Upstream, version |
Role and notable properties |
|---|---|---|
|
this source tree (Rust) |
The gateway: OAuth 2.0, the picker page, sessions, evidence, purge;
|
|
this source tree (Rust) |
Fetches the signed lists of trusted entities (ETSI TS 119 602 [ETSI-119602]), verifies them, keeps versioned snapshots with rollback protection in its own database, and answers the trust questions of the three EU PID helpers, so that they agree by construction. |
|
SWIYU Generic Verifier 5.0.1 (Swiss Confederation, Java) |
|
|
eudi-srv-verifier-endpoint 0.12.0 (European Commission, Kotlin) |
|
|
waltid-identity 1.3.0, verifier-api2 (walt.id, Kotlin) |
|
|
this source tree (Rust) |
|
|
Governikus eIDAS Middleware 4.1.0 (EUPL-1.2, Java) |
|
|
this source tree (Java, against the middleware’s |
The KyCH-native helper in front of the middleware ( |
|
this source tree (Rust) |
|
|
EU eIDAS-Node 3.1.0, Connector (European Commission, EUPL-1.2) |
|
The three EU PID helpers were shown to give the same results on one scenario corpus (Where the test results are); so were the two eID servers. Which to choose is an operator’s judgement: the upstream verifiers are reference implementations with large communities but no authentication and no persistence; KyCH’s own helpers authenticate their caller, keep their state in PostgreSQL and were written for this purpose, but have had no external review yet (Threat model and security analysis).
4.1.1.3. The OAuth 2.0 front#
The authorization code flow of RFC 6749 [RFC6749], with the Taler convention of a
POST /setup/CLIENT_IDbefore/authorize: the client authenticates with its secret and may fix the vocabulary or the profile in the body, which may be deflate-compressed as the exchange sends it.The picker. When nothing fixes the vocabulary, KyCH asks the person on its own page (English, German or French by the browser’s preference) among the vocabularies the client may use and the profile covers. A client allowed only one vocabulary, or a
/setuppreselection, skips it.Profiles. The client asks for a purpose,
scope=kyc, and KyCH asks each source for that purpose’s claims under their native names. Each claim is required or optional;/infolists the optional claims the credential lacked inmissing, and the client completes them by other means. Clients may still name native claims directly when the session’s vocabulary is fixed (the behaviour of KyCH before vocabularies).Only what was asked.
/infoholds exactly the requested claims, even when a wallet or an issuer reveals more.Evidence.
/infocarries anevidenceobject: which helper checked what, against which trust anchor and list snapshot, the revocation and holder-binding checks, the level of assurance where the trust configuration establishes one, the request sent, and the raw presentation (What the evidence proves).Failure is reported. A failed or expired identification sends the browser back to the client with
error=access_denied(RFC 6749, 4.1.2.1), so that the client can offer another way.Purge. Claims and evidence are deleted a grace period (
PURGE_GRACE, one hour) after the client first fetched them, and everything else when it expires (Data retention and purge).Clients. A GNU Taler exchange directly (
LOGIC = oauth2with the converter shipped in thekychpackage), and Beekeeper through its lookup helperbeekeeper-kychfor persons in KYB cases and for “eID first” with a documents fallback (The exchange and Beekeeper).
4.1.1.3.1. The shipped profile kyc#
/usr/share/kych/config.d/00-kych-defaults.conf defines one profile,
kyc, with the data of BaFin’s O.1 per vocabulary; a ? marks an
optional claim.
[profile-kyc]
RETAIN = YES
SWIYU = {family_name, given_name, birth_date, birth_place, nationality,
document_number, issuing_authority, issuing_country}
EUPID = {family_name, given_name, birthdate, place_of_birth,
place_of_birth.locality?, nationalities[], address.street_address?,
address.postal_code?, address.locality?, address.country?,
issuing_authority, issuing_country, address.house_number?,
place_of_birth.country?, document_number?}
EUPID-MDOC = {family_name, given_name, birth_date, place_of_birth, nationality,
resident_street?, resident_postal_code?, resident_city?,
resident_country?, resident_address?, issuing_authority,
issuing_country, document_number?}
NPA = {FamilyNames, GivenNames, DateOfBirth, PlaceOfBirth, Nationality,
RestrictedID, PlaceOfResidence?}
EIDAS = {.../CurrentFamilyName, .../CurrentGivenName, .../DateOfBirth,
.../PersonIdentifier, .../PlaceOfBirth?, .../Nationality?,
.../CurrentAddress?, .../TownOfBirth?, .../CountryOfBirth?}
(The file has each list on one line, and the eIDAS names in full,
http://eidas.europa.eu/attributes/naturalperson/....) Portraits and
other data the law does not ask for are not requested. Every swiyu
claim is required, because swiyu-verifier cannot be asked for optional
ones.
4.1.1.4. What the evidence proves#
How much a result can be checked again later, by someone who does not trust the operator’s servers, depends on the source:
eupid(SD-JWT VC)The issuer’s signature over the disclosed claims can be checked offline against the certificate chain in the evidence, and that chain against the list of PID providers; the key-binding JWT shows that the holder’s device took part, bound to the
nonceand the audience the evidence records.eupid-mdocThe issuer’s
issuerAuthcan be checked offline; the device’s signature can be checked against the SessionTranscript, which the evidence records for that purpose.npaNothing the card produces can be checked outside the session. The card authenticates itself to the eID server alone, inside a channel that ends with the session. The evidence holds the eID server’s own signed statement: the middleware’s SAML assertion, or kych-eid’s signed result. That is the signature of a server the operator runs itself. It records what the GwG requires (the means of identification and the
RestrictedID), but it is not a third party’s proof, and AML officers should not treat it as one.eidasThe foreign proxy service signs its SAML response, and the evidence holds it with the decrypted assertion and the certificate it was checked against. The response’s signature covers the assertion encrypted to the operator’s Connector: showing its content to an auditor later needs the Connector’s decryption key, unless the sending state also signs the assertion itself (the eIDAS-Node software does so only when configured).
swiyuThe raw presentation and the issuer only when the verifier’s audit options are switched on, which the package leaves off for data minimisation.
The level of assurance in the evidence is never assumed from the
vocabulary. For the EU PID it is the one the operator states for the list of
PID providers (LEVEL_OF_ASSURANCE of the trust section), given only
when the issuer is on that list and the holder binding was verified –
and never for a simulated list. For npa it is high; for eidas it
is the one the proxy service asserts, and the bridge refuses anything below
high by default, since § 12 (1) sentence 1 no. 4 GwG accepts only eID
schemes notified under Art. 8 (2) (c) eIDAS [EIDAS], the level high.
4.1.1.5. Limitations#
4.1.1.5.1. Facts about the sources#
These are properties of the means of identification, not of KyCH, and no configuration changes them:
The Swiss e-ID has no address. An identification by
swiyualways needs a separate address check.The EU PID’s address is optional, and so are its document number and some members of the place of birth:
missingnames what a PID lacked.The eIDAS network guarantees only the minimum data set: family name, given names, date of birth and a persistent identifier. Nationality, address and place of birth are optional, sent by few member states, often only with the person’s consent per attribute; the nationality has at most one value. In the Commission’s 2024 overview only Estonia, Portugal and (announced) Slovakia sent the nationality at all, besides Germany’s own middleware. BaFin’s “Staatsangehörigkeit(en) – sämtliche” can practically never be had this way: nearly every
eidasidentification needs the nationality, and often the address, from elsewhere.The German eID yields no evidence that can be checked outside the session (What the evidence proves), and it never transmits a document number;
RestrictedIDis recorded instead, as the GwG allows.The card holds one nationality, the one of the card.
4.1.1.5.2. Known limitations per helper#
Each EU PID helper has a file of known limitations, which the differential
test suite reads: a difference from the reference result that is not
listed there fails the suite (testing/e2e/known-limitations/). In short:
EUDI verifier. A response too large for the reverse proxy (refused with 413 before the verifier sees it) leaves the session open until it expires; a restart loses every transaction in flight; an mdoc whose revocation information is an ISO 18013-5 identifier list is accepted as if it had none, so a revoked mdoc of that kind passes (reported to the Commission’s vulnerability address as a draft; open).
walt.id verifier, trust from kych-trust. The oversized response and the restart as above; a late answer is reported as an unknown transaction rather than as expired. Its four patched defects stay listed so that dropping a patch shows.
walt.id verifier, trust from the list itself (
TRUST = self): besides the above, the evidence lacks the trust anchor and the list snapshot; a bad list leaves no last good list, so every session fails until the list is good again; and a superseded but validly signed list is accepted, since walt.id keeps no state between sessions (no rollback protection).kych-oid4vp. None in the corpus.
For npa (testing/npa/known-limitations/):
Governikus middleware. The SAML route carries no document type, issuing state or expiry date (a session requiring one is refused); a structured place of birth arrives as its city; a “no place” or free-text residence is dropped and reported as missing; the nationality arrives as ISO 3166-1 alpha-2; the middleware decides itself which attributes are required (the nationality and the address are always optional to the person, whatever the request says), so a person may deselect a required nationality and the session fails only after the card was read; expired and revoked cards are not told apart; the bridge keeps sessions in memory.
kych-eid. No age or place verification; no Smart-eID (card only);
kych-eid-bercalacks delta block lists, the automatic renewal of the TLS certificate’s “entanglement” and request signer certificates; defect list entries are not told apart (fails closed); the data-group hashes ofEF.CardSecurityare not compared (integrity rests on Chip Authentication); compressed residence-permit texts are not read; the block-list check without the Restricted Identification right is untried with a real card; no TR-03130 eID-Interface, so the BSI’s conformance testbed cannot be run against it; PAOS dialogues are held in memory only.
For eidas: an error the eIDAS nodes find themselves – untrusted or
expired metadata, a failing signature, a replayed response – ends on the
Connector’s own error page, and KyCH’s session stays open until it expires;
only what the proxy service answers in a SAML response (cancellation,
refused consent, a level too low) comes back. There is no interoperability
test with a real member state’s node yet: the local test network runs the
reference implementation only, and no public EU test service for private
relying parties exists.
For swiyu: swiyu-verifier rejects DCQL claim_sets and
credential_sets, so no optional claims (a Swiss e-ID lacking a requested
claim fails instead of reporting it missing) and no grouped choice.
4.1.1.5.3. Conformance and interoperability#
OpenID Foundation conformance suite [OIDF-CONF] (release 5.3.5, the HAIP and the OpenID4VP 1.0 Final verifier plans, SD-JWT VC and mdoc, 42 modules per helper,
testing/conformance/RESULTS.md): every negative module was refused by every helper. Not as the suite expects: the request object fetched a second time (the EUDI verifier and kych-oid4vp hand it out once, by design: 4 modules each); an mdoc revoked through an identifier list (no helper fetches such lists – walt.id and kych-oid4vp refuse the credential, the EUDI verifier accepted it: 2 modules each). Four modules were skipped for the EUDI verifier because KyCH configures it to fetch request objects byGET. Totals as expected: EUDI verifier 32 of 42, walt.id 40, kych-oid4vp 36.Real wallets (
testing/interop/RESULTS.md): the EU reference wallet for Android, with PIDs from the Commission’s test issuer, was verified by the EUDI verifier and kych-oid4vp in both encodings, and by walt.id as SD-JWT VC only – walt.id refuses the Commission’s development mdoc signer, whose certificate does not meet the mDL document-signer profile walt.id applies to every mdoc, rather than the PID providers’ profile of ETSI TS 119 412-6 [ETSI-119412-6]. walt.id’s own wallet and test issuer served for SD-JWT VC with two helpers (the other two rightly refused anissthe signing certificate does not name). Yivi accepted every helper’s request but could not obtain a PID to present: the Commission’s test issuer asks for a key attestation in its OpenID4VCI [OID4VCI] flow, which only the reference wallet supplies. The German national EUDI wallet has not been tested: its sandbox admits relying parties only after onboarding (Authorisations, certificates and whom to ask). The iOS reference wallet has not been tested either.The German eID was tested with AusweisApp 2.3.1’s simulator card on an in-house test PKI and a mock authorisation CA, never with a real test card or the BSI test PKI.
4.1.1.5.4. Other open points#
The W3C Digital Credentials API [W3C-DC] (a browser handing the request to a wallet on the same device, by OpenID4VP or by Annex C of ISO/IEC TS 18013-7 [ISO18013-7]) is not supported; wallets get a QR code and a deep link.
No PKCE.
/returnand/finalizeare bound to the session by the verification id andstateonly (the code is useless without the client secret).Up to 64 combinations of optional claims are sent to a wallet; keep optional claims to a handful per profile line.
The registration certificate’s format follows the one example the EUDI stack ships; how the wallets validate it is unknown (their check is off by default), and the real certificate comes with the registration.
kych-trust does not check the revocation of the providers’ certificates (it relies on delisting), does not follow pointers to other lists, and takes every decision at “now”, not at the presentation’s time.
Status lists (the Token Status List [TSL]) are fetched for every presentation, uncached: a PID provider that is down fails every presentation that names it.
No external security review of kych-eid, kych-oid4vp or the bridge has taken place yet (Threat model and security analysis).
4.1.1.6. Where the test results are#
All runs except the unit and integration tests took place on a Debian 13 test host from Debian packages built from the release tarball. The results files are in the source tree:
File |
What was run |
|---|---|
|
One corpus of 69-71 cases (correct presentations in both encodings, credential, disclosure, holder-binding, mdoc, transport and timing faults, bad trust lists, switching helpers) through KyCH against all five EU PID helper configurations: no difference that is not a listed known limitation; kych-oid4vp 71 of 71. |
|
The OpenID Foundation suite, as above. |
|
Real wallets, as above. |
|
The |
|
A local eIDAS network: 16 of 16 cases (including tampering, replays, untrusted and expired metadata), through the exchange 23 of 23 and through Beekeeper 17 of 17. |
|
The whole system: exchange, bank, wallet, KyCH, the helpers and Beekeeper, 174 of 174 checks, and 43 of 43 reachability checks of the reverse proxy’s public/private split from outside. |
The trust infrastructure in these runs is simulated: test lists of trusted
entities, a test PID provider, a test access certificate, a test PKI for the
eID card and test metadata signers. None of it is trusted by anything but the
tests (testing/trust/README).