Skip to main content

Python library for working with the NANO cryptocurrency protocol

Project description


  • Solve and verify proof-of-work
  • Create and deserialize legacy and universal blocks
  • Account generation from seed using the same algorithm as the original NANO wallet and NanoVault
  • Functions for converting between different NANO denominations
  • High performance cryptographic operations using C extensions (signing and verifying blocks, and generating block proof-of-work) * Proof-of-work generation supports SSE2, SSSE3, SSE4.1, AVX and NEON instruction sets for improved performance. The best supported implementation is selected at runtime with a fallback implementation with universal compatibility.
  • Backed by automated tests
  • Compatible with Python 3.6 and up
  • Licensed under the very permissive Creative Commons Zero license


You can install the library using pip:

` pip install nanolib `

nanolib requires a working build environment for the C extensions. For example, on Debian-based distros you can install the required Python header files and a C compiler using the following command:

` apt install build-essential python3-dev `


An online copy of the documentation can be found at [Read the Docs](

You can also build the documentation yourself by running python build_sphinx.


The script comes with a few additional commands besides installation:

  • build_sphinx * Build the documentation in build/sphinx/html.
  • test * Run tests using pytest
  • speed * Run a benchmark testing the performance of various cryptographic operations used in the library.



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nanolib, version 0.4.1
Filename, size File type Python version Upload date Hashes
Filename, size nanolib-0.4.1.tar.gz (108.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page