Commit Graph

98 Commits (7dec86509463b9e34f8c66e19223b13af8ad2683)

Author SHA1 Message Date
jMyles 9f41dfd06c Using KFrag with BytestringSplitter. Feels good. 2017-12-04 14:14:56 -08:00
jMyles d250a2bd4a find_n_ursulas no longer returns a list. 2017-11-21 22:13:35 -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 c0639349c7 Changed method to 'enact_policy'. Move HRAC to URL instead of HTTPS payload. 2017-11-20 19:23:25 -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 63a10aef67 Changing 'animate' to 'enact'. 2017-11-18 19:21:32 -08:00
jMyles 31687af4f3 Convenience method for creating Characters from pubkey_sig_bytes. 2017-11-18 19:17:52 -08:00
jMyles c0920b709d Splitting on the other end of the wire works! 2017-11-18 14:33:54 -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 7c3b62fb58 Beginning of creation of Policy from bytes payload. 2017-11-18 13:33:31 -08:00
jMyles 9782649a5b Policy payload encryption for Ursula. 2017-11-18 13:33:31 -08:00
jMyles c426714622 Policy now gets Bob injected. 2017-11-18 13:33:31 -08:00
jMyles 48174e722e Implemented HRAC; pruned some other legacy code. 2017-11-10 15:34:52 -08:00
jMyles 49f99fc640 Added Bob's public key to secret part of TreasureMap DHT key. Also lots of sanding / code simplification. 2017-11-10 10:47:07 -08:00
jMyles b66eccb251 Working stop-propagation for both Ursula interfaces and TreasureMaps. 2017-11-10 02:04:01 -08:00
jMyles 6a5d0da4bf Test organization: moved utility functions to their own module. 2017-11-09 16:23:38 -08:00
jMyles 10f3fc8e6c TreasureMap now contains real Ursula information. Fixes #59. Fixes #64. 2017-11-06 20:42:21 -08:00
jMyles 745e5a43b4 Beginning of verifying Ursula's interface. 2017-11-05 19:30:03 -08:00
jMyles 5b570b046e Very close to complete Ursula -=> Bob flow for treasure map, but strange error when trying to run coroutine. 2017-11-03 18:37:27 -07:00
jMyles 991a2279d5 Uses de/serialization from umbral. 2017-11-03 18:37:27 -07:00
jMyles a20d8b06de Temporary serialization logic. 2017-11-03 18:37:27 -07:00
jMyles 17adc4c566 More test re-organization. Shows failure of ec.serialize. 2017-11-03 18:37:27 -07:00
jMyles a07e082e6a Working toward policy payload for use over network. 2017-11-03 18:37:21 -07:00
tux 0ae9d007c8 Implement generate_rekey_frags method on Alice
This doesn't include a test for this function. This is basically a tiny
wrapper around the crypto api for generating the key frags.

I'll leave it to JMyles to implement this how he wants.

Fix syntax error

Skip erroring test
2017-10-23 14:20:15 -07:00
jMyles 24b1f4fa92 Bringing policy logic back in line with protocol with new crypto tooling. 2017-10-18 15:48:20 -07:00
jMyles b5033e32f6 Lots of housekeeping on various Alice <=-=> Ursula activity in policy. 2017-10-18 15:48:11 -07:00
jMyles 8f3e379ae4 Policy now raises Ursula.NotFound if we havne't found an Ursula yet. 2017-10-18 15:48:11 -07:00
jMyles 9d0fe9e181 Compat. with public keys defaulting to bytes instead of tuple. 2017-10-16 20:21:45 -07:00
jMyles adf71c80c8 Seal now implements dunders instead of custom methods. 2017-10-16 18:17:53 -07:00
jMyles 5390c8fce5 Fixed PolicyGroup to accept Bob, cleaned up tests and removed stale mock material. 2017-10-16 18:16:01 -07:00
jMyles 506f0f81cd Character encryption tests.
Note that CryptoPower.decrypt and Character.encrypt_for have fake logic until EncryptingPower is implemented.
2017-10-16 18:16:01 -07:00
jMyles 8cf64dfcc6 PolicyGroup now uses Bob instead of a public key. One test fails until we get EncryptingPower working. 2017-10-16 18:12:14 -07:00
tuxxy c699fd3e18 Use keccak_digest instead of signature_hash or content_hash
Really use keccak_hash

keccak_hash -> keccak_digest

Fix another thing
2017-10-10 20:32:35 -06:00
tuxxy 3b3f44038c Fix tests and update imports to reflect nkms.crypto.api 2017-10-10 20:18:24 -06:00
jMyles 9e651af46b Import statements changed while we reorganize. 2017-10-10 13:02:45 -07:00
jMyles 08a3910ce9 Yanked and out of - they're now only accessible in . 2017-10-09 15:58:38 -07:00
jMyles 989f0193d7 Introducting CryptoPower and PowerUp. Signing powers have been pulled out of KeyRing and now use the PowerUp system. 2017-10-06 17:42:18 -07:00
jMyles 208db55d4c Removed the awful list comp tuple pack in favor of @michwell's much better way. If anybody ever accuses me of writing that thing, I reserve the right to say I was hacked. 2017-10-04 13:08:41 -07:00
jMyles 004437e8f6 Policy models are now worked out such that the TreasureMap is stored on a 'free tier' k:v DHT. 2017-10-03 21:13:46 -07:00
jMyles 40171da964 Two-tier ID generation. 2017-10-03 17:52:28 -07:00
jMyles c9983482d3 A little more logic for Alice's initial activity to craft an Offer and find Ursula. 2017-10-03 17:52:28 -07:00
jMyles a76248361b First semblance of two-part negotiation Alice -=> Ursula. 2017-10-03 17:51:49 -07:00
jMyles c0d401c9ca Makes Policy.id a property to prepare for id building by Bob and Ursula. 2017-09-27 09:58:19 -07:00
jMyles ec01307dc9 PolicyManager for making PolicyGroups. 2017-09-26 12:59:06 -07:00
jMyles c55c0302e7 Using keccak-256 for hashing. Closes #45. 2017-09-26 12:59:06 -07:00
jMyles 9e314d8b81 Added more Policy and PolicyGroup logic. Now conforms to @tux's crypto APIs. 2017-09-26 12:59:06 -07:00
jMyles f6b9111b63 First swing at Policy and PolicyGroup. 2017-09-26 12:59:06 -07:00