Commit Graph

1623 Commits (45bf82b0339172fdbffc5939444f461b741f05e2)

Author SHA1 Message Date
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
szotov ae15b4ac35 [KMS-ETH]- Added DHT key publishing 2018-02-22 17:18:57 +03:00
szotov 9643667c11 [KMS-ETH]- Enhanced Government and Dispatcher contracts, added some tests for Government contract, updated README.MD for proxy 2018-02-21 19:33:21 +03:00
szotov f84a341201 [KMS-ETH]- Tests for government contract 2018-02-20 19:04:58 +03:00
jMyles 1cdc0cad80 Some DHT cleanup. 2018-02-19 15:21:06 -08:00
jMyles bb279fa954 Fixture needs to include (or at least, works better if it includes) Alice's public encryption key. 2018-02-19 15:20:40 -08:00
jMyles 1301f43cda Final narrative test for Bob's Adventure. 2018-02-19 15:20:26 -08:00
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
szotov c4bd2d061a [KMS-ETH]- Added contract for upgrade management 2018-02-16 19:30:15 +03: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
szotov 43cd5e6706 [KMS-ETH]- Added escrow for vesting 2018-02-14 18:14:34 +03: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