Commit Graph

1277 Commits (d83697648a0906d151981912809949892fdd6fe9)

Author SHA1 Message Date
David Núñez 3316315b93 Touchups to test_signature_verifier 2019-05-16 16:12:07 +02:00
David Núñez 33bc11a17c Add function check_serialized_coordinates to ReEncryptionValidator 2019-05-16 16:12:07 +02:00
David Núñez 19d3a8cf14 Touchups to some blockchain-related fixtures 2019-05-16 16:07:34 +02:00
David Núñez 7684bb103c Constructs funded_blockchain fixture from testerchain fixture
Gets rid of deployed_blockchain fixture
2019-05-16 16:07:33 +02:00
David Núñez a11d12a494 Move some local fixtures from CLI blockchain ursula to global fixtures 2019-05-16 16:07:33 +02:00
David Núñez 9698e43ae3 Simplify test_collect_rewards_integration in test_blockchain_ursula.py 2019-05-16 16:07:33 +02:00
David Núñez 50cce08d47 Remove ReEncryptionValidator.aliceAddress() since it's not used anymore 2019-05-16 16:07:33 +02:00
David Núñez 21d0969ac3 Unit tests for ReEncryptionValidator.validateCFrag() 2019-05-16 16:07:33 +02:00
David Núñez de208c1db1 Optimization in computeProofChallengeScalar as input is already parsed 2019-05-16 16:07:33 +02:00
David Núñez 068d783cfc Unit test for ReEncryptionValidator.computeProofChallengeScalar() 2019-05-16 16:07:33 +02:00
David Núñez 361c068aad Slashing economics fixture 2019-05-16 16:07:33 +02:00
David Núñez 77f2a5ab1b Integration test of ReEncryptionValidator constants. Skipped for the moment 2019-05-16 16:07:33 +02:00
David Núñez b3acbf3017 Unit tests for ECC arithmetic logic in ReEncryptionValidator (see #626) 2019-05-16 16:07:33 +02:00
David Núñez eaf79d70c6 Adds missing sanity checks in economics test. Also closes #831. 2019-05-16 16:07:33 +02:00
David Núñez e0cf8393e7 Generalize k1 check for cases when multiplier is not 0.5 2019-05-16 16:07:33 +02:00
David Núñez 6b8a3eb833 Additional sanity checks for coefficients k1 and k2 in token economics 2019-05-16 16:07:33 +02:00
szotov ba74b880d5 Few more comments 2019-05-15 16:57:55 +03:00
szotov 85a4ae1db3 Fix import errors 2019-05-15 11:35:41 +03:00
szotov 509bc7ceec Test example of avoiding some compiler changes 2019-05-15 11:35:41 +03:00
szotov da3ce7b185 More checks while upgrading 2019-05-15 11:35:40 +03:00
szotov 3a6c9794df Changed protection against zero addresses in contracts 2019-05-15 11:35:40 +03:00
szotov 86cabdd22d Added protection from destruction of the dispatcher's target 2019-05-15 11:35:40 +03:00
szotov d95ba9345e Added events to verifyState and finishUpgrade 2019-05-15 11:35:39 +03:00
szotov 6ecec014e7 Added protection for `verifyState` and `finishUpgrade` methods 2019-05-15 11:35:39 +03:00
szotov 4188c12eb1 Small refactoring of tests for the dispatcher 2019-05-15 11:35:38 +03:00
K Prasch c3ce32f393
Merge pull request #939 from vepkenez/937-alice-decrypt
decryption endpoint for alice
2019-05-08 08:19:00 -04:00
David Núñez e704e7290e Duplicated tests. See tests/characters/test_ursula_prepares_to_act_as_mining_node.py 2019-05-06 13:20:21 +02:00
Damon C ad532d9b78 remove unneeded key arguments 2019-04-30 11:09:47 -07:00
Damon C 5b1953f404 #937 decryption endpoint for Alice 2019-04-29 12:58:23 -07:00
Kieran Prasch 896b88213a
Respond to RFCs in PR #866 2019-04-24 20:05:51 +03:00
Kieran Prasch 7ca7eabe8f
Be slightly more specific about deployment gas; Advance failure cases to assist in debugging. 2019-04-22 23:18:51 +03:00
Kieran Prasch 42a1495047
Handling failed deployment transactions 2019-04-22 23:18:51 +03:00
Kieran Prasch 14a24d7085
Refine TokenEconomics implementation; Respond to RFCs on #866 2019-04-22 23:18:51 +03:00
Kieran Prasch 270c56dcc4
CLI deployment adjustments and post-rebase cleanup. 2019-04-22 23:18:51 +03:00
Kieran Prasch 13d4b5c448
Relocate staking methods to the Stake class, away from Actors; Staking API bug fixes and consistency check. 2019-04-22 23:18:51 +03:00
Kieran Prasch 593a852471
Cleanup CLI env var loading, include mining adjudicator in existing CLI env var tests. 2019-04-22 23:18:51 +03:00
Kieran Prasch 306978b71e
Add adjudicator agency to gas estimation script 2019-04-22 23:18:51 +03:00
Kieran Prasch e1e79c67ef
Updates estimate_gas to utilize TokenEconomics; Straggler renames and updates. 2019-04-22 23:18:51 +03:00
Kieran Prasch 00eaba0d00
Keep economic coefficients as decimal until explictly cast 2019-04-22 23:18:51 +03:00
Kieran Prasch a0bfb22c05
Introduce MiningAdjudicator deployer & agent; Deployment entry points and integration testing. 2019-04-22 23:18:51 +03:00
Kieran Prasch 0f0841c0a5
Expand TokenEconomics tests to consider the generation of deployment-ready parameters. 2019-04-22 23:18:51 +03:00
Kieran Prasch 2d943e6afb
Refactor stake as a self-validating insnatce; Introduce token economincs via dep. injection throughout tests and blockchain API. 2019-04-22 23:18:49 +03:00
szotov a42cee8e25 initialAmount -> totalSupply in token contract 2019-04-19 12:44:25 +03:00
szotov c25ed07b76 Apply suggestions from code review 2019-04-17 16:05:07 +03:00
szotov 7285d6ad91 Added names of constructor parameters in tests for MinersEscrow 2019-04-17 16:05:07 +03:00
szotov 2e2dc06dd5 Fix bug with period overflow in policy manager test 2019-04-17 16:05:06 +03:00
szotov f46229f8e2 Add re-stake to verifyState 2019-04-17 16:05:06 +03:00
szotov d643773002 Gas estimates for re-stake 2019-04-17 16:05:06 +03:00
szotov 2f26a3bb64 More tests for re-stake 2019-04-17 16:05:06 +03:00
szotov 586adbc302 Tests for re-stake 2019-04-17 16:05:05 +03:00
szotov fb7f134e70 Added reStake parameter to MinersEscrow 2019-04-17 16:05:05 +03:00
David Núñez b81a13b432 Testing creation of additional test accounts. It still fails. 2019-04-14 00:36:29 +02:00
David Núñez 41f60099d3 Use TesterBlockchain's test accounts 2019-04-12 07:52:15 +02:00
David Núñez 27046827cf Testing unassigned accounts and that accounts can send TXs 2019-04-12 07:52:15 +02:00
David Núñez 82e59786ef Test account generation of TesterBlockchain 2019-04-12 07:52:15 +02:00
David Núñez 01c466554a Don't use TesterBlockchain.ether_airdrop if it's already funded or can be done in the constructor 2019-04-12 07:52:15 +02:00
David Núñez 023083db64 Not enough "y'all" in "all y'all". Not enough test ETH, either. 2019-04-12 07:52:15 +02:00
David Núñez 8216d6b39f Simplify default test accounts creation in TesterBlockchain. 2019-04-12 07:52:15 +02:00
tuxxy fbe204ce17 Fix character-control revoke test by using a different label -- you can't grant access twice 2019-04-10 21:27:25 -06:00
tuxxy 71dc8a5cd1 Add 'add_active_policy' method on Alice 2019-04-10 20:02:31 -06:00
tuxxy 5b4f3da3d1 Modify revoke endpoint to accept label and bob's verifying key instead of the policy key 2019-04-10 20:02:31 -06:00
tuxxy 48150def7d Add id property to Policy 2019-04-10 20:01:08 -06:00
Kieran Prasch 9abd4e27fb
Respond to RFCs in PR #861 2019-04-06 12:40:34 -07:00
Kieran Prasch 13024ed048
Check for config root before removal; Run an ursula via mixed configs in test. 2019-04-06 12:38:09 -07:00
Kieran Prasch ed184942e3
Increase test coverage for nucypher help commands 2019-04-06 12:38:09 -07:00
Kieran Prasch ea20f88be4
Move destruction management before character initialization to handle failure modes involving semi-working configurations. 2019-04-06 12:38:09 -07:00
Kieran Prasch dd7f992277
nucypher remove docstring 2019-04-06 12:38:09 -07:00
Kieran Prasch e110632bb1
All characters destroy thier own config files, considering force 2019-04-06 12:38:09 -07:00
Kieran Prasch b691339f50
Destroy the configuration file itself; Attaching console emitter to click config. 2019-04-06 12:38:09 -07:00
Kieran Prasch 1479c78ea9
Tests show keyring multi-tennancy with config-based destruction 2019-04-06 12:38:09 -07:00
Kieran Prasch d59b9d63c1
Test describing a multi-tenant installation 2019-04-06 12:38:09 -07:00
David Núñez 713071025c Add first unit tests for ReEncryptionValidator contract 2019-03-31 10:39:40 +02:00
David Núñez bd44c7d65f WorkItem is now Task, and it also handles the output of re-encryption 2019-03-29 10:52:14 +01:00
David Núñez b8a5fc25eb Clarify evolution of penalty amount in test_mining_adjudicator 2019-03-29 10:46:52 +01:00
David Núñez ef75e241df Tests Bob sending wrong precomputed values. Improves test_mining_adjudicator 2019-03-29 10:46:52 +01:00
Kieran Prasch b0eb41e5ea
Twisted clock testing for the faucet 2019-03-26 11:35:57 -07:00
Kieran Prasch 06311630d2
Patch distribution interval in faucet testing 2019-03-26 11:35:57 -07:00
Kieran Prasch 87ba9c7b42
Beter exception handling for missing address when running from config ; Reprs for db models 2019-03-26 11:35:57 -07:00
Kieran Prasch 052c7346b0
deploy contracts via CLI in Felix tests 2019-03-26 11:35:57 -07:00
Kieran Prasch 40b9b204ac
Setting flask secret; Improved documentation and logging; Utilize constant_sorrow 2019-03-26 11:35:57 -07:00
Kieran Prasch 5686a8a889
Felix CLI entry point adjustments; Allow provider URI restoration from File 2019-03-26 11:35:57 -07:00
Kieran Prasch 2946024dec
Felix tests passing with database management 2019-03-26 11:35:57 -07:00
Kieran Prasch 3fbb5ef426
Felix database skeleton and registrtion view stubbing 2019-03-26 11:35:57 -07:00
Kieran Prasch ce39f92555
Felix CLI itself and tests to suit. 2019-03-26 11:35:57 -07:00
tuxxy 9cedc5ecd4 Fix leftover issues from rebase 2019-03-24 09:30:20 -06:00
tuxxy 90e4427680 Store 'active_policies' instead and finish revoke endpoint
Storing revocation kits was one approach, but it seems more useful to
store "active" policies, instead. I think this will probably assist in
future additions as well.
2019-03-24 09:30:20 -06:00
David Núñez 3f94b93df3
Merge pull request #830 from KPrasch/denominations
Base Denominations Management
2019-03-19 20:42:19 +01:00
Kieran Prasch b74d6e548a
NuWei -> NuNit 2019-03-18 12:31:08 -07:00
Kieran Prasch 686fffa9eb
Understand NU to act as a floor number caster for fractional NuNit values. 2019-03-18 12:31:08 -07:00
Kieran Prasch 2d518f8e62
Currency -> Token; Improve readability of blockchain constants 2019-03-18 12:31:08 -07:00
Kieran Prasch 091adbae71
Move NU and Stake to currency.py 2019-03-17 12:47:35 -07:00
Kieran Prasch 24d346069d
Several more assertions for mixed-types NU.__init__ 2019-03-17 11:50:08 -07:00
Kieran Prasch c069b0a2f9
Dont reinvent eth_utils! Port NU conversions to implement eth-utils to/from wei interfaces. 2019-03-15 09:55:45 -07:00
David Núñez f5eed5d787
Testing some edge cases for the NU class 2019-03-15 08:17:53 -07:00
Kieran Prasch b29a32e1a4
Docstrings and type hints for nucypher blockchin utils NU and Stake 2019-03-14 19:51:22 -07:00
Kieran Prasch 01bb9c1ef4
Upgrade to a dictionary for Ursula stake tracking. 2019-03-14 19:32:06 -07:00
Kieran Prasch 95c4cfe974
Dont update local stake cache in read-only operations 2019-03-14 16:50:11 -07:00
Kieran Prasch b68fb2a8b7
Divide stake tests reflect NU Implementation 2019-03-14 16:36:09 -07:00
Kieran Prasch d1dd66e27c
Port lower-level stake validators to us NU 2019-03-14 16:35:24 -07:00
Tux 5d990b2b71
Merge pull request #374 from szotov/multisig
Multi-signature contract with off-chain signing
2019-03-14 17:07:08 -06:00
Kieran Prasch 79ca05605d
Baseline tests for NU and Stake classes 2019-03-14 13:38:21 -07:00
Kieran Prasch 215bf5ad7f
Denomination management implementation with NU and Web3. 2019-03-14 13:38:19 -07:00
Kieran Prasch ec0104c444
Console painting for stake staging 2019-03-11 19:24:21 -07:00
szotov a491a7801c Fixes after rebase 2019-03-11 14:52:28 +03:00
szotov a1a4c106d8 Updates intercontract test 2019-03-11 14:46:50 +03:00
szotov a21b29fa4e Softer condition for number of signatures 2019-03-11 14:46:49 +03:00
szotov 9fdc82fabe Update solidity version for multisig 2019-03-11 14:46:49 +03:00
szotov 69552d3024 Added trustee for execution in the MultiSig contract 2019-03-11 14:46:48 +03:00
szotov f6f36ddbc2 Added owner management methods in the MultiSig contract 2019-03-11 14:46:48 +03:00
szotov 1aeca51f8d Added simple multisig contract 2019-03-11 14:46:48 +03:00
Kieran Prasch 91c5f565dc
Allow rewards to be collected to an alternate address. Tighter assertions on reward collection. 2019-03-09 18:29:44 -08:00
Kieran Prasch 0b62b288e9
Minimal gas price manage ment in tests; Assertions for reward collection via CLI. 2019-03-09 17:32:07 -08:00
Kieran Prasch 88ff212f3c
Post-rebase cleanup Pt. II. 2019-03-09 17:32:04 -08:00
Kieran Prasch f98fce348c
Dealing with the side effects of BlockchainPolicy updates 2019-03-09 17:31:28 -08:00
Kieran Prasch 244f0e0885
Update tests to accomodate staking CLI requirements: orders blockchain Ursulas, better fixture organization; Staking CLI integraton tests. 2019-03-09 17:31:28 -08:00
Kieran R. Prasch 2ebd3fc2d1
Missing integration test for BlockchainPolicy - working towards bug fixes. 2019-03-09 17:31:28 -08:00
Kieran R. Prasch bebe4db85c
Integrate native CLI and Staking CLI; numerous bugfixes. Failing reward collection test. 2019-03-09 17:31:26 -08:00
Kieran R. Prasch 46f674475e
Post rebase cleanup for stakling CLI over native CLI 2019-03-09 17:29:54 -08:00
Kieran R. Prasch bd9532bd87
post-rebase cleanup 2019-03-09 17:29:54 -08:00
Kieran R. Prasch dceabd8d04
Ensure allocation registry is passed onto test agency 2019-03-09 17:29:54 -08:00
Kieran R. Prasch 9a00a84f4c
Allow beneficiary allocation registry specification to accept an instance or filepath 2019-03-09 17:29:54 -08:00
Kieran R. Prasch 4073614229
Update nucypher-deploy tests to suit I/O changes 2019-03-09 17:29:54 -08:00
Kieran Prasch 12ee590085
Update deploy CLI to use string based domains; Add better registry management 2019-03-09 17:29:54 -08:00
Kieran Prasch 3b9c229963
Collect staking reward CLI 2019-03-09 17:29:54 -08:00
Kieran Prasch be885c237c
Divide stake CLI 2019-03-09 17:29:54 -08:00
Kieran Prasch 75bc63fd89
Tear wallets and wallet generation out of NucypherKeyring 2019-03-09 17:29:54 -08:00
Kieran Prasch 62a9c31f23
Examine stakes written via CLI on-chain 2019-03-09 17:29:54 -08:00
Kieran Prasch d7e42656df
Ursula CLI staking integration tests 2019-03-09 17:28:57 -08:00
Kieran Prasch a4b4928ea7
Toying with tests built for pygeth 2019-03-09 17:28:57 -08:00
Kieran Prasch 84ef320a4c
Updates policy encrypting key derivation language. 2019-03-06 16:39:02 -08:00
Kieran Prasch 1be1dab6c8
Respond to RFCs in PR #802. 2019-03-06 16:29:33 -08:00
Kieran R. Prasch c8e460a101
Controller usage touch-ups. 2019-03-06 13:52:45 -08:00
Kieran R. Prasch cb135577bd
Mocks keyring KDF in tests for performance; Updates control fixtures. 2019-03-06 13:52:45 -08:00
Kieran R. Prasch 5a4f0e3bbc
Completed E2E CLI lifecycle tests with the 'ETHDenver demo' narrative. 2019-03-06 13:52:45 -08:00
Kieran R. Prasch dae7d59768
Updates key languagse and key encodings in test; Uses latest modifer flags ordering 2019-03-06 13:52:45 -08:00
Kieran R. Prasch a9bab0e4ba
Fix malformed logging described in #724 and more 2019-03-06 13:48:22 -08:00
Kieran R. Prasch 35c1e19138
Fixes caught by character specifications; Formalize specification classes. 2019-03-06 13:48:22 -08:00
Kieran R. Prasch 37483fd481
Mock side channel class in CLI lifecycle test.... back to Unexpected Response DB Issues with Alice threading 2019-03-06 13:48:22 -08:00
Kieran R. Prasch ea4de4d95a
Top-level character controller class: Generic Controller usage (works for any character) 2019-03-06 13:48:22 -08:00
Kieran R. Prasch 3e202da0a4
Update tests to suit controller classes API 2019-03-06 13:48:22 -08:00
Kieran R. Prasch 30220a4ea1
Deprecate S3Bucket NodeStorage; Fininsh moving Banners. 2019-03-06 13:48:22 -08:00
Kieran R. Prasch bef3eacb92
E2E CLI Lifecycle test draft 2019-03-06 13:48:22 -08:00
MacLane Wilkison 86116706ff Change license notices in module headers to AGPL 2019-03-04 18:55:28 -08:00
jMyles e795cf5cde Some comments and require messages. 2019-02-24 21:46:35 -07:00
MacLane Wilkison fd46d74130
Apply suggestions from code review
Co-Authored-By: szotov <zotov89@mail.ru>
2019-02-24 12:48:30 +03:00
szotov 2e610fceed Small fixes 2019-02-23 12:37:20 +03:00
szotov 4c54bf2d3b Updates version of solidity 2019-02-23 12:37:19 +03:00
David Núñez 9d97d9bdf7 Precompute v value so Alice's address can be recovered from KFrag signature
This is one of the core commits of this PR
2019-02-23 12:37:17 +03:00
David Núñez ea9be85f60 Utility python function to recover a public key from an ECDSA signature 2019-02-23 12:37:16 +03:00
David Núñez 7391d29dfe KFrag validity message and Alice's ETH address are part of the evidence 2019-02-23 12:37:16 +03:00