pycardano icon indicating copy to clipboard operation
pycardano copied to clipboard

Use cbor2pure by default

Open cffls opened this issue 1 month ago • 2 comments

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

cffls avatar Dec 17 '25 05:12 cffls