FrancoBenner / lyra2z-py

Python C module for Lyra2z proof of work compatible with Zcoin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Python C module for lyra2z hashing

Notes for Zcoin:

Module: lyra2z_hash

Please see the "test.py" for a testcase

From a previous readme from ocminer (updated):

Requirements:

In order to run P2Pool and other Python based pools with the Zcoin network, you would need to build and install the lyra2z_hash module for Python that includes the lyra2z proof of work code that Zcoin uses for hashes.

Linux:

sudo python setup.py install

Windows (mingw):

In cmd type this:

C:\Python27\python.exe setup.py build --compile=mingw32 install

- untested

Windows (microsoft visual c++)

  • Open visual studio console

In cmd type this:

SET VS90COMNTOOLS=%VS140COMNTOOLS%	           # For visual c++ 2015
C:\Python27\python.exe setup.py install

Test the install:

C:\Python27\python.exe
...
>>>import lyra2z_hash
>>>help('lyra2z_hash')
>>>quit()

- tested ok

About

Python C module for Lyra2z proof of work compatible with Zcoin


Languages

Language:C 99.2%Language:Python 0.6%Language:C++ 0.2%