#pix #deserialize #specification #compliant #qr #featuring #creation

pix-brcode

A ready to use compliant PIX specification, featuring fast de/serialization

1 unstable release

0.1.0 Aug 31, 2021

#2509 in Parser implementations


Used in pix-api-client

MIT license

19KB
374 lines

Pix-toolbelt

Features a collection of crates to ease the creation and validation of PIX BrCode, a subset of the EMV-QrCode specification.

It hopes to be the go-to library for br-code and pix related operations.

Table of Contents

emv-qrcps

Status: Implemented.

Features a non-alloc deserializer, and a serializer for any specification based on EMV-QrCode.

pix-brcode

Status: In progress...

Features the creation, deserialization of PIX Br Code strings, with proper CRC16 checks. Works by extending the functionality provided by emv-qrcps crate.

Works for both PIX Dynamic and Static QR Codes.

Can also validate Location URL for Merchant Account Information, used on PIX Dynamic QR Codes.

pix-api-client

Status: In progress...

Features a strongly typed API client in Rust, that should work for any PIX-API compliant PSPs.

LICENSE

The whole project is licensed with the permissive MIT license. If you use it commercially, you are not obliged, but as a token of gratitude, please give a heads up to the creators.

Every contribution is also licensed to the MIT license.


lib.rs:

Described on: Pix Manual: https://www.bcb.gov.br/content/estabilidadefinanceira/pix/Regulamento_Pix/II_ManualdePadroesparaIniciacaodoPix_versao2-3-0.pdf BR Code Manual: https://www.bcb.gov.br/content/estabilidadefinanceira/spb_docs/ManualBRCode.pdf Arranjos QRCode: https://www.bcb.gov.br/content/estabilidadefinanceira/forumpireunioes/Anexo%20I%20-%20Padr%C3%B5es%20para%20Inicia%C3%A7%C3%A3o%20do%20PIX.pdf

Múltiplos arranjos podem existir em um mesmo QR Code

Dependencies

~6MB
~108K SLoC