Module: lyra2z_hash
Please see the "test.py" for a testcase
From a previous readme from ocminer (updated):
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):
- Install MinGW: http://www.mingw.org/wiki/Getting_Started
- Install Python 2.7: http://www.python.org/getit/
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