bump version and add info in changelog/readme about c impl
This commit is contained in:
parent
505fc96c2c
commit
ebcc2ed632
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
This project uses Semantic Versioning
|
This project uses Semantic Versioning
|
||||||
|
|
||||||
|
## 1.2.0
|
||||||
|
|
||||||
|
+ Accepted C+gmp implementation of MiMC from @cartr
|
||||||
|
+ Added is_fast in mimcvdf to tell which implementation is being used
|
||||||
|
|
||||||
|
|
||||||
## 1.1.0
|
## 1.1.0
|
||||||
|
|
||||||
Added support for decimal output
|
Added support for decimal output
|
||||||
|
@ -24,6 +24,8 @@ vdf_verify(same_bytes_data, vdf_create_result, rounds)
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For high speed, you need GMP installed. Otherwise, the module will fall back to a Python implementation that is significantly slower.
|
||||||
|
|
||||||
|
|
||||||
## Security
|
## Security
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import time
|
|||||||
from statistics import mean
|
from statistics import mean
|
||||||
from math import ceil
|
from math import ceil
|
||||||
|
|
||||||
from .mimc import forward_mimc, reverse_mimc
|
from .mimc import forward_mimc, reverse_mimc, is_fast
|
||||||
"""
|
"""
|
||||||
Kevin Froman 2020
|
Kevin Froman 2020
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#include <gmp.h>
|
#include <gmp.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
C Version by github.com/cartr
|
||||||
This module adapted from https://github.com/OlegJakushkin/deepblockchains/blob/master/vdf/mimc/python/mimc.py by Sourabh Niyogi https://github.com/sourabhniyogi
|
This module adapted from https://github.com/OlegJakushkin/deepblockchains/blob/master/vdf/mimc/python/mimc.py by Sourabh Niyogi https://github.com/sourabhniyogi
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
@ -43,7 +44,7 @@ mimc_init_constants()
|
|||||||
|
|
||||||
// Set LITTLE_FERMAT_EXPT to hex((MODULUS * 2 - 1) // 3)
|
// Set LITTLE_FERMAT_EXPT to hex((MODULUS * 2 - 1) // 3)
|
||||||
mpz_init(LITTLE_FERMAT_EXPT);
|
mpz_init(LITTLE_FERMAT_EXPT);
|
||||||
mpz_set_str(LITTLE_FERMAT_EXPT,
|
mpz_set_str(LITTLE_FERMAT_EXPT,
|
||||||
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||||
"aaaaaaaaaaaaaaaaaaaaa9c0aaaaaaab",
|
"aaaaaaaaaaaaaaaaaaaaa9c0aaaaaaab",
|
||||||
16);
|
16);
|
||||||
|
4
setup.py
4
setup.py
@ -1,11 +1,11 @@
|
|||||||
from setuptools import setup, find_packages, Extension
|
from setuptools import setup, find_packages, Extension
|
||||||
|
|
||||||
setup(name='mimcvdf',
|
setup(name='mimcvdf',
|
||||||
version='1.1.0',
|
version='1.2.0',
|
||||||
description='Generic high level VDF using MiMC',
|
description='Generic high level VDF using MiMC',
|
||||||
author='Kevin Froman',
|
author='Kevin Froman',
|
||||||
author_email='beardog@mailbox.org',
|
author_email='beardog@mailbox.org',
|
||||||
url='https://www.chaoswebs.net/',
|
url='https://github.com/beardog108/mimcvdf/',
|
||||||
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
|
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
|
||||||
install_requires=[],
|
install_requires=[],
|
||||||
ext_package="mimcvdf",
|
ext_package="mimcvdf",
|
||||||
|
Loading…
Reference in New Issue
Block a user