polaris-oid4vp
An OpenID4VP 1.0 verifier under the High Assurance Interoperability Profile. It checks a
presentation from a wallet that has never heard of Polaris: an SD-JWT VC signed with ES256, with
holder key binding, delivered over direct_post.jwt.
polaris-oid4vp 1.0.0rc7 is OpenID® Certified™ by Egor Khaklin to the OpenID4VP 1.0 + HAIP 1.0
Verifier profile: it passed all eleven modules of the Foundation's hosted HAIP verifier test plan
(sd_jwt_vc, direct_post.jwt; listing,
2026-09-24). It is a self-certification for that version in that role, not an endorsement or an
independent verification. OpenID® and OpenID® Certified™
are trademarks of the OpenID Foundation, used under its certification terms.
Status: This release, 1.3.0, builds on 1.0.0rc7, the certified version, with the fixes and additions made since.
It adds mdoc (ISO/IEC 18013-5) verification, experimental and off by default (--experimental --format mso_mdoc).
The newest release runs against the OpenID Foundation's conformance suite every week in CI. It is re-run weekly against the outside implementations in the table
below. One outside project, IDFoundry/OID4VCgo, runs it in its CI, daily and on each of its
releases, since 2026-10-11.
Details: the scoreboard.
Try it in ten minutes, without cloning anything: the stranger's path takes a clean machine with Docker, this package and an unmodified walt.id wallet to an accepted presentation. If it fails for you, please open an issue.
Tested against
Outside OpenID4VP implementations present to this verifier, each unmodified unless its row says
otherwise: configuration only (trust anchors, TLS roots). Every walk also sends controls that must be refused, because a
verifier that accepts everything prints the same success line; among them a wrong issuer key
under the same kid, the answered request again, a mismatched client_id, a key the wallet does
not hold and an untrusted CA. A weekly canary re-runs
the walks against the newest release on PyPI.
| Implementation | Maintained by | Language | Last walk |
|---|---|---|---|
| walt.id Wallet API v2 | walt.id | Kotlin | 1.1.1, against 1.0.0rc16 (2026-10-04) |
| Credo | OpenWallet Foundation | TypeScript | 0.7.2, against 1.0.0rc14 (2026-10-03) |
eudi-lib-jvm-openid4vp-kt, the EUDI Wallet's OpenID4VP library, under a short wallet built for the walk |
European Commission | Kotlin | 0.16.2, against 1.0.0rc16 (2026-10-04) |
vck (vck-openid-ktor), under a short wallet built for the walk; vck also issued the credential |
A-SIT Plus | Kotlin | 8.0.0, against 1.0.0rc16 (2026-10-04) |
eudi-lib-ios-openid4vp-swift, the EUDI Wallet's iOS OpenID4VP library, under a short wallet built for the walk |
European Commission | Swift | 0.43.2, against 1.0.0rc16 (2026-10-04) |
| irmago, the library under the Yivi wallet, under a short wallet built for the walk | Privacy by Design Foundation (Yivi) | Go | v1.4.0, against 1.0.0rc16 (2026-10-04) |
SpruceID openid4vp, its conformance adapter with the test issuer replaced |
SpruceID | Rust | e5f29b85, against 1.0.0rc16 (2026-10-04) |
Procivis One Core (core-server), which also issued the credential |
Procivis | Rust | v1.87.2, against 1.0.0rc16 (2026-10-04) |
| ProtocolSoup, its wallet harness (listed as certified) | ParleSec | Go | v4.0.0, against 1.0.0rc16 (2026-10-04) |
The EU reference PID issuer (eudi-srv-pid-issuer), issuing to a wallet built on the EU's libraries |
European Commission | Kotlin | v0.11.1, against 1.0.0rc16 (2026-10-04) |
Credo on a cheqd ledger, the issuer a did:cheqd with its status list on the ledger |
cheqd, OpenWallet Foundation | TypeScript, Go | cheqd-node 4.2.1 and Credo 0.7.2, against 1.0.0rc15 (2026-10-04) |
| Multipaz, under a short wallet built for the walk | OpenWallet Foundation | Kotlin | 0.101.0, against 1.0.0rc16 (2026-10-04) |
| ERICA, the German EUDI Wallet programme's verifier testing tool, with its negative modes | the German EUDI Wallet programme (opencode.de) | TypeScript | 2c27dc92, against the tree (2026-10-04) |
| eudi-dev, HAIP strict mode with its TLS check on | eudi-dev | Go | v2.5.1, against 1.0.0rc15 (2026-10-04) |
| OID4VCgo | IDFoundry | Go | 0.25.0, against 1.0.0rc14 (2026-10-03) |
| The OpenID Foundation's conformance suite | OpenID Foundation | Java | eleven of eleven HAIP verifier modules clean against 1.0.0rc15, both controls noticed (2026-10-04); 1.0.0rc7 certified (2026-09-24) |
The author drove every walk but one, which OID4VCgo's CI runs itself: interoperability with
those implementations, not use by their maintainers. Each walk is one script you can run against your own copy; to test your wallet,
point it at polaris-oid4vp serve as below. The "Last walk" column records the walks driven
by hand. The weekly canary last walked every implementation in the table, at pinned and latest
builds, against 1.0.0rc16 installed from PyPI on 2026-10-06, and every walk passed
(run 37460790872).
Install and run
pip install polaris-oid4vp
polaris-oid4vp keygen --out ./pki --host verifier.example
polaris-oid4vp serve --pki ./pki --port 9443 --issuer-jwks issuers.json
The same two commands run from a container: the image holds this package from PyPI, installed by hash.
keygenmakes a CA, a leaf it signs and a listener certificate, and prints theclient_idand the anchor a counterparty registers. The profile rejects a self-signed leaf and a trust anchor inside the chain;keygenavoids both. The CA and the leaf carry the key identifiers RFC 5280 asks for, which some wallets find a CA by. The listener certificate is marked for server authentication, which Apple's TLS policy requires even of a certificate a client trusts by name. Its keys are for testing.- A wallet that fetches the request object by POST and asks for it encrypted (its
wallet_metadatalistsECDH-ESinrequest_object_encryption_alg_values_supported, anencthis package produces, A128GCM or A256GCM, and a P-256 key injwks) gets the signed object encrypted to that key, as the EUDI iOS wallet kit requires. A wallet that asks for nothing, or for something this cannot produce, gets the signed object. - A
wallet_nonceposted with it comes back in the request object when it is 1 to 1024 printable ASCII characters (%x20-7E); any other gets 400 (Verifier.request_objectreturns None), and nothing is signed for it. --verifier-info FILEputs attestations about the verifier into the request object, such as the registration certificate a registrar issues: a JSON array as OpenID4VP 1.0 section 5.1 has it,[{"format": "registration_cert", "data": "<the base64url encoding of the serialized RP registration certificate>"}](ETSI TS 119 472-2 V1.3.1 RO-16's words), or one object, as the German EUDI Wallet guide and its testing tool read it. The German ecosystem requires one for a PID request. This package carries it as given, checking the shape section 5.1 asks for; a registration certificate labelled with its own media type is refused.--verifier-info-profile etsi-119472-2holds it to ETSI TS 119 472-2 (below).serve --issuer-trust-anchor ca.pemtrusts an issuer that signs with its certificate inx5c, as HAIP issuers do (repeatable; each file may hold several PEM certificates). The leaf must chain to an anchor, directly or through the CA certificates thex5csends after it (at most three, in order, each certifying the one before it; each a CA allowed to sign certificates, inside its validity period and its path length, with no critical extension this does not read, and none of them the anchor itself). The leaf must be inside its validity period, carry no critical extension beyond basic constraints, key usage, extended key usage and subjectAltName (RFC 5280 section 4.2), and, when it states a key usage, include digitalSignature; one that states extended key usages must name one an issuer may hold (ISO 18013-5's document signer, as EUDI issuers use; the EUDI PID Rulebook's document signer, 1.3.130.2.0.0.1.2, as the EU reference PID issuer uses; or client auth, code signing or email protection). A leaf that states no key usage is not restricted by one. The issuer is the leaf's subject under the anchor its chain ends at. A leaf that names an issuer must name the credential'siss: a URI subjectAltName exactly, or, for a leaf naming only DNS hosts, an https URL on one. A leaf with neither (the EU reference PID issuer's has no subjectAltName) leavesissunbound: the verdict reports it apart, not inclaims. Name constraints stated by the anchor or a CA in the chain (RFC 5280 section 4.2.1.10) are applied to the DNS and URI subjectAltNames of every certificate beneath them; a CA that constrains any other name form (directoryName, rfc822Name, iPAddress, otherName) is refused, since those are not applied. Under a constraint, a name whose host is not plain letters, digits and hyphens in dot-separated labels (a trailing dot, an empty label, a%escape) is refused, because another spelling of an excluded host would not match it as a string.--issuer-jwkstrusts every key it lists for everyiss, except one whoseuse,key_opsoralgsays it is not for ES256 signatures; list one issuer's keys per verifier.--bindis the address the listener binds: 127.0.0.1 by default, this machine only. A wallet on another device needs--bind 0.0.0.0(every interface), or a reverse proxy or tunnel on this machine (--public-base-url, below). An empty--bindis refused (exit 2). A call from this machine names 127.0.0.1, not localhost, which a client may try as ::1 first: under TLS,curl --resolve localhost:9443:127.0.0.1 https://localhost:9443/..., as keygen's certificate names localhost unless--hostnames another.--public-base-url https://verifier.examplesets the HTTPS origin a wallet reaches this verifier by when it runs behind a reverse proxy or a tunnel, where the public URL differs from the local--bind/--port. It is used for therequest_uriandresponse_uri; without it they arehttps://<--host>:<--port>.--no-local-tlsserves the local listener over plain HTTP, for when that proxy or tunnel terminates TLS and provides the public HTTPS. The listener still binds--bind(127.0.0.1, this machine only, by default); pair it with--public-base-url, which is then the HTTPSrequest_uria wallet uses. Point the proxy or tunnel athttp://127.0.0.1:PORT, not at localhost.- Browser wallets:
--cors-origin https://wallet.exampleanswers a wallet that runs in a browser page at that origin (repeatable;*alone answers every origin). Its requests to/request.jwt(GET, POST) and/response(POST) are answered withAccess-Control-Allow-OriginandVary: Origin, refusals included, and their preflightOPTIONSwith those methods andContent-Type, Acceptas the request headers allowed. Write the origin as the page's address shows it, scheme, host and any port, with no path. Without the option no answer carries a CORS header. --claimnames a claim to ask for (repeatable; without it,given_nameandfamily_name): a name, a dotted path of object keys, or a JSON array of keys, optionally=VALUE(JSON) for the value it must have. A path asks for one member of a nested claim and nothing around it:--claim age_equal_or_over.18=trueasks an EUDI PID whether its holder is 18 or over and nothing else, where--claim age_equal_or_overwould ask for every age statement it holds. A presentation that withholds a claim, or discloses it with another value or type (1is nottrue), is refused (claims). Array indices are not accepted: an undisclosed element is left out of the disclosed claims, so a position counted afterwards is not the one the issuer signed.--vct(repeatable) names the credential types to accept; without it,urn:eudi:pid:1.Verifier(claims=..., vct_values=...)takes the same, a claim as a name, a list of keys, or{"path": [...], "values": [...]}.serve --once --result FILEkeeps FILE a JSON object saying what became of the request--oncestarted, apart from the log on stdout.outcomeisnothing_receiveduntil a response arrives, then that response's:accepted(withclaims, the names),refused(withcheckandreason, the code and text its<-line prints) orwallet_error. Once the request closes, on its acceptance or at the end of its lifetime, the outcome stays: a later response is counted and changes nothing else.response.status_codeis the HTTP status the wallet was answered,request_objectcounts the fetchesservedandrefused, andresponsesthe responses received. The file is replaced whole at startup and before each answer goes out; without--once(or--control-token-file) it is refused (exit 2). With--rearmor--control-token-fileit describes the newest request and addsrequest, 1, 2, 3 and so on in start order (0 before the first);statestays the request's OAuth state value. With either, each line printed for an answer at the response URI, the<-line and thepolaris-oid4vp:line on stderr, ends with the request it was about,(request STATE), or(request not known).servewith neither--issuer-jwksnor--issuer-trust-anchorrefuses every presentation (issuer_key) and says so on stderr. An--issuer-jwksfile it cannot read, or none of whose keys can verify ES256 when no anchor is given, stopsservebefore it listens (exit 2).- The CLI is a test harness. A deployment embeds
Verifier(it needs your status policy; see Revocation).--rearmand--control-token-fileare for a harness that sends one answer per request: an answer from any holder of the request link ends the request.
Trust, in two steps. Start with pinned trust: --issuer-trust-anchor (trust_anchors= in
the API) holds the issuer CA certificates a relying party received directly, and --issuer-jwks
the issuer keys. That is what this package does today. The second step, reading issuers from a
trusted list, is not supported yet. The order follows the FY2025 Japan-EU educational-credential
interoperability demonstration, which pre-shared its root and intermediate certificates in the
first round and puts trusted lists in the scope of the second (Digital Agency,
scope definition document, 2026-09-18).
Anchor the issuer CA, never a broad root that also certifies other roles. A trust anchor
authorises any end-entity certificate beneath it whose key usage and extended key usage permit
signing to sign credentials this verifier accepts. Configure the CA that signs your issuers'
certificates, not a root that also certifies relying parties, TLS endpoints or other roles: their
certificates cannot be told from an issuer's by their contents (a relying party's and an issuer's
may both carry the extended key usage clientAuth), so the anchor is the only thing that separates
them. For example, Yivi publishes a self-signed Yivi Requestors Root CA with two CAs beneath it: the
Yivi Attestation Providers CA, which signs credential issuers, and the Yivi Relying Parties CA.
Anchor the Attestation Providers CA. Anchoring the root would accept a relying party's certificate
as an issuer whenever its usages permit signing, as clientAuth does (IssuerAnchorScopeTests in
test_sdjwt.py). Where one root certifies issuers and relying parties alike, with no narrower
issuer CA beneath it, anchoring cannot separate the roles, and this package cannot either: trust in
a credential that carries x5c comes from its anchor, and there is no setting that limits accepted
issuers to named iss values. An anchor that certifies several issuers accepts all of them: to
accept only some, check after an authentic verdict that iss_bound is True and claims["iss"]
is one you name, and never pin on unbound_iss or issuer_subject.
This is a separate package from polaris-verify because it listens on a socket and requires
cryptography; polaris-verify listens on nothing and takes cryptography only as an optional
backend.
A fresh request without a restart: --rearm
serve --once --rearm starts the next request, with the same claims, credential types,
transaction data and schemes, each time the current one ends, and prints its parameters and launch
links exactly as --once printed the first. A request ends when an answer at the response URI
about it arrives, whether accepted, refused or a wallet's error response (with neither --rearm
nor --control-token-file a refusal leaves the request open), and when its lifetime runs out. The lifetime is watched by a
timer, so an idle server starts and prints a new request each time one expires, with no wallet
asking. A closing answer and an expiry at the same moment start one successor.
With --result FILE, the file describes the current request: request is its number, state its
OAuth state value, and previous is the request that ended, whole (its request, state,
outcome and the rest), written in the same rename that writes the new request's pending form.
previous is absent for request 1. An answer or a fetch for a request that has ended is answered
as it is without --rearm (404, or the refusal) and does not touch the file.
--rearm needs --once and cannot be combined with --control-token-file.
A fresh request on demand: the control endpoint
serve --control-token-file FILE adds POST /control/request to the listener, in the same TLS
mode. FILE holds a bearer token of at least 32 printable ASCII characters, read at startup (it is
never taken from the command line, where ps and docker inspect would show it). On Linux and
macOS a FILE with any permission for others is refused (exit 2): mode 0600, or 0640 for its group.
A call with Authorization: Bearer TOKEN starts a request and is answered 201 with JSON:
{"request": 2, "state": "...", "request_uri": "https://verifier:9443/request.jwt?state=...",
"client_id": "x509_hash:...",
"launch": {"openid4vp": "openid4vp://?...", "haip-vp": "haip-vp://?...", "eu-eaap": "eu-eaap://?..."}}
launch holds the links --once prints, made by the same function. The body is optional: absent
or {} starts a request with the serve command's own specification, and claims (a list of
strings, each as --claim takes it) and vct (a list of credential types) replace them for that
request alone. A request with its own specification is judged by it for its whole life: its
request object, the claims a presentation must disclose, the credential type it must be and, when
--verifier-info-profile is set, the check against the registration certificate (a request that
asks for more than the certificate registers is 400, as at startup). Any other member, a claim
--claim would refuse, or a body over 8 KiB is 400 (413 for the size). A missing or wrong
token is 401 with no body. At most 64 requests are outstanding at once (the one --once starts
counts); the next is 429 until one is answered or expires. The path never carries CORS headers,
whatever --cors-origin says. Requests started here are independent, and each ends at an answer at the
response URI (accepted, refused or a wallet's error response, as under --rearm) or when its own
lifetime runs out, so a refusal frees its place among the 64, and a second presentation to an
answered request is refused as one to a request that has closed. The request --once starts beside
the endpoint keeps the plain rule: a refusal leaves it open. --result describes the newest request
started.
GET /control/request/N, with the same token, answers what became of request N, and for an accepted
SD-JWT VC presentation the claims it disclosed, returned in one read only, the first after the
acceptance, and not after the request lifetime from the answer:
{"request": 2, "state": "...", "outcome": "accepted", "response": {"status_code": 200},
"claims": ["cnf", "family_name", "given_name", "iat", "iss", "vct"],
"released": {"cnf": {"jwk": {"kty": "EC", "crv": "P-256", "x": "...", "y": "..."}},
"family_name": "...", "given_name": "...", "iat": 1763485200, "iss": "...", "vct": "..."}}
Until an answer arrives outcome is nothing_received; after it the document holds what --result
records for that answer. A later read of an accepted presentation has "released": null and
released_withheld, returned or expired; a refusal and a wallet's error response have no
released, nor does an mso_mdoc presentation. A number the endpoint did not start (the --once
request among them) is 404, as is one whose record is no longer kept: the newest 64 finished
requests are kept, the oldest dropped first, and an outstanding one always. The values reach no file
serve writes and no line it prints, and the answer carries Cache-Control: no-store. The read is
served on the same listener as the wallet's paths, so it is reachable wherever they are, and request
numbers are not secret: the token is the only gate. It is for a conformance harness on the operator's
own machine.
The shape a test harness uses, with the token in a mounted file. The image runs as uid 10001, and
reads the operator's file through the operator's group (group_add), which every docker compose
command in the shell then names:
(umask 027; python3 -c "import secrets; print(secrets.token_urlsafe(32))" > control-token)
chgrp "$(id -g)" control-token
export OPERATOR_GID=$(id -g)
docker compose run --rm verifier keygen --out /data/pki --host verifier --port 9443
docker compose up -d
services:
verifier:
image: polaris-oid4vp # built from packages/polaris-oid4vp/image
command: >
serve --pki /data/pki --host verifier --bind 0.0.0.0 --port 9443
--issuer-jwks /issuers.json --control-token-file /run/secrets/control-token
group_add:
- "${OPERATOR_GID:?the group of ./control-token}"
volumes:
- verifier-data:/data
- ./issuers.json:/issuers.json:ro
secrets:
- control-token
secrets:
control-token:
file: ./control-token # mode 0640, the operator's group
volumes:
verifier-data:
A file owned by uid 10001 with mode 0400 is the other way in. Run on this machine without the
image, the token is the operator's alone: (umask 077; python3 -c ... > control-token).
The call reads its header from a private file, so the token is on no command line:
(umask 077; printf 'Authorization: Bearer %s\n' "$(cat control-token)" > control-header)
curl --cacert pki/tls.pem -H @control-header \
-d '{"claims": ["age_equal_or_over.18=true"]}' https://verifier:9443/control/request
Verifying a presentation
from polaris_oid4vp.sdjwt import verify_presentation
verdict = verify_presentation(
presentation, # the ~-separated string the wallet sent
expected_nonce=request_nonce, # what YOUR request asked for
expected_audience=client_id,
trust_anchors=[anchor], # or issuer_jwks=[...]
expected_vct="urn:eudi:pid:1", # the credential type you asked for
)
verdict.authentic, verdict.code, verdict.reason, verdict.claims
expected_nonce and expected_audience are required: reading them from the presentation would
make every presentation replayable. sdjwt.py touches no socket and reads no configuration.
For an issuer that signs with its certificate in x5c, the verdict also says who signed:
issuer_subject is the leaf's subject and issuer_anchor the subject of the configured anchor
its chain ends at (RFC 4514 strings). iss_bound is True when the leaf gives the credential's
iss as one of its names, and None when there is no iss. It is False when the leaf gives
no name an iss could be, so nothing binds iss to the key: the iss is then left out of
claims, reported as unbound_iss, and not given to a status resolver. All four are None
for an issuer key configured with issuer_jwks, and for a refusal.
| Refusal code | Refuses |
|---|---|
issuer_signature |
an issuer signature that does not verify |
sd_hash |
a key-binding JWT not bound to this presentation |
kb_signature |
a key-binding signature that does not verify |
nonce, audience |
a key-binding JWT for another request or verifier |
kb_freshness |
a key-binding iat outside the window, or an exp or nbf it carries that has passed or not arrived |
claims |
(Verifier) a presentation that withholds a claim the request asked for, discloses it with a value the request does not accept, or discloses a selectively disclosable claim the request did not select (OpenID4VP 1.0 section 6.4) |
revoked |
(Verifier) a credential whose checked status value is not VALID (0) |
credential_validity |
a credential past its exp or before its nbf |
vct |
a credential of a type the query did not ask for |
issuer_typ |
an issuer JWT not typed dc+sd-jwt, a W3C VC Data Model vc+sd-jwt credential among them |
disclosure |
a disclosure that supplies a claim SD-JWT VC keeps out of disclosures (draft 19, section 2.2.2.3: iss, nbf, exp, cnf, vct, vct#integrity, aka_vcts, status) or anything inside one, judged by where it lands, so a disclosed sub or iat, or a private claim's status member, is accepted; a disclosure named _sd, _sd_alg or ...; a colliding claim, a digest the credential commits to twice, or nesting past the depth cap |
issuer_key |
an untrusted key; an x5c leaf, or a CA certificate it sends, outside its validity (the reason names the period); a leaf not marked for signing (the reason names the key usage, or an extended key usage for another purpose), self-signed or a CA, or one whose subjectAltName names an issuer other than the credential's iss |
crit |
an issuer JWT, key-binding JWT or status list token whose crit names an extension; none is implemented |
transaction_data_missing, transaction_data_extra, transaction_data_mismatch |
(transaction data) transaction_data_hashes that lack, add to or differ from the hashes of the entries the key-binding JWT must bind, in the request's order |
transaction_data_alg |
(transaction data) a transaction_data_hashes_alg that is not a string, not allowed by every entry it binds, absent when an entry names algorithms, or not computable here |
ts12_jti, ts12_response_mode, ts12_amr |
(a TS12 entry naming the credential) no jti or one used before; a response_mode other than the request's; amr that is not single-member objects naming at least two TS12 categories |
malformed |
over 256 KiB, JSON over 64 KiB or 64 levels, or non-finite numbers |
Recursive disclosures (SD-JWT 4.2.4.1) are supported.
Refusal codes are for the operator and never go on the wire. Every refused presentation gets one constant body, which names no check:
{"error": "invalid_request", "error_description": "the presentation was not accepted"}
The response JWE (jwe.py) accepts only ECDH-ES over P-256 with A128GCM or A256GCM, with a
fresh encryption key per request. The listener (verifier.py, serve.py) is standard library
only. A request closes only on a presentation it accepts; a response it refuses, for any reason,
leaves the request open until it expires. A second presentation for an answered request is refused
as a replay.
Who sees the result
An accepted presentation is answered with only a redirect_uri, and it carries a fresh 128-bit
response_code (OpenID4VP 1.0 section 8.2), so that only the device the wallet sends there can
fetch the result. verifier.redeem(response_code, state=session.state) returns the verdict once,
for that request only; a wrong, reused or expired code, or one issued to another request, gets
None. An integrator that holds a session for the request passes that session's state, so a
code issued to another request is refused; serve keeps no session, so it redeems by the code
alone, which is 128 bits and good once. The verdict carries the code as verdict.response_code,
and as_dict() leaves it out.
- Same-device flow: show a result only to the browser that presents the redirect's code.
Without that, a request relayed to another person's wallet completes the relayer's session
(section 14.2).
serve's/donepage answers only a code it has not redeemed yet. - Cross-device flow: the wallet's redirect lands on the phone, not on the screen that showed
the request, so there is nothing to redeem there. Build the verifier with
redirect=False; an accepted response is then answered{}, as section 8.2 allows, and the screen learns the result from the returned verdict. Section 14.2 calls this flow susceptible to a relayed request, and nothing on the verifier's side can tell. - A vp_token sent as a JSON string: section 8.3's examples carry
vp_tokenin adirect_post.jwtpayload as a JSON object, and the verifier reads it so by default. Build it withaccept_vp_token_as_json_string=Trueto also read a string holding that object (the swiyu Sandbox Wallet 1.19.0 for iOS sends one): once, under the payload's depth and size bounds, held to every rule the object is. A verdict reached after that read, accepted or refused, carriesvp_token_from_string.
Transaction data
A request may carry OpenID4VP 1.0 transaction_data (section 8.4), opt-in per request:
Verifier.new_request(transaction_data=[...]), or serve --transaction-data FILE --once. An entry
is a base64url string, sent exactly as given, or a JSON object, encoded once. It must name the
request's credential query (--credential-query-id, default pid), and a TS12 payment
(urn:eudi:sca:payment:1) must satisfy TS12's own JSON Schema for it, or the request is refused
before it is sent. A request without transaction_data is unchanged.
A request may also ask for its own claims and credential types in place of the verifier's,
Verifier.new_request(claims=[...], vct_values=[...]), each as the constructor takes them, and its
answer is judged by them; a bare string or an empty list raises ValueError and no request is made.
The presentation's key-binding JWT must then carry:
transaction_data_hashes: base64url(HASH(the ASCII bytes of each string as sent)), never of the decoded JSON (Appendix B.3.3.1), for exactly the entries it binds, in the request's order;transaction_data_hashes_alg: a string naming an algorithm every entry it binds allows (sha-256 by default; sha-384 and sha-512 when an entry lists them), required when one lists any;- for a TS12 entry (
urn:eudi:sca:...) naming its credential (TS12 section 3.6): ajtinot seen before, the request'sresponse_mode, andamrnaming at least two TS12 categories.
verdict.transaction_data says what the JWT was held to: the entries, the reading, the algorithm
and the jti.
Which entries each key-binding JWT binds, when a response presents several credentials, is not
settled by OpenID4VP 1.0 (SIROS's question B8). Both readings are implemented and one is named:
per_credential, the entries whose credential_ids name that credential (SIROS, multipaz), or
all_entries, every entry (SUNET/vc). Under per_credential an entry naming two presented
credentials is bound by exactly one of them, as section 5.1 has the wallet "use only one of the
referenced Credentials"; twice or not at all is refused.
polaris-oid4vp verdict --request R --vp-token T judges a captured response under both, and with
two readings that differ decides only under --transaction-data-scope. Otherwise it accepts
nothing: accepted is null and the command exits 2. An undecided reading is not an acceptance. With
one credential query, as serve asks, both expect every entry.
lab/interop/transaction-data
holds this to SIROS's published vectors and to a two-credential vector.
A Verifier remembers a jti for one day.
verifier_info under ETSI TS 119 472-2
ETSI TS 119 472-2 V1.2.1 makes verifier_info mandatory in its HAIP-common request object
(OIDFVP-HAIP-COMMON-REQ-RO-01 to -16), and the German EUDI Wallet (its core library 0.30, in iOS
0.3.9 and Android 0.61.3) refuses every request from an x509_hash verifier, as this one is, that
carries no registration certificate. Verifier(..., verifier_info_profile="etsi-119472-2"), or
serve --verifier-info-profile etsi-119472-2, refuses to start a request whose verifier_info
does not meet those requirements: a ValueError names the requirement's ID, and serve exits 2
before it listens. Under the profile:
verifier_infois an array of objects with oneregistrar_datasetelement (one, not two, is this package's reading: the requirements state no count), whosedataholdsidentifier,srvDescription,registryURI,intendedUseIdentifier,purposeandpolicyURI, each non-empty and the two URIs absolute, and optionallycredential;- it carries at most one
registration_certelement, itsdataa non-empty string; neither element carriescredential_ids, and a format naming a registration certificate otherwise (WRPRC,registration_certificate) is refused; - with a registration certificate, the request may ask for nothing the certificate does not
register: the DCQL query's format and
meta, and each claim path. The certificate'scredentialsare read as ETSI TS 119 475 writes them, withclaim(a certificate sayingclaimsis refused as not ETSI's key, never read as registering nothing; one withoutclaimholds the format andmetaonly). Claim paths compare exactly, the way the Android wallet compares them: a registered["age_equal_or_over"]does not cover["age_equal_or_over", "18"], nor["nationalities", null]cover["nationalities", 0].valuesare not compared.servesays at startup whether this check ran.
Shape and labels only. The profile does not validate the registration certificate's
signature or chain, the registrar's data against its registry, or the access certificate that
signs the request; it reads the certificate's payload, unverified, only to check this verifier's
own request against it, and judges no wallet's behaviour. RO-16 has the certificate's data be
"the base64url encoding of the serialized RP registration certificate", which leaves open whether
a JWT goes as its compact serialization or encoded once more; both forms are read.
In every mode, profile or none, a registration certificate labelled with its own media type
(rc-wrp+jwt or rc-wrp+cwt as its format, or a JWS typed rc-wrp+jwt under another format) is
refused, because its format is registration_cert. Otherwise a request without the profile is
unchanged, byte for byte. The cases, as JSON another verifier can read, are in
testdata/verifier-info.
The approach follows EUDIPLO's registration_cert configuration and ERICA's request checks.
Revocation
verdict.revocation is one of seven states:
| State | Meaning |
|---|---|
no_status_claim |
the credential names no status list |
not_evaluated |
it names one and no resolver was supplied |
unsupported_status |
its status claim is in a form this verifier cannot read |
checked |
a resolver answered; status carries the issuer's value |
unreachable |
a resolver was asked and got no answer |
no_authority |
no key is stated as entitled to publish this issuer's status at that URI, so no list can count as evidence |
list_refused |
the status reference, the list or its signature failed a check, so nothing is usable as evidence; code says which |
- A checked status that is not VALID is refused: with a resolver,
Verifieranswers a credential whose status list value is not 0 with the same 400 as any refusal (revoked). The other states are not facts about the credential and stay in the verdict for your policy. - Opt-in: pass
status_resolver=toVerifier(...)orverify_presentation. Without one nothing is fetched and the state isnot_evaluated. status.pydecides a Token Status List (draft-ietf-oauth-status-list) without opening a socket;decide_by_fetchingtakes yourfetchcallable.- Your
fetchdecides where a request may go. When the list is to be signed by the credential's own key, the URI is the one the issuer wrote into the credential, so a coerced or compromised issuer chooses where your server sends a GET. The callable MUST accepthttpsonly; refuse loopback, private, link-local (169.254.0.0/16,fe80::/10), unique-local and unspecified addresses, judged on the address it connects to rather than on a name resolved earlier; follow no redirect; stop reading paststatus.MAX_TOKEN_BYTES(2 MiB, the sizedeciderefuses above); and set connect and read timeouts. Whatever it raises becomesunreachable. - Who may publish status for whom is stated, not inferred:
StatedAuthorityrecords that a named key may publish for a named issuer at a named URI. Anything else isno_authority, and no request is sent to a URI an unvetted credential names. - Unbound iss: delegated status lists are not consulted; status is established only by a
list signed with the credential's own key. The resolver is given
issuer=Nonefor such a credential, so aStatedAuthorityentry for the name in itsissis never found.
Experimental: mdoc (ISO/IEC 18013-5)
Off by default. With --experimental, serve --format mso_mdoc asks for an mdoc and judges the
DeviceResponse a wallet returns over direct_post.jwt:
polaris-oid4vp serve --pki ./pki --port 9443 --experimental --format mso_mdoc \
--doctype org.iso.18013.5.1.mDL --iaca-root iaca.pem \
--claim '["org.iso.18013.5.1","age_over_21"]=true'
--doctypenames the docType to ask for.--iaca-root(repeatable) is a PEM file of the IACA root certificates a document's signer must chain to, each trusted for that docType. Trust comes from these files only: a certificate the response carries is never a root.--claimis a JSON array of a namespace and an element, optionally=VALUE(JSON) for the value it must have.--once --result FILEnames each accepted element the same way,["org.iso.18013.5.1", "age_over_21"].- A response is authentic when a document signer certificate that chains to a configured root signed the Mobile Security Object, every disclosed element matches the digest that object signs for it, the object is inside its validity window, and the key it names signed this session's transcript, which the verifier builds from its own request (OpenID4VP 1.0, B.2.6.1).
- A refusal names the one check that made it:
malformed,doctype,issuer_signature,issuer_key,mso,credential_validity,digest,device_auth,device_key,device_namespacesordevice_signature. verdict --experimental --iaca-root iaca.pemjudges a captured response to a request that asked formso_mdoc;--now SECONDSjudges it as of that time.- In the API:
Verifier(credential_format="mso_mdoc", doctype_value="org.iso.18013.5.1.mDL", iaca_roots=[mdoc.IacaRoot(pem, ["org.iso.18013.5.1.mDL"])], claims=[["org.iso.18013.5.1", "age_over_21"]]), withmdocimported frompolaris_oid4vp.
Conformance run
git clone --depth 1 https://gitlab.com/openid/conformance-suite.git
cd conformance-suite && docker compose -f docker-compose-prebuilt.yml up -d
python3 scripts/polaris-oid4vp-conformance-drill.py
Seven negative modules PASS; four positive modules end in REVIEW (the suite wants a screenshot of a displayed result). The drill carries two negative controls: a verifier that refuses everything must fail the positive modules, and one that accepts everything must fail all seven negative ones.
The wallet canary runs the drill weekly against the newest release on PyPI, with the suite's
prebuilt images at their newest (POLARIS_OID4VP_INSTALLED=1 makes it import the installed
package instead of the tree). A run is not a certification.
Tests
cd packages/polaris-oid4vp && python3 -m unittest test_sdjwt test_jwe test_verifier \
test_serve test_cli test_conformance_capture test_status test_mdoc
- 1069 tests in eight files.
test_conformance_capturereplays a realdirect_post.jwtresponse built by the OpenID Foundation suite's wallet (Nimbus JOSE), so this package's ECDH-ES, KDF, AAD binding and digests are checked against an independent implementation. scripts/polaris-oid4vp-mutation-drill.pymakes each of the 333 refusals accept and requires a test to fail: 329 are caught, and the 4 survivors are declared with their reasons. It also makes 72 named changes (the redirect'sresponse_codeand its redemption, the postedwallet_nonce, the x5c leaf and name constraints, the JWE bounds, when a request closes, which origin, path and cache key a CORS answer names, the control endpoint waiting on a body it will not read, and the control read: its token, its cache header, its log line, the claims returned once, under its lock and not after their lifetime, the records it keeps and the answer each keeps, the values kept out of the result file and the printed lines, and the values of an experimentalmso_mdocpresentation never held; the TLS handshake in each connection's own thread and within its timeout, the token file's mode judged on the file read, and each filekeygenwrites created with its mode, never through a link at its path; and, without--experimental, an mdoc kept from the mdoc and CBOR code, at the flag and at the format the verifier was built with; and whatserveandverdictwrite from what a sender sent bounded where it is written: each reason, each line on stderr, the<-line and a logged exception; a malformed disclosure named by its kind; and the CBOR decoder's item count kept for the whole decode and over each key and value, each of its two limits at its number, and, under--experimental, an accepted mdoc's line naming what was checked), each of which a test must catch (all 72 are; measured 2026-11-19; CI runs it on every push).- Held-out boundary mutations (off-by-one windows, header binding, listener routing) each have a dedicated test class.
Metadata
Release files for polaris-oid4vp 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| polaris_oid4vp-1.3.0.tar.gz | 192.1 kB | With provenance | Details for polaris_oid4vp-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polaris_oid4vp-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for polaris_oid4vp-1.3.0-py3-none-any.whl |
Total release size: 359.0 kB
Release files / polaris_oid4vp-1.3.0.tar.gz
| Download URL | polaris_oid4vp-1.3.0.tar.gz |
|---|---|
| Size | 192.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a923f67e568cf4fead4678de70a73d2ac4d6b404b224421dfbba6deee3bb3db
|
|
BLAKE2b-256 checksum How to use checksums |
30f6b6c80389c9e46f85feba917d83ac224f2988e39d08b8e64d0cd6ed5ef644
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / polaris_oid4vp-1.3.0-py3-none-any.whl
| Download URL | polaris_oid4vp-1.3.0-py3-none-any.whl |
|---|---|
| Size | 166.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9084517c7a8d85b8e881daafa7a0afc6932c49229d17d4251aea77cca134457f
|
|
BLAKE2b-256 checksum How to use checksums |
71829db51e6a5810b732ffd728ff494e257192ef7ebadd590b5fac7b942d263a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for polaris-oid4vp 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for polaris_oid4vp-1.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.