ADORSYS-GIS / ADORSYS-GIS/cloud-wallet-ui

DCQL / presentation_definition parsing utilities

未關閉
#82 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
0
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

### Description
Implement parsing and credential-matching utilities for Authorization Request query objects. This is pure frontend logic — no backend required.

### Acceptance criteria
- [ ] `parseDcqlQuery(raw)` parses a raw `dcql_query` JSON object into a typed internal representation
- [ ] `matchCredentialsToDcql(credentials, query)` returns which stored credentials satisfy a DCQL query
- [ ] `extractRequestedClaims(credential, query)` returns only the claim paths requested from a given credential
- [ ] All three functions have unit tests covering happy path and edge cases (no match, partial match, unknown format)
- [ ] TypeScript types `DcqlQuery`, `CredentialQuery`, `ClaimsQuery` are added to `src/types/`

### Notes
Start with SD-JWT VC / JSON-based claim path semantics; ISO mdoc support can be deferred.
OID4VP spec ref: §6 (DCQL), §7 (Claims Path Pointer), §7.1 (Semantics for JSON-based credentials).

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。