Open
Description
hashlib
depends on openssl which both increases the size of our pyinstaller build, and adds additional reproducibility headaches. It would be nice if we could drop hashlib
for something that is lighter. Preferably something that is pure python or a cython module.
The hash functions we use are:
- sha256
- sha512
- pbdkf_hmac
- ripemd160
- blake2s (trezor firmware stuff, not yet merged)
Trying to get rid of hashlib
could be a problem as a ton of things use it so any dependencies would not have to use hashlib
, and that would be a pain to figure out. Alternatively, for the deterministic build, we could drop-in replace the hashlib
module with whatever alternative implementation. That way nothing has to change, just the api needs to be the same as hashlib
.