Commit Graph

180 Commits (faf5469ff40c224111a7df02e4c5717d422edace)

Author SHA1 Message Date
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 713071025c Add first unit tests for ReEncryptionValidator contract 2019-03-31 10:39:40 +02: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
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
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
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 7391d29dfe KFrag validity message and Alice's ETH address are part of the evidence 2019-02-23 12:37:16 +03:00
szotov a6fa4df610 Readability for adjudicator tests 2019-02-23 12:37:14 +03:00
szotov 702c6b8384 Enhanced intercontract test using adjudicator contract 2019-02-23 12:37:13 +03:00
szotov 0f44c0857e Added more tests for adjudicator 2019-02-23 12:37:12 +03:00
szotov f809703300 Fixed adjudicator test 2019-02-23 12:37:12 +03:00
szotov 01fb0ce7d6 Fixed errors with web3 `soliditySha3` and `sha3` methods 2019-02-23 12:37:12 +03:00
szotov 92af87778f Events for the MiningAdjudicator 2019-02-23 12:37:11 +03:00
szotov fa190cd27a Calculating the penalty and reward in the slashing method 2019-02-23 12:37:10 +03:00
szotov 24907e5065 Upgradability for the MiningAdjudicator contract 2019-02-23 12:37:10 +03:00
David Núñez 57a191b3c9 UnquestionableEvidence --> IndisputableEvidence 2019-02-23 12:37:09 +03:00
David Núñez 1b2a916935 Missing changes from 'overseer' to 'adjudicator' 2019-02-23 12:37:09 +03:00
David Núñez 450c1c64bc Shame on you, Ursula. 2019-02-23 12:37:08 +03:00
David Núñez cd8b265917 Defining some TODOs for later PRs 2019-02-23 12:37:07 +03:00
David Núñez 525635a304 Get precomputed values for U1 and U2 points 2019-02-23 12:37:06 +03:00
David Núñez 4ec3ea9abd Hard-code Y coordinate of UmbralParameter.U 2019-02-23 12:37:06 +03:00
David Núñez 03f050d499 We don't "challenge" the miner's work anymore. We now "evaluate" them. 2019-02-23 12:37:05 +03:00
David Núñez 2f8e956f5c Renaming ChallengeOverseer to MiningAdjudicator everywhere 2019-02-23 12:37:04 +03:00
David Núñez 4d9c0e794e ChallengeOverseer is now MiningAdjudicator 2019-02-23 12:37:04 +03:00
David Núñez a0970d736d Comment some tests in ChallengeOverseer 2019-02-23 12:37:03 +03:00
David Núñez 13cf37a8e5 Methods to compute proof's challenge scalar in Python and Solidity 2019-02-23 12:37:02 +03:00
David Núñez 033ea238cb Test consistency of Umbral and ChallengeOverseer.extendedKeccakToBN 2019-02-23 12:37:02 +03:00
David Núñez 0797b79dcb Adapt nucypher to new Umbral release 2019-02-23 12:37:01 +03:00
David Núñez 200a84a150 Fix re-encryption fixture in test_challenge_overseer 2019-02-23 12:37:01 +03:00
David Núñez 6c70103c3f Test consistency between Umbral and ChallengeOverseer.UmbralParameterU 2019-02-23 12:37:01 +03:00
David Núñez a55b9d157d Refining fragments fixture for test_umbral_deserializer 2019-02-23 12:36:59 +03:00