-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3906885
commit 48e7620
Showing
18 changed files
with
625 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
language: python | ||
dist: trusty | ||
env: | ||
global: | ||
- PYTEST_ADDOPTS="-n 3" | ||
matrix: | ||
include: | ||
# lint | ||
- python: "3.5" | ||
env: TOX_ENV=flake8 | ||
# core | ||
- python: "2.7" | ||
env: TOX_ENV=py27 | ||
- python: "3.4" | ||
env: TOX_ENV=py34 | ||
- python: "3.5" | ||
env: TOX_ENV=py35 | ||
- python: "3.6" | ||
env: TOX_ENV=py35 | ||
cache: | ||
pip: true | ||
install: | ||
- "travis_retry pip install pip setuptools --upgrade" | ||
- "travis_retry pip install tox" | ||
script: | ||
- tox -e $TOX_ENV | ||
after_script: | ||
- cat .tox/$TOX_ENV/log/*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from . import secp256k1 | ||
from . import bn128 | ||
from . import optimized_bn128 | ||
from __future__ import absolute_import | ||
|
||
from . import secp256k1 # noqa: F401 | ||
from . import bn128 # noqa: F401 | ||
from . import optimized_bn128 # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
from .bn128_field_elements import field_modulus, FQ, FQP, FQ2, FQ12 | ||
from .bn128_curve import add, double, multiply, is_inf, is_on_curve, eq, neg, twist, b, b2, b12, curve_order, G1, G2, G12 | ||
from .bn128_pairing import pairing, final_exponentiate | ||
from __future__ import absolute_import | ||
|
||
from .bn128_field_elements import ( # noqa: F401 | ||
field_modulus, | ||
FQ, | ||
FQP, | ||
FQ2, | ||
FQ12, | ||
) | ||
from .bn128_curve import ( # noqa: F401 | ||
add, | ||
double, | ||
multiply, | ||
is_inf, | ||
is_on_curve, | ||
eq, | ||
neg, | ||
twist, | ||
b, | ||
b2, | ||
b12, | ||
curve_order, | ||
G1, | ||
G2, | ||
G12, | ||
) | ||
from .bn128_pairing import ( # noqa: F401 | ||
pairing, | ||
final_exponentiate, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.