FA-72773 / Check-digit algorithms / Member archive
LEI check digits lose the leading zero · case 03
Check values below 10 produce a 19-character LEI.
Case contract
Generate ISO 17442 LEI check digits (ISO 7064 MOD 97-10): the 18-character alphanumeric prefix is upper-cased (other input returns None), "00" is appended, letters become 10..35, and the check is 98 - (number mod 97) written as exactly two digits. Return the 20-character LEI.
Why this case matters
Regulatory reporting tools assign and verify legal entity identifiers.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression ["TD7FDXWKLVRV07ALBK"] | "TD7FDXWKLVRV07ALBK5" | "TD7FDXWKLVRV07ALBK05" | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗