Commit Graph

1072 Commits (b35e5b984000198303e9f4294cd786ef960939c2)

Author SHA1 Message Date
jMyles 4716d888ae Narrative test showing Bob getting his second CFrag. 2018-02-19 15:19:43 -08:00
jMyles 90504b4814 Proper exception instead of just an assertion. 2018-02-19 15:19:18 -08:00
jMyles 08f7d0a7c0 Tightened __repr__ with help from @kprasch. 2018-02-19 15:19:04 -08:00
jMyles 3c63ece916 Don't need this method anymore now that we have MessageKit. 2018-02-19 15:18:47 -08:00
jMyles 73306a9094 Save the WorkOrder the first time - the waiting thing wasn't making sense. 2018-02-19 15:18:32 -08:00
jMyles 7a0c21a0a5 We save WorkOrders in WorkOrderHistory now. 2018-02-19 15:16:50 -08:00
Justin Holmes c2d5bcdf8e
Merge pull request #160 from nucypher/introducing-umbral
A very large change; this introduces Umbral and many of the abstractions we created to go with it.
2018-02-19 14:59:38 -05:00
jMyles dbac4ba586 Illegal keys are bytes, not str. 2018-02-18 17:34:38 -08:00
jMyles 5900e4c2ed Better legality check (casting to bytes instead of letting kademlia cast to str) 2018-02-18 17:34:08 -08:00
jMyles 7865d1c230 dict-style looking of WorkOrder by Capsule. 2018-02-18 17:32:08 -08:00
jMyles b788ac39ee Cleaner getting of Ursula's interface ID, but this is still to be replaced by a Kit of some kind. 2018-02-18 17:31:50 -08:00
jMyles 0fa87828fd More WorkOrder logic; giving Bob more handles to grasp during his REST-client logic. 2018-02-18 17:29:08 -08:00
jMyles c52a5ce800 Typical byte-like methods. 2018-02-18 17:18:42 -08:00
jMyles 2cfd0b2ab3 InterfaceDHTKey class for more lookup flexibility. 2018-02-18 13:29:37 -08:00
jMyles bc6bd9d0a8 We'll just do use the dict-like interface from now on - makes the Bob parts way easier to read. 2018-02-18 13:28:44 -08:00
jMyles ba0bb10676 Why hasn't Character.hash always been a staticmethod? 2018-02-18 13:20:45 -08:00
jMyles 24b039e227 Beginning of implementation of WorkOrderHistory. 2018-02-18 13:20:43 -08:00
jMyles 307bae3e3a Giving Bob a better facility for tracking his CFrags. 2018-02-18 13:04:33 -08:00
jMyles 2b87cf3b8e It's on. Here we go. 2018-02-17 23:36:33 -08:00
jMyles 97c19b5693 TODO responding to @tuxxy's comment: https://github.com/nucypher/nucypher-kms/pull/160#discussion_r168861353 and https://github.com/nucypher/nucypher-kms/pull/160#discussion_r168861465 2018-02-17 17:26:24 -08:00
jMyles b4a66356df Fixes and TODOs in response to a number of comments from @tuxxy, @kprasch, and @cygnusv. 2018-02-15 15:55:40 -08:00
Justin Holmes 0af1b8c9f3
Merge pull request #166 from jMyles/introducing-umbral
Shortening DHT value headers to two bytes and deprecating lstrip as a way to eat headers.
2018-02-15 15:58:35 -05:00
jMyles fd4accf3f5 Header lengths and types implemented in network. 2018-02-15 12:31:16 -08:00
jMyles e7eeee937c header length constant. 2018-02-15 12:31:00 -08:00
jMyles f594d3dd2b Replacing header-length int with constant in Character. 2018-02-15 12:30:43 -08:00
jMyles 023d9705f0 Shortening headers to two bytes, and deprecating lstrip as a way to eat headers. See #111. Fixes #164. 2018-02-14 23:45:23 -08:00
Justin Holmes e95bd52420
Merge pull request #165 from jMyles/introducing-umbral
Fixing the last of the broken tests.  Also adding much more thorough tests for Character encryption APIs.
2018-02-15 02:42:20 -05:00
jMyles 3b9ae94b5b Fixed those last two pesky tests - now that we're splitting with MessageKit, we don't need to split again. 2018-02-14 00:19:26 -08:00
jMyles 6e4175d597 Far more thorough narrative for Character encryption APIs. 2018-02-14 00:19:09 -08:00
jMyles e9d9d0cc36 Free roving red lines. 2018-02-14 00:18:55 -08:00
jMyles 31dfbaa3e9 Moving over to MessageKit.to_bytes. 2018-02-14 00:18:31 -08:00
jMyles 424a75b4ef Get outta here with that. 2018-02-14 00:18:11 -08:00
jMyles 57971c447e Some tighter names. 2018-02-14 00:17:37 -08:00
jMyles 7b84024bd8 pubkey_sig_tuple is gone. 2018-02-14 00:17:12 -08:00
jMyles 112746363b MessageKit now casts strictly to ciphertext. Moved previous serialization to to_bytes, which we'll start to implement as a component-style interface. 2018-02-14 00:16:26 -08:00
jMyles 9325222885 OK, I'm buckling and finally providing Character.decrypt() - just a wrapper around their encrypting power, but now a public way to decrypt without specifying an actor or checking a signature. 2018-02-14 00:11:34 -08:00
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 2d92ed7dc7 New API renaming, and more style. 2018-02-13 17:50:46 -08:00
Kieran R Prasch 37a7fc5f84 Adds utility to get fingerprint from key. 2018-02-13 17:49:55 -08:00
Kieran R Prasch 895d17a31d Adds Pep and style changes. 2018-02-13 17:49:26 -08:00
Kieran R Prasch 7560fb8d10 adds pytest cache to gitignore 2018-02-13 17:48:55 -08:00
Kieran R Prasch 022087f67a Fixes Db bulk delete assertion; Renames several key test method calls 2018-02-13 17:37:40 -08:00
tuxxy 6428337ab5 Add broken sqlalchemy delete 2018-02-13 17:37:40 -08:00
tuxxy 31a091bcce Some fixes in keystor and related tests 2018-02-13 17:37:40 -08:00
jMyles 734a334a77 Walking back the seal change for now. 2018-02-13 17:35:12 -08:00
jMyles 19fd2c4343 This test is no longer needed with KFrag class. 2018-02-13 17:34:16 -08:00
jMyles 6ac0bee751 Extraneous comment. 2018-02-13 17:34:07 -08:00
jMyles 2f46a956e7 We can encrypt without a power now. 2018-02-13 17:32:15 -08:00