Commit Graph

2275 Commits (9cce9f1ae72598b8ead0f002cb92639a721b05a5)

Author SHA1 Message Date
Kieran Prasch 9cce9f1ae7 Include provider_uri in configuration. 2018-10-02 10:53:31 -07:00
jMyles 589e7e61a0 Annnd finally, the logic to actually prevent the replay attack: Learners always keep only the latest signed metadata for a particular node. 2018-10-02 19:41:41 +02:00
jMyles 6aeb36ef70 (failing) test showing Alice only accepting latest node by timestamp. 2018-10-02 19:41:02 +02:00
jMyles 217d7b49a8 A few test things: Adding MockRestMiddleware where appropriate and expressly setting Ursula's verified_stamp status to False to show that it gets set to True during verification. 2018-10-02 17:33:53 +02:00
jMyles 8d39418a72 Caching verified_node status. 2018-10-02 17:33:07 +02:00
jMyles 369e87e829 Signed interface info messages includes timestamp. 2018-10-02 17:32:46 +02:00
jMyles 1ac448d4eb Vlad now needs to steal the timestamp in the simple case. 2018-10-02 17:32:23 +02:00
jMyles cb2d613cdb Separating timestamp and timestamp_bytes. 2018-10-02 17:32:09 +02:00
jMyles 58db9fdc12 Weaving timestamp into the proper inits. 2018-10-02 17:31:32 +02:00
jMyles 7c4f3ef2f6 Because we now only validate metadata in some cases during learning, we need to ensure that nodes are fully verified before remembering them. 2018-10-02 17:30:50 +02:00
jMyles 2d67007017 Adding notes to places where we assume that federated notes will accept other federated nodes - See #466. 2018-10-02 17:30:18 +02:00
jMyles 443ea93101 Moving the Learner init down so that it can use middleware. 2018-10-02 17:29:05 +02:00
jMyles ccadf17158 Setting timestamp bytes at interface signing time. 2018-10-02 11:52:14 +02:00
jMyles 570d5a6a1f Timestamp property function. 2018-10-02 11:51:04 +02:00
jMyles 912bd169e2 Let's reimagine the timestamp as a property, proxied in the same pattern as the interface signature (and, not coincidentally, generated in the same scope and time). 2018-10-02 11:47:57 +02:00
Tux 62b8184354
Merge pull request #457 from KPrasch/federated-cli
[WIP] Simulate CLI cleanup
2018-09-28 18:34:35 -06:00
Tux 6fb6387e78
Merge pull request #450 from tuxxy/arrangement-signing
Return 400 if arrangements aren't signed
2018-09-28 18:26:13 -06:00
tuxxy 18f58361af Return 400 status code when an arrangement isn't signed 2018-09-28 17:37:58 -06:00
Tux 1fe6fbc2ef
Merge pull request #435 from nucypher/kokonusswasser
Kokonusswasser
2018-09-28 17:32:34 -06:00
Kieran Prasch 1dc519989a Fixed ImportError 2018-09-28 14:51:03 -07:00
K Prasch 8e61f19c55
Merge pull request #436 from tuxxy/ursula-timestamp
Add timestamp on Ursula
2018-09-28 12:20:41 -07:00
tuxxy bd3f19c7e7 Add test for Ursula serialization 2018-09-28 12:47:12 -06:00
tuxxy f2f8a8bece Add timestamp to Ursula for serialization
Add timestamp to deserialized vars in verify_node
Add timestamp when deserializing from batch
2018-09-28 12:47:12 -06:00
K Prasch e6721bdbdb
Merge pull request #453 from KPrasch/optimze-imports
Optimize Imports Project-Wide
2018-09-28 10:21:08 -07:00
K Prasch a5d67451df
Merge pull request #452 from KPrasch/touch-ups
Cleanup and Touch ups
2018-09-28 10:20:43 -07:00
K Prasch b700ae9812
Merge pull request #447 from KPrasch/federated_node
Running federated node via CLI
2018-09-27 16:26:42 -07:00
Kieran Prasch 542a1422e1 Update decentralized simulation to latest API, automates simulation setup 2018-09-26 14:35:08 -07:00
Kieran Prasch e60706793a Optimize imports project-wide 2018-09-25 20:27:27 -07:00
Kieran Prasch f8aa879ac1 touch-up character function signitures; touch-up blockchain test assertion errors 2018-09-25 20:26:49 -07:00
Kieran Prasch da86c874fc Move chain-backend signing methds to BlockchainInterface 2018-09-25 20:26:49 -07:00
Kieran Prasch 6d2f9f9abb Remove arming network checks 2018-09-25 20:26:49 -07:00
Kieran Prasch 370f8804e5 Add Blockchain.connect with a provider URI string passed to BlockchainInterface 2018-09-25 20:26:49 -07:00
Kieran Prasch 60180f8b2b Cleanup blockchain policy function signatures 2018-09-25 20:26:49 -07:00
Kieran Prasch dadb49c4ce Cleanup blockchain defaults and constants integration 2018-09-25 20:26:49 -07:00
Kieran Prasch 7e04dd117b Use static blockchain constants, removes ConstantSorrow usage for static values 2018-09-25 20:26:44 -07:00
Kieran Prasch 76b87da09a Pin version of apistar; post update 2018-09-25 11:10:02 -07:00
Kieran Prasch d84014a35f Cast constant_sorrow constant to int 2018-09-25 10:15:01 -07:00
Kieran Prasch 67df78fcbc Quiet down ursula init logger 2018-09-25 09:51:00 -07:00
Kieran Prasch ef31fb944c Resolve CI ImportErrors 2018-09-25 09:47:42 -07:00
Kieran Prasch d6fc416a79 remove extra time travel (moved to ursula fixture) 2018-09-25 09:28:48 -07:00
Kieran Prasch 17d35a23ed cleanup stale consider_arrangement certificate filepaths 2018-09-24 18:43:01 -07:00
Kieran Prasch 4b7fcd318e split Alice.grant test by operating mode; Cleanup BlockchainPolicy in preperation for futher integration. 2018-09-24 18:43:01 -07:00
Kieran Prasch 540e25ac57 Fix circleCI stale filepath for eth-contracts build. 2018-09-24 18:43:01 -07:00
Kieran Prasch 922eb9ab5a Pass-through caught MinerAgent.sample's exception message when Alice recruits Ursulas from the blockchain 2018-09-24 18:43:01 -07:00
Kieran Prasch d02a8bc0bf split Alice and Bob fixtures by operating mode; Cleanup cleanup logic, everywhere 2018-09-24 18:43:01 -07:00
Kieran Prasch c3923e2537 Push from_config up one level into character 2018-09-24 18:43:01 -07:00
Kieran Prasch 293f9c158c Deprecate CLI demo module; Respond to RFC & cleanup 2018-09-24 18:42:42 -07:00
Tux 27fc4d4d50
Merge pull request #446 from jMyles/character-crypto
Cleaned up cert handling; demo runs again.
2018-09-24 13:52:22 -06:00
Kieran Prasch d615587e64 Once again, allow mypy failures.. for now 2018-09-22 21:24:35 -07:00
Kieran Prasch 9b04aee6d0 Update tests with updates to configuration and missleware 2018-09-22 21:05:11 -07:00