reallyme_openid4vp_dcql/lib.rs
1// SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2//
3// SPDX-License-Identifier: MIT OR Apache-2.0
4
5//! DCQL query model, validation, and wallet-side evaluation.
6//!
7//! The crate intentionally has no OpenID4VP transport dependencies. It models
8//! the OpenID4VP 1.0 final DCQL structures and evaluates them against an
9//! injected inventory of wallet credentials.
10//!
11//! Serde implementations in this crate exist only for bounded internal
12//! protocol parsing. They are not stable SDK DTO contracts. Cross-language and
13//! SDK boundaries must carry DCQL as validated canonical JSON bytes inside the
14//! generated OpenID4VP protobuf contract.
15
16mod error;
17mod evaluate;
18mod model;
19mod model_debug;
20mod path;
21mod validate;
22mod zeroize_json;
23
24pub use error::{DcqlError, DcqlErrorReason};
25pub use evaluate::{
26 credential_satisfies_query, evaluate_query, validate_query_selection, CredentialCandidate,
27 CredentialMatch, CredentialSelection, Evaluation, EvaluationCredential, SelectedClaims,
28};
29pub use model::{
30 ClaimQuery, ClaimSet, ClaimValue, ClaimsPath, ClaimsPathComponent, CredentialFormat,
31 CredentialQuery, CredentialSetQuery, DcqlQuery, QueryId, TrustedAuthorityQuery,
32 MAX_DCQL_JSON_BYTES,
33};
34pub use path::{process_json_claims_path, ProcessedClaimValues};
35pub use validate::validate_query;