Installation¶
libcrypto is a pure Python package with no third-party runtime dependencies.
Requirements¶
- Python 3.8, 3.9, 3.10, 3.11, 3.12, or 3.13.
- No compiler, no system libraries, no external Python packages.
Install from PyPI¶
Upgrade to the latest release:
Install from source¶
For an editable development install:
Verify the installation¶
from libcrypto import Wallet
wallet = Wallet("0000000000000000000000000000000000000000000000000000000000000001")
assert wallet.get_address("bitcoin", "p2pkh") == "1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH"
print("libcrypto is working.")
Optional: RIPEMD-160 acceleration¶
libcrypto ships a pure-Python RIPEMD-160 implementation and uses it
automatically when the host OpenSSL build does not expose ripemd160 through
hashlib. When OpenSSL provides it, the faster native implementation is used
transparently. No configuration is required either way.