Skip to main content

Python library for working with the NANO cryptocurrency protocol

Project description

nanolib

[![image](https://img.shields.io/pypi/v/nanolib.svg)](https://pypi.org/project/nanolib/) [![codecov](https://codecov.io/gh/Matoking/nanolib/branch/master/graph/badge.svg)](https://codecov.io/gh/Matoking/nanolib) [![Build Status](https://travis-ci.com/Matoking/nanolib.png?branch=master)](https://travis-ci.com/Matoking/nanolib) [![image](https://readthedocs.org/projects/nanolib/badge/?version=latest)](https://nanolib.readthedocs.io/en/latest/?badge=latest)

A set of tools for handling functions related to the NANO cryptocurrency protocol.

Features

  • 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

Installation

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 `

Documentation

An online copy of the documentation can be found at [Read the Docs](https://nanolib.readthedocs.io/en/latest/).

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

Commands

The setup.py 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.

Donations

xrb_33psgb1exxuftgjthbz4tsgzm5qmyzawrfzptpmp3nwzousbypqf6bcmrk69

Project details


Download files

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

Source Distribution

nanolib-0.4.1.tar.gz (108.3 kB view details)

Uploaded Source

File details

Details for the file nanolib-0.4.1.tar.gz.

File metadata

  • Download URL: nanolib-0.4.1.tar.gz
  • Upload date:
  • Size: 108.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for nanolib-0.4.1.tar.gz
Algorithm Hash digest
SHA256 61ba6442c228eee3dcf16a3ee7d572ac7d2a79bf515524f638340eb3aaa50e2a
MD5 4ad9c80ae88de0f046ce5899a30d0c36
BLAKE2b-256 7520f80dfe3e8780037aa8e71d1f5e7a37c720656181b72a742f8acc9a559997

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page