jMyles
|
81c534041f
|
Tracking both REST and DHT info on Ursula.
|
2018-02-04 23:39:40 -08:00 |
jMyles
|
319b1f17a5
|
Instead of saving the contract in memory, saving a dict with details in preparation for a legit data store. See #127.
|
2017-12-15 21:48:18 -08:00 |
jMyles
|
8e0f9fb203
|
Ursula reconstructing contract from mock saved data.
|
2017-12-15 21:47:52 -08:00 |
jMyles
|
0bb62224ef
|
With PolicyGroup gone, there's no need for these nagging managers.
|
2017-12-15 21:47:02 -08:00 |
jMyles
|
a224487ecf
|
Exception to raise when suspicious activity is detected and there's no other obvious recourse.
|
2017-12-15 21:46:14 -08:00 |
jMyles
|
45ffae7ea4
|
This was an hrac all along - it was never meant to be called "pfrag" except as a quick experiment.
|
2017-12-14 21:18:50 -08:00 |
jMyles
|
87d25e4ce3
|
Pushing logic to match KFrags with Contracts down into Policy.
|
2017-12-14 21:18:25 -08:00 |
jMyles
|
4927dec9e5
|
Ursula saves contract (although we'll want to do this in a datastore - see #127)
|
2017-12-14 20:32:22 -08:00 |
jMyles
|
567a9734fe
|
Ursula saves KFrag from new Contract class.
|
2017-12-14 20:32:09 -08:00 |
jMyles
|
4e25a0ac04
|
Much better grant logic.
|
2017-12-14 20:31:54 -08:00 |
jMyles
|
0a9002893e
|
For now, Ursula stores Contracts in a dict.
|
2017-12-14 16:52:36 -08:00 |
jMyles
|
346883524a
|
Ursula reconstructs the Contract at the other end of the wire.
|
2017-12-14 12:46:36 -08:00 |
jMyles
|
021f7a25d5
|
.enact() for Policy
|
2017-12-14 12:14:37 -08:00 |
jMyles
|
ac10e6a3da
|
Merge commit for various Policy and testing Work after PRs are merged.
|
2017-12-13 10:41:55 -08:00 |
jMyles
|
9541aa8519
|
Bob can reconstitute a PolicyGroup before he has the PFrag; nothing wrong with that.
|
2017-12-13 10:30:47 -08:00 |
jMyles
|
af969c3ff7
|
Bob now gets a TreasureMap from just an Alice and URI (not a PolicyGroup).
|
2017-12-13 10:30:08 -08:00 |
jMyles
|
44438e6a50
|
Moving publish_treasure_map down to PolicyGroup.
|
2017-12-13 10:29:21 -08:00 |
jMyles
|
451095326f
|
Adding __len__ for TreausureMap (kinda surprised we got by without it until now).
|
2017-12-11 17:03:07 -08:00 |
jMyles
|
df013d6a00
|
More replacements of PolicyGroup for the simple hrac.
|
2017-12-11 17:02:45 -08:00 |
jMyles
|
cbae3d666e
|
Lookup TreasureMap with provided hrac. It's a good idea to test this, but it's untested as yet.
|
2017-12-11 17:00:36 -08:00 |
jMyles
|
673620e721
|
Bob doesn't need a PolicyGroup to generate work orders; an hrac will do.
|
2017-12-11 16:58:40 -08:00 |
jMyles
|
588ee82d8e
|
Store TreasureMap when finding from DHT.
|
2017-12-11 16:56:00 -08:00 |
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
|
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 |
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 |
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
|
647e0e4fd7
|
Bob can now lookup past work orders by PFrag since #137 is closed.
|
2017-12-07 00:36:35 -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
|
6e3d8bb7b5
|
REST Response is bytestream of concat'd cFrags.
|
2017-12-04 17:17:56 -08:00 |
jMyles
|
baa27f53f7
|
Storing encrypted key (ie, pfrag) as part of PolicyGroup.
|
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
|
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 |
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
|
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 |