Commit Graph

705 Commits (c26f5e6d5b53b57a8d6aa84dcb607071387ea228)

Author SHA1 Message Date
jMyles c26f5e6d5b Better way to get public keys. 2018-02-24 01:13:40 -08:00
jMyles 6d38ff2509 privkey is not _privkey. 2018-02-24 00:50:28 -08:00
jMyles 49005ae250 generate_kfrags all the way down. 2018-02-24 00:50:09 -08:00
jMyles 62c8493840 Pushing generate_kfrags downward so as to make private key... private. 2018-02-24 00:49:40 -08:00
jMyles f42576e439 Major simplification of encrypt_for. 2018-02-24 00:48:56 -08:00
jMyles 3a9a8ed752 Don't need to lookup the actor any more. 2018-02-24 00:48:30 -08:00
jMyles 872cef81a2 Smoothing out Powers; redlines through plenty of obselete functionality surrounding path keys in EncryptingPower. 2018-02-23 23:36:40 -08:00
jMyles f89d13c4a0 Seal -=> SignatureStamp 2018-02-23 22:39:10 -08:00
jMyles 760e0a8129 Reflectin refractor of umbral.umbral to umbral.pre. 2018-02-23 22:02:32 -08:00
jMyles 9a5bdb4061 Don't need _contracts anymore. See #127. 2018-02-23 21:47:49 -08:00
jMyles c7d2d97d72 More cleanups throughout Character. 2018-02-23 21:41:54 -08:00
jMyles 78cf0b66de Better docstring and type hint for generate_kfrags. 2018-02-23 21:38:46 -08:00
jMyles 57e3fc4f51 Import fixes and other PEP8 stuff. 2018-02-23 21:37:41 -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
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
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
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 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 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