ec-validator
⚠️ Ecuador does not currently use IBAN in practice. Banks use CCI instead. IBAN support is included for ISO compliance.
High-performance validation for Ecuadorian government IDs (cédula, RUC) and financial data (IBAN).
Quick install
Example
use ;
let cedula = validate.is_ok; // true
let ruc = validate.is_ok; // true (juridical)
let rtype = format!; // JuridicalEntity
let iban = validate.is_ok; // depends on check digits
Features
| Feature | Description |
|---|---|
| Cédula | 10-digit national ID (Mod-10) |
| RUC | 13-digit taxpayer ID: Natural Person, Juridical Entity, Public Entity |
| IBAN | ISO 13616 (Mod-97) |
Error types
| Variant | Description |
|---|---|
| InvalidLength | Wrong number of digits/characters |
| InvalidCheckDigit | Check digit validation failed |
| InvalidProvinceCode | Invalid province code (not 01-24) |
| InvalidRucType | Invalid RUC type indicator |
| InvalidFormat | Invalid character format |
Feature flags
| Flag | Description | Default |
|---|---|---|
serde |
Enable serialization/deserialization | No |
wasm |
Enable WebAssembly bindings | No |
Coming soon
- CCI (Código de Cuenta Interbancaria) validation
Contributing
Contributions welcome! Specifically seeking help implementing bank account algorithms (local and interbank). Contact the maintainers for details.
License
MIT