Expand description
LEI (Legal Entity Identifier) validation rule.
Validates per ISO 17442:
- Exactly 20 characters, all uppercase alphanumeric ASCII
- Characters 1–4: LOU prefix (alphanumeric)
- Characters 5–18: entity identifier (alphanumeric)
- Characters 19–20: 2-digit MOD 97-10 check digits
The check-digit algorithm is the same MOD 97-10 used by IBAN: letters are expanded (A=10, B=11, …, Z=35) before computing the remainder.
Structs§
- LeiRule
- Validates a value as an ISO 17442 Legal Entity Identifier (LEI).