pycardano
pycardano copied to clipboard
Use cbor2pure by default
This commit will ensure pure python version of cbor2 is used when installing pycardano for the first time, without modifying any dependencies. Users are still free to use cbor2 if speed is preferred over correctness by setting CBOR_C_EXETENSION=1 in their environment.
A dynamic cbor2 module is also exported by pycardano, which allows users to use if they want to write custom version of decoder without worrying about using the wrong cbor library with pycardano.
from pycardano import cbor2