Commit Graph

4319 Commits (718a5244dc6dbc58173dd2d11c463079fb45d506)

Author SHA1 Message Date
tuxxy 68a8dda820 Add trezor[ethereum] dependency in dev-requirements 2019-07-11 15:39:06 -06:00
tuxxy bdb6b00813 Move trezor specific imports to the Trezor.__init__ 2019-07-11 15:39:06 -06:00
tuxxy f107980c25 Add tests for device CLI skeleton 2019-07-11 15:39:06 -06:00
tuxxy 806cced960 Add basic nucypher device cli entry point skeleton for testing 2019-07-11 15:39:06 -06:00
tuxxy c8e3a63a98 Move mock_trezorlib et al to conftest in tests.cli 2019-07-11 15:39:06 -06:00
tuxxy 44c218743b Move tests from wallet to device 2019-07-11 15:39:06 -06:00
tuxxy e4182b2b05 Add test for _reset and other unimplemented methods 2019-07-11 15:39:06 -06:00
tuxxy 438fe9ba7d Add test for call_handler_decorator and fix method declarations 2019-07-11 15:39:06 -06:00
tuxxy dc639b023c Add __handle_device_call decorator for handling device API side effects 2019-07-11 15:39:06 -06:00
tuxxy 5db818e522 Add reset and configure abstractmethods to TrustedDevice 2019-07-11 15:39:06 -06:00
tuxxy b7ed240f41 Add abstractmethod for sign_eth_transaction on TrustedDevice 2019-07-11 15:39:06 -06:00
tuxxy 632aa8c3e6 Add passing tests for trezor backend and change imports to work with mocking 2019-07-11 15:39:06 -06:00
tuxxy f92d0f9ad3 Implement signing and verifying methods for the Trezor backend
Fix abstractmethod verify_message signature
2019-07-11 15:39:06 -06:00
tuxxy e2ff59f508 Add skeleton for a Trezor hardware backend 2019-07-11 15:39:06 -06:00
tuxxy c8f26dc03a Add hardware module w/ TrustedDevice ABC for hardware staking 2019-07-11 15:39:06 -06:00
David Núñez 422291252b
Merge pull request #1029 from nucypher/alhambra-verde
[EPIC] Alhambra Verde - Introduce Staker and Worker Roles
2019-07-06 10:37:13 +02:00
David Núñez 2da1c4571b Some pending TODOs 2019-07-05 13:26:05 +02:00
David Núñez e315b2ade2 Apply suggestions from code review: Fix docs
Co-Authored-By: Sergey <zotov89@mail.ru>
Co-Authored-By: MacLane S Wilkison <maclane@nucypher.com>
2019-07-04 11:23:51 +02:00
David Núñez afbcff6b04 Introduce make_ursula_for_staker test utility, instead of activate_idle_staker fixture 2019-07-04 11:23:51 +02:00
David Núñez 41064ce194 Actors: @cache_transaction -> @save_receipt; self._transaction_cache -> self._saved_receipts 2019-07-04 11:23:51 +02:00
David Núñez a161af97ff Optimizations to SignatureVerifier (thanks @szotov) 2019-07-04 11:23:51 +02:00
David Núñez b4790ce976 Fix estimate_gas script: Adjudicator contract was already deployed. 2019-07-04 11:23:51 +02:00
David Núñez b301f02372 #1090: Use N=3 in test_blockchain_ursulas_reencrypt to reduce failures 2019-07-04 11:23:51 +02:00
David Núñez ad2d63fd5e Touchups to test_staker 2019-07-04 11:23:51 +02:00
David Núñez 9d0089102e Some improvements to PolicyManager and StakingEscrow deployer tests. See #1102 2019-07-04 11:23:51 +02:00
David Núñez f77c46bbe4 Basic tests of AdjudicatorDeployer and slashing with AdjudicatorAgent. 2019-07-04 11:23:51 +02:00
David Núñez fa9f8b39b5 Obtain Adjudicator public parameters in AdjudicatorAgent 2019-07-04 11:23:51 +02:00
David Núñez 051bbbc02f Use testerchain.client.sign_message() in tests for EIP191 signatures 2019-07-04 11:23:51 +02:00
David Núñez f43365ca93 First stub of AdjudicatorAgent tests 2019-07-04 11:23:51 +02:00
David Núñez 31a40ab86c Deploy Adjudicator and instantiate AdjudicatorAgent singleton in agency fixture 2019-07-04 11:23:51 +02:00
David Núñez 3ad451658c AdjudicatorAgent: method to check evaluated cfrags; set gas in evaluate_cfrag() 2019-07-04 11:23:50 +02:00
David Núñez 16a6ec911f AdjudicatorDeployer sets Adjudicator in StakingEscrow 2019-07-04 11:23:50 +02:00
David Núñez fd3b8603fa Touchups in some tests 2019-07-04 11:23:50 +02:00
David Núñez 531f9e6750 Disallow marking CFrags as evaluated when signatures fail 2019-07-04 11:23:50 +02:00
David Núñez b80d1df105 Introduce @cache_transaction decorator. Use it in actor methods. 2019-07-04 11:23:50 +02:00
David Núñez 05a7a78c49 First version of AdjudicatorAgent and Investigator actor. Closes #931 2019-07-04 11:23:50 +02:00
David Núñez 5b530430dd Draft test for learning about worker with insolvent Staker. See #1075 2019-07-04 11:23:50 +02:00
David Núñez 3cdeba3c0b First stub of non-staking staker and worker fixtures. Closes #1035 2019-07-04 11:23:50 +02:00
David Núñez f6fac7c073 Adapting other adjudicator tests and gas estimation to latest changes 2019-07-04 11:23:50 +02:00
David Núñez 28eb4a16f1 Use blockchain_ursulas in test_adjudicator 2019-07-04 11:23:50 +02:00
David Núñez dc8f772822 Adjudicator checks signed stamp by Worker 2019-07-04 11:23:50 +02:00
David Núñez 1fbd679ff7 Include Ursula's identity evidence in WorkOrder and Evidence for slashing 2019-07-04 11:23:50 +02:00
David Núñez e53415e8b0 On-chain verification of EIP191 signatures now supports versions 0 and E 2019-07-04 11:23:50 +02:00
David Núñez ba5da0dfec Verify EIP191 signatures in SignatureVerifier
Not really an EIP191-compliant method, as it only supports version E, but this is what we currently use in nucypher
2019-07-04 11:23:50 +02:00
David Núñez 29a53c4392 Added nucypher.crypto.api.sha256_digest(). 2019-07-04 11:23:50 +02:00
Kieran Prasch 420c30f079 Respond to RFCs in PR #1089 2019-07-04 11:23:50 +02:00
Kieran Prasch 46e424d49d Pretending to consume BlockchainPower in actor and agent tests. 2019-07-04 11:23:50 +02:00
Kieran Prasch 68b8a2735d Returning to a single-account BlockchainPower;TODO annotations for BlockchainPower. 2019-07-04 11:23:50 +02:00
Kieran Prasch e56245565b Ensuring Alice has a writable BlockchainInterface, minimally. 2019-07-04 11:23:50 +02:00
Kieran Prasch 552fc461fc Updates estimate gas with new Testerchain API, completely removes calls to .transact() in nucypher nameapce. 2019-07-04 11:23:50 +02:00