Commit Graph

148 Commits (64f9f8c5509a31d941e8ff39e056058a43020fcd)

Author SHA1 Message Date
jMyles 64f9f8c550 Clearing up verify_from logic and adding some TODOs which are worth taking some time to consider. 2018-02-14 00:11:15 -08:00
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