Public algorithm primitives. Tree-shakable subpath: nationid/algorithms.
nationid/algorithms
Each function is a pure mathematical primitive with cited spec.
Char value for MRZ checksum: '0'-'9' → 0..9; 'A'-'Z' → 10..35; '<' → 0.
'0'-'9'
'A'-'Z'
'<'
Returns -1 for any character outside the MRZ alphabet (callers may treat this as "invalid" without an exception).
Public algorithm primitives. Tree-shakable subpath:
nationid/algorithms.Each function is a pure mathematical primitive with cited spec.