Repository navigation
Tolerant key parsing, alphanumeric CNPJ and typespecs.
- Formatted Pix keys are accepted and written in the DICT canonical form:
123.456.789-09→12345678909,+55 (11) 98765-4321→+5511987654321,
Fulano@Exemplo.com→fulano@exemplo.com - Alphanumeric CNPJ keys (Receita, from July 2026):
12.ABC.345/01DE-35→12ABC34501DE35 - New
:key_typeoption (:cpf,:cnpj,:phone,:email,:evp) @specand@typefor the whole public API- Invalid UTF-8 input now returns
{:error, _}instead of raising
Breaking: encode/1 now validates CPF/CNPJ check digits, so keys like "12345678901" return {:error, :invalid_key}. A +55 phone key needs a DDD and 8 or 9 digits.
Full list in the CHANGELOG.