Skip to content

Add e_qcstatem_psd2_roles_valid: role name/OID validation for PSD2 QCStatements - #1077

Open
christopher-henderson wants to merge 3 commits into
e_qcstatem_psd2_validfrom
e_qcstatem_psd2_roles_valid-pr
Open

Add e_qcstatem_psd2_roles_valid: role name/OID validation for PSD2 QCStatements#1077
christopher-henderson wants to merge 3 commits into
e_qcstatem_psd2_validfrom
e_qcstatem_psd2_roles_valid-pr

Conversation

@christopher-henderson

@christopher-henderson christopher-henderson commented Aug 9, 2026

Copy link
Copy Markdown
Member

Adds e_qcstatem_psd2_roles_valid that checks each recognized role OID in a PSD2 QCStatement's RolesOfPSP has the matching registered role name (ETSI TS 119 495, REG-5.2.2-5).

Replaces the struct-slice plus nested-loop-with-break scan with a direct
map lookup keyed by the OID's dotted string form, removing a level of
nesting and the O(roles*9) scan for what is really a single-key lookup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant