Commit Graph

981 Commits (dd76047a42cad8124b6d91ec297bfde50b09cdbf)

Author SHA1 Message Date
David Núñez 317469767d Allows passing callable KDFs to key wrapping methods. Default is Scrypt 2018-11-16 11:16:12 +01:00
David Núñez bce37b790a Protected scope for pre._prove_cfrag_correctness() 2018-11-16 11:16:12 +01:00
David Núñez 9cfbf1b50c CorrectnessProofs use ExtendedKeccak for compatibility with Solidity 2018-11-16 11:16:12 +01:00
David Núñez 9521c50d12 Introduce customization_string arg for Hash functions 2018-11-16 11:16:12 +01:00
David Núñez 86789006a4 janitorial 2018-11-16 11:16:12 +01:00
David Núñez 576e7a4aeb Introduce ABC for Hash class 2018-11-16 11:16:12 +01:00
David Núñez cec416fee9 Improved key wrapping for Umbral keys. Fixes #122 2018-11-16 11:16:12 +01:00
David Núñez d60e982bdc Enable mypy again in CircleCI workflow 2018-11-16 11:16:12 +01:00
David Núñez a6cb2a0450 Removes protected attribute scope in some umbral classes 2018-11-16 11:16:12 +01:00
David Núñez 716428a8f9 Dismember umbral._pre and put the pieces where they belong 2018-11-16 11:16:12 +01:00
David Núñez 977bee01a0 Divide umbral.fragments into umbral.kfrags and umbral.cfrags 2018-11-16 11:16:12 +01:00
David Núñez 5b169d27b1 Simplifying combination of Cfrags when threshold=1 2018-11-16 11:16:12 +01:00
David Núñez 17c8c6004d Trailing commas not allowed in functions with starargs before Python 3.6 2018-11-16 11:16:12 +01:00
David Núñez 98c7a7d779 Adapt hash_to_curvebn to new hash interface. Blake2b is the default hash. 2018-11-16 11:16:12 +01:00
David Núñez 5bcc4c96d8 New ExtendedKeccak hash function, based on pysha3 implementation 2018-11-16 11:16:01 +01:00
David Núñez 6f0eca9be1 Introduce Hash superclass and new Blake2b wrapper 2018-11-16 11:07:01 +01:00
David Núñez 62a0392b58 New umbral.random_oracles module to gather all hash and KDF functions 2018-11-16 11:07:01 +01:00
David Núñez bd8f07c822
Merge pull request #226 from cygnusv/requests
Update Pipfile and requirements.txt to disallow requests<2.20.0
2018-11-16 10:47:09 +01:00
David Núñez 09339388e1 Update README and docs to show pip install umbral 2018-11-16 10:39:28 +01:00
David Núñez 03cccb8ed4 Workaround for pytest-benchmark incompatibility with pytest 4. See #227 2018-11-16 10:05:24 +01:00
David Núñez f5bebc6a1e Use option parallel=True for coverage (Fixes #222)
See https://github.com/nedbat/coveragepy/issues/716
2018-11-15 21:57:52 +01:00
David Núñez b51c38d1e1 Update Pipfile and requirements.txt to disallow requests<2.20.0 2018-11-15 21:14:04 +01:00
David Núñez 839106da36 Bump version: 0.1.1-alpha.2 → 0.1.1-alpha.3 2018-10-19 01:44:13 +02:00
David Núñez 9b01f14614 Revised deploy config (missing twine installation) 2018-10-19 01:43:58 +02:00
David Núñez e8c8ae52d4 Bump version: 0.1.1-alpha.1 → 0.1.1-alpha.2 2018-10-19 01:15:50 +02:00
David Núñez b2a2f9e5f0 Adds approval step to CircleCI workflow, between test_deploy and deploy 2018-10-19 01:15:44 +02:00
David Núñez 87fa190a91 Bump version: 0.1.1-alpha.0 → 0.1.1-alpha.1 2018-10-19 00:32:18 +02:00
David Núñez ba34725f76 Adds --user flag to pip install in test_deploy CircleCI build script 2018-10-19 00:31:44 +02:00
David Núñez 08b6c34163 Bump version: 0.1.0-alpha.4 → 0.1.1-alpha.0 2018-10-19 00:09:22 +02:00
David Núñez ed93fbca41 Fix test_deploy CircleCI config and verify version command in setup.py 2018-10-19 00:05:48 +02:00
David Núñez 75692999e4
Merge pull request #223 from cygnusv/optional-stuff
Last minute changes before release v0.1.1-alpha.0
2018-10-18 22:04:40 +02:00
David Núñez 4f13c7a4e1 Updated test vectors reflecting new API and KFrags 2018-10-16 11:04:48 +02:00
David Núñez 6df0d835e2 PEP8'ing the test vector scripts and tests 2018-10-16 11:04:42 +02:00
David Núñez e020e1ac1e
Merge pull request #221 from KPrasch/deployment-test
Pre-deployment testing and acceptance for PyPI releases
2018-10-15 20:03:16 +02:00
Kieran Prasch c574beaab3 Include deployment testing steps and manual approval for PyPI 2018-10-15 09:55:41 -07:00
K Prasch 7094be8005
Merge pull request #220 from cygnusv/optional-stuff
Improved verification of KFrags
2018-10-15 09:53:50 -07:00
David Núñez ad055165ff Get constant sorrow from pipy 2018-10-11 21:01:26 +02:00
David Núñez 87b24a0083 Some type annotation improvements and other minor change requests 2018-10-11 21:01:21 +02:00
David Núñez 7d9ddfe6e8 Adds support to testing Jupyter notebooks with py.test plugin nbval
* Test vectors are marked as xfail temporarily
2018-10-06 22:28:14 +02:00
David Núñez 6ebe4bd298 Updating README, scripts and notebook to latest changes in the API 2018-10-06 22:28:07 +02:00
David Núñez 4b662f91a8 Handling other internal umbral.pre constants with constant_sorrow 2018-10-06 21:31:46 +02:00
David Núñez 416c51bd0f Testing kfrag signing modes 2018-10-06 21:31:46 +02:00
David Núñez ea442fe702 Janitorial stuff 2018-10-06 21:31:39 +02:00
David Núñez 236ff239fe Use constant_sorrow to handle signing mode constants in KFrag 2018-10-06 19:00:34 +02:00
David Núñez 0eb7e22dc4 New signing mode in KFrag for stating what correctness keys are signed 2018-10-06 19:00:34 +02:00
David Núñez 4e331f3010 Rename pre.split_rekey to pre.generate_kfrags. Introduce changes in args 2018-10-06 19:00:34 +02:00
David Núñez d6ee0cc4e5 Capsule._reconstruct_shamirs is absorbed into pre._decapsulate_reencrypted 2018-10-06 19:00:34 +02:00
David Núñez ecc166f23c Activated capsules don't exist anymore as objects of the Capsule class 2018-10-06 19:00:34 +02:00
David Núñez 7f50bf48b8 More type checking on re-encrypt and decrypt APIs 2018-10-06 19:00:34 +02:00
David Núñez 054777eb53 KFrags now has 2 signatures (Bob and proxy) and a new point
* point_precursor removes need for point_xcoord and point_noninteractive
* Fixes access to protected attributes in some places
2018-10-06 19:00:34 +02:00