Commit Graph

731 Commits (100e7478b650e3ec06292b414c18e725ba017338)

Author SHA1 Message Date
jMyles baa27f53f7 Storing encrypted key (ie, pfrag) as part of PolicyGroup. 2017-12-04 17:17:28 -08:00
jMyles c4cbff3359 Tests that show Bob that Bob is able to issue a WorkOrder via REST. 2017-12-04 17:17:28 -08:00
jMyles df9f24e612 Mock network stuff to call reencrypt. 2017-12-04 17:17:28 -08:00
jMyles 3bda4b4a3c Ursula's REST endpoint for reencryption. 2017-12-04 17:17:28 -08:00
jMyles 593fb25db2 Bob signs pfrags and metadata. 2017-12-04 17:17:28 -08:00
jMyles 4494ea869e Bob can generate however many work orders he likes. 2017-12-04 17:17:28 -08:00
jMyles 4509ec0fc8 Pointing out where deterministic Ursula ID is useful. See #136. 2017-12-04 17:17:28 -08:00
jMyles 8cca28439e Work Order logic per-Ursula. 2017-12-04 17:17:28 -08:00
jMyles 07ceb085d1 Clarifying which interface we're talking about. See #134. 2017-12-04 17:17:28 -08:00
jMyles be35217f61 Bob can generate WorkOrder. 2017-12-04 17:17:28 -08:00
jMyles c624f3c3d5 WorkOrder class. 2017-12-04 17:17:28 -08:00
jMyles 65f9d735ad Added mypy cache to gitignore. 2017-12-04 17:17:28 -08:00
jMyles 429743f1f4 Test that Bob can properly create a work order and send it over to Ursula. 2017-12-04 17:17:28 -08:00
jMyles 7a525b801e Move Alice REST test to proper module. 2017-12-04 17:17:28 -08:00
jMyles b1f9b72886 Session-wide fixture injection means we don't need to grab alice and bob from the PolicyGroup. 2017-12-04 17:17:28 -08:00
jMyles ff04578dc3 CFrag and tests. 2017-12-04 17:17:13 -08:00
jMyles 2100acb680 Implemented PFrag in API. Closes #137. 2017-12-04 16:27:32 -08:00
jMyles 1de9a97628 Tests use PFrag. 2017-12-04 16:27:08 -08:00
jMyles ceb39d4ab7 PFrag class. 2017-12-04 16:26:52 -08:00
jMyles 4fab47cac3 Proper dunders with tests for kfrag retrieval and deserialization. Fixes #138. 2017-12-04 15:23:40 -08:00
jMyles 8ce87a3369 Better kfrag splitter. Reveals that test_kfrag_sqlite wasn't actually testing kfrag reconstruction. See #138. 2017-12-04 14:39:53 -08:00
jMyles 60d5846774 Don't need the part lengths anymore. 2017-12-04 14:38:43 -08:00
jMyles 9f41dfd06c Using KFrag with BytestringSplitter. Feels good. 2017-12-04 14:14:56 -08:00
jMyles 2fc80d3414 Providing KFrag compatibility. 2017-12-04 13:58:11 -08:00
jMyles 07ddefa909 Making API return KFrag instances. 2017-12-04 13:57:55 -08:00
jMyles e6556f54f1 Test for KFrag class compatibility with BytestringSplitter. 2017-12-04 13:08:40 -08:00
jMyles 7ebe8eb56c First sketch of KFrag class. 2017-12-04 13:08:21 -08:00
jMyles 75dc1b011a Sketching things out here. 2017-12-02 17:33:49 -08:00
Justin Holmes a30a46fe28
Merge pull request #131 from jMyles/master
Changing actor ID to something more realistic.  This may become the b…
2017-11-28 18:04:56 -08:00
jMyles 09d189da47 Changing actor ID to something more realistic. This may become the basis for looking up an actor if we ever represent them with REST. 2017-11-27 20:27:12 -08:00
Justin Holmes f106235a65
Merge pull request #130 from jMyles/mypy
Various type hints and other mypy-inspired fixes.
2017-11-27 13:35:11 -08:00
jMyles 16be6e3b97 Another variable type hint removal. 2017-11-22 09:27:58 -08:00
jMyles f7539f7575 Python 3.5 doesn't like inline type-hints for variables. This can be a class anyway. 2017-11-22 09:23:40 -08:00
jMyles 8c810219a1 Fixing Pipfile.lock. 2017-11-21 22:22:44 -08:00
jMyles bb92492826 mypy settings to ignore missing imports. 2017-11-21 22:13:49 -08:00
jMyles d250a2bd4a find_n_ursulas no longer returns a list. 2017-11-21 22:13:35 -08:00
jMyles 08644afc5d Type hint for list in blockchain_client. 2017-11-21 22:13:11 -08:00
jMyles 47328e8941 Default methods for Keypair. 2017-11-21 22:12:50 -08:00
jMyles a3b9960fbd Added sentinel for missing return value - see https://github.com/python/mypy/issues/4223#issuecomment-342865133. 2017-11-21 22:12:27 -08:00
jMyles 5f4b5f5cca Type for Keypair class. 2017-11-21 22:10:47 -08:00
jMyles e34ddef071 New names for return values. 2017-11-21 22:10:27 -08:00
jMyles fce308fc62 Fixed some tuple type hints with the proper number of expected members. 2017-11-21 22:09:58 -08:00
jMyles 63d1b9d082 encrypt_for takes Character, not str. 2017-11-21 22:09:29 -08:00
jMyles 6886b6bb0a Adding type hints for methods that return None. 2017-11-21 22:08:02 -08:00
jMyles 167ee66aa0 Changing fixture 'fake_ursulas' to just 'ursulas'. 2017-11-21 22:06:52 -08:00
jMyles ceae904822 Tests with Bob getting the signature from Alice properly. 2017-11-21 22:03:31 -08:00
jMyles 1e67468013 Properly delivering Alice's signature in the case that she signs the cleartext and includes it in the ciphertext. 2017-11-21 22:02:26 -08:00
jMyles 2f7bdecc3a Adding mypy to reqs, but not running with Travis quite yet. 2017-11-21 22:01:24 -08:00
jMyles 0084b14a3d OK, fixtures are implemented in the tests that need them. 2017-11-21 20:22:16 -08:00
jMyles 2f0b483ba3 Not using msgpack for protocols anymore! All concat and split now. 2017-11-21 20:21:02 -08:00