pytezos icon indicating copy to clipboard operation
pytezos copied to clipboard

Replace pysodium with libnacl

Open hoh opened this issue 1 year ago • 2 comments

The library pysodium is used as "a very simple wrapper around libsodium masquerading as nacl".

libnacl is another wrapper around the nacl library developed and maintained by the Salt project and with extensive documentation on https://libnacl.readthedocs.io and has been update to use the pyproject.toml format. The status of this library is marked as 5 - Production/Stable on PyPI.

The pysodium library has a bare bone repository with no documentation available and still uses the old 'setup.py' format. The status of this library is marked as 4 - Beta on PyPI.

hoh avatar Sep 19 '24 11:09 hoh

Hi! I like this idea! Pysodium is luckily not abandoned, but libnacl's wheels and documentation make it an attractive drop-in replacement. The only thing I worry about is a chance to break projects relying on pysodium but not adding it as a dependency explicitly. But I guess it's a pretty exotic case.

droserasprout avatar Sep 19 '24 17:09 droserasprout

Thanks for the positive feedback.

Another motivation is to package pytezos (or at least the cryptography part) in Nixpkgs, which has libnacl already packaged but not pysodium

hoh avatar Sep 21 '24 10:09 hoh