jMyles
|
e1862657a8
|
Slightly tightened encrypt_for logic.
|
2018-02-14 00:07:55 -08:00 |
jMyles
|
30d273c43b
|
verify_from can take bytes too. It can probably take other types and work, but we'll just hint MessageKit and bytes. We cast to bytes anyway.
|
2018-02-14 00:04:05 -08:00 |
Kieran R Prasch
|
895d17a31d
|
Adds Pep and style changes.
|
2018-02-13 17:49:26 -08:00 |
jMyles
|
734a334a77
|
Walking back the seal change for now.
|
2018-02-13 17:35:12 -08:00 |
jMyles
|
6ac0bee751
|
Extraneous comment.
|
2018-02-13 17:34:07 -08:00 |
jMyles
|
e3f347979e
|
No more metabytyes!
|
2018-02-13 15:29:35 -08:00 |
jMyles
|
4b1cef51bf
|
Now we pass the whole capsule!
|
2018-02-13 15:10:25 -08:00 |
jMyles
|
481e56653c
|
capsules instead of pfrags! So nice.
|
2018-02-13 13:28:51 -07:00 |
jMyles
|
261d501bd8
|
Grabbing contract from keystore instead of dict.
|
2018-02-13 11:08:18 -08:00 |
jMyles
|
0def1591fc
|
Starting deprecation of _contracts - commented out some logic for now.
|
2018-02-13 11:07:56 -08:00 |
jMyles
|
e45712a75b
|
"Non-decrypt" flow for Character signature validation.
|
2018-02-13 11:07:39 -08:00 |
jMyles
|
8e77ee97d0
|
hrac as hex (DB entry will now match URL).
|
2018-02-13 07:42:40 -08:00 |
jMyles
|
e55dda7ace
|
Seal needs a fingerprint too.
|
2018-02-12 12:59:31 -08:00 |
jMyles
|
cf7b0053fd
|
We don't represent a public key as a tuple anymore.
|
2018-02-12 12:59:18 -08:00 |
jMyles
|
ee93749c20
|
New Policy logic to work with MessageKit and Keystore. Needs more cleanup.
|
2018-02-12 12:58:38 -08:00 |
jMyles
|
7551d79fd6
|
Constructing message_kit with Signature - we'll do this a better way soon.
|
2018-02-12 12:58:10 -08:00 |
jMyles
|
0c32deab98
|
Splitting a MessageKit to get Policy.
|
2018-02-11 00:52:25 -08:00 |
jMyles
|
f807113d7d
|
verify_from now takes a MessageKit.
|
2018-02-11 00:52:10 -08:00 |
jMyles
|
5358916ea5
|
encrypt_for now takes plaintext, returns a MessageKit.
|
2018-02-11 00:51:21 -08:00 |
jMyles
|
a3a05d9de0
|
powers_and_keys can now take UmbralPublicKeys.
|
2018-02-11 00:50:22 -08:00 |
jMyles
|
1eef746f7c
|
Alice implements new kfrag generation method.
|
2018-02-10 19:09:29 -08:00 |
jMyles
|
44d9820f7b
|
Alice now generates KFrags with umbral. Woo!
|
2018-02-10 19:09:28 -08:00 |
tuxxy
|
5b73db801e
|
PEP8 changes to characters
|
2018-02-09 21:15:50 -07:00 |
jMyles
|
50aca7d66f
|
Reflecting new location for fragments.
|
2018-02-07 16:22:28 -08:00 |
tuxxy
|
f1a6689b7a
|
Use umbral.KFrag and KFRAG_LENGTH for set_policy
|
2018-02-07 03:31:27 -07:00 |
jMyles
|
c6d050aca7
|
Making explicit which address and port are for Ursula's DHT interface.
|
2018-02-06 17:16:21 -08:00 |
jMyles
|
cc80a065e0
|
Character.from_public_keys now takes a list of tuples.
|
2018-02-06 17:15:53 -08:00 |
jMyles
|
12f7990a09
|
Alice script properly sends a Contract and then, subsequently, sends a KFrag.
|
2018-02-06 03:08:23 -08:00 |
jMyles
|
63d7990aa6
|
Contract Consideration is now a REST activity.
|
2018-02-05 23:30:07 -08:00 |
jMyles
|
de3d9e6c01
|
Create an Ursula from a REST URL. Why not?
|
2018-02-05 23:30:01 -08:00 |
jMyles
|
672f796965
|
Some style tweaks for Character.
|
2018-02-05 23:08:55 -08:00 |
jMyles
|
3db71115f6
|
Characters can now be created from either a signing or encryption key. Fixes #156.
|
2018-02-05 11:25:17 -08:00 |
jMyles
|
b482c7a1be
|
Only tell PowerUps to generate keys if the Character is_me.
|
2018-02-05 11:05:28 -08:00 |
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 |
jMyles
|
4c507fe22d
|
Some cleanup; better docstring for Character.__init__
|
2017-11-21 20:20:15 -08:00 |
jMyles
|
4ff94f385b
|
Ursula can't just willy-nilly spin up an in-memory db anymore.
|
2017-11-21 12:04:33 -08:00 |
jMyles
|
83e63a2ffe
|
Warning when using default DB for Ursula, which does not persist.
|
2017-11-21 09:38:04 -08:00 |
jMyles
|
4563ef2eca
|
HRAC in URL as hex instead of encoded bytes.
|
2017-11-20 19:49:43 -08:00 |
jMyles
|
17ff9a37cf
|
Changed 'set_kfrag' to 'set_policy'.
|
2017-11-20 19:19:37 -08:00 |
jMyles
|
05a9cb99ba
|
Was catching the wrong ImportError.
|
2017-11-20 19:19:18 -08:00 |
jMyles
|
522c016f53
|
Moving REST App from test_utilities to Ursula.
|
2017-11-19 11:58:33 -08:00 |
jMyles
|
38933d59a0
|
REST Logic for Policy. Still a problem, though - RekeyFrag can't be added to KeyStore - see #126.
|
2017-11-18 19:21:36 -08:00 |
jMyles
|
31687af4f3
|
Convenience method for creating Characters from pubkey_sig_bytes.
|
2017-11-18 19:17:52 -08:00 |
jMyles
|
5fdac5d345
|
Ursula checks Alice's signature on the payload; still some logic to work out.
|
2017-11-18 13:33:32 -08:00 |
jMyles
|
753905f04f
|
Ursula receives a Policy.payload via REST.
|
2017-11-18 13:33:31 -08:00 |
jMyles
|
c426714622
|
Policy now gets Bob injected.
|
2017-11-18 13:33:31 -08:00 |
jMyles
|
711d99b109
|
IntegrityError block for adding a kFrag that already exists.
|
2017-11-18 13:33:31 -08:00 |
jMyles
|
c61ea7f76e
|
Implementing keystore in view.
|
2017-11-18 13:33:31 -08:00 |
jMyles
|
ec07b241c8
|
Ursula now makes a KeyStore using in-memory sqlite if none is provided.
|
2017-11-18 13:33:31 -08:00 |
jMyles
|
0fa2750e6f
|
Ursula now takes a KeyStore.
|
2017-11-18 13:29:55 -08:00 |
jMyles
|
531e3c15c2
|
Ursula endpoint for receiving a new kfrag.
|
2017-11-18 13:29:55 -08:00 |