Commit Graph

2821 Commits (a2f460f4a2f7830e1c4b846790c017651ea4b959)

Author SHA1 Message Date
jMyles 57b4450d59 Look in own TreasureMaps when following. 2017-12-11 16:55:35 -08:00
jMyles a5fbc5c38d Bob will store TreasureMaps now. 2017-12-11 16:55:00 -08:00
jMyles f8d67c83d6 BaseClass for NetworkyStuff will just return NotImplemented when asked to find a competitive rate. 2017-12-11 14:44:32 -08:00
jMyles 74f51e77f3 New deposit logic for grant: Alice can supply a deposit, look at her default deposit, or, if implemented in her network client, find a competitive rate. 2017-12-11 14:43:51 -08:00
szotov c5550d064b [KMS-ETH]- Changed mining formula, added activity confirmation 2017-12-11 19:46:37 +03:00
jMyles a5579f1af7 grant test 2017-12-09 17:21:43 -08:00
jMyles 1a6650f3e9 convenience method for crafting an offer from a PolicyGroup 2017-12-09 17:21:25 -08:00
jMyles 0cf82a4a0c grant method. 2017-12-09 17:21:08 -08:00
jMyles fd38b2421e Alice gets a PolicyManager at __init__. 2017-12-09 17:19:30 -08:00
Justin Holmes 7312810804
Merge pull request #142 from jMyles/todo
Closed a few TODOs, opened some others, added some tests for some already closed.
2017-12-08 14:09:29 -08:00
jMyles c2a111c2b5 Tests showing that Bob doesn't repeat WorkOrders for CFrags he already has. 2017-12-07 20:41:48 -08:00
jMyles 699ec37f03 TreasureMap setting fixture implemented in a few tests. 2017-12-07 20:41:26 -08:00
jMyles fc66f43b3b Pushing TreasureMap setting down into a fixture. 2017-12-07 20:41:04 -08:00
jMyles f5ef7c6eaf Sketch of marking a WorkOrder complete. 2017-12-07 20:40:21 -08:00
jMyles 8c243ed399 A WorkOrder is only as long as its PFrags. 2017-12-07 20:38:51 -08:00
jMyles 537a782100 Pushing reencrypt logic down into actual NetworkyStuff instead of just the mock. Makes me psyched! 2017-12-07 20:37:08 -08:00
jMyles 748aea9746 Added TODO showing where Ursula needs to sign response - See #141. 2017-12-07 20:36:36 -08:00
jMyles ad0a2a59cf Check that Ursula sent back the proper number of CFrags. 2017-12-07 20:36:09 -08:00
jMyles 2b1ca0d0d9 New concept for saving WorkOrders by Bob. 2017-12-07 20:35:38 -08:00
jMyles fb5731fff4 Bob has a lot of logic surrounding his play with Frags - moving such tests to their own module. 2017-12-07 00:36:43 -08:00
jMyles 647e0e4fd7 Bob can now lookup past work orders by PFrag since #137 is closed. 2017-12-07 00:36:35 -08:00
Justin Holmes 761553b26b
Merge pull request #133 from jMyles/apistar
REST relationship for Bob and Ursula, with complete PRE using all three Fragment classes.
2017-12-07 00:34:26 -08:00
jMyles 4de6ff736a More mock network logic for testing. 2017-12-05 12:54:59 -08:00
jMyles 674197d30b Test for complete discovery and reencryption via REST. 2017-12-05 12:54:44 -08:00
jMyles 1f923aaeab That thing in a PolicyGroup isn't an EncryptedKey; it's a PFrag. 2017-12-05 12:54:19 -08:00
jMyles 2d4a57f463 RepeatingBytestringSplitter - to get any number of CFrags from the HTTP response. 2017-12-05 12:53:39 -08:00
jMyles 295e4c6e9b Overhaul of CFrag class; adding more robust protections. 2017-12-05 12:53:18 -08:00
jMyles 32658b08ee Reconstituting an EncryptedKey from deserialized key data. 2017-12-05 12:52:43 -08:00
jMyles 73f1a62141 Reconsituting CFrag from the full reencrypted_data payload. 2017-12-05 12:52:10 -08:00
jMyles 0b21f67323 Ursula tracks WorkOrders. Probably makes more sense to serialize these and put them in her datastore. 2017-12-05 12:51:44 -08:00
jMyles 335320c566 Convenience method for finding a known Ursula by Bob. 2017-12-05 12:51:01 -08:00
jMyles ae4a6f87ec WorkOrder now takes a Bob instead of just Bob's key. 2017-12-05 12:50:18 -08:00
jMyles 028b28cb58 Bob's __init__ was flawed; didn't pass args to super. 2017-12-05 12:49:14 -08:00
jMyles 074788f10f Proper __eq__ logic for Characters - we'll need this to find WorkOrders belonging to Bob. 2017-12-05 12:48:40 -08:00
jMyles 97a97c6b5c Bob Issues WorkOrders with pFrags, gets back cFrags. 2017-12-04 17:18:47 -08:00
jMyles 61bcb62862 WorkOrder Payload simplified using PFrags. 2017-12-04 17:18:23 -08:00
jMyles 6e3d8bb7b5 REST Response is bytestream of concat'd cFrags. 2017-12-04 17:17:56 -08:00
jMyles a5e85576a7 Using PolicyGroup's encrypted_key instead of fake pfrags. 2017-12-04 17:17:28 -08:00
jMyles d90a2649e9 Can't represent pfrag as bytes; this is a blocker for now. See #137. 2017-12-04 17:17:28 -08:00
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