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

pip install libcrypto

Upgrade to the latest release:

pip install --upgrade libcrypto

Install from source

git clone https://gitlab.com/0xmdrza/libcrypto.git
cd libcrypto
pip install .

For an editable development install:

pip install -e .

Verify the installation

libcrypto --version
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.