Skip to content

Commit 2697ebb

Browse files
committed
Upload bitweb yespower for python3.7
1 parent 0e2c308 commit 2697ebb

File tree

14 files changed

+2937
-0
lines changed

14 files changed

+2937
-0
lines changed

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include sysendian.h
2+
include insecure_memzero.h
3+
include sha256.h
4+
include yespower-ref.c
5+
include yespower-platform.c
6+
include yespower.h

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build:
2+
python setup.py build
3+
sudo-install:
4+
sudo python setup.py install
5+
clean:
6+
python setup.py clean
7+
sudo-clean:
8+
sudo python setup.py clean

README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
git clone https://github.com/bitweb-project/bitweb_yespower_python3
2+
3+
cd bitweb_yespower_python3
4+
5+
sudo python3 setup.py install
6+
7+
import bitweb_yespower

insecure_memzero.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#define insecure_memzero(buf, len) /* empty */

setup.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from setuptools import setup, Extension
2+
3+
bitweb_yespower_module = Extension('bitweb_yespower',
4+
sources = ['yespower-module.c',
5+
'yespower.c',
6+
'yespower-opt.c',
7+
'sha256.c'
8+
],
9+
extra_compile_args=['-O2', '-funroll-loops', '-fomit-frame-pointer'],
10+
include_dirs=['.'])
11+
12+
setup (name = 'bitweb_yespower',
13+
version = '1.0.4',
14+
author_email = '[email protected]',
15+
author = 'mraksoll',
16+
url = 'https://github.com/bitweb-project/bitweb_yespower_python3',
17+
description = 'Bindings for yespower-1.0 proof of work used by bitweb',
18+
ext_modules = [bitweb_yespower_module])

0 commit comments

Comments
 (0)