Commit Graph

170 Commits (a00febad0e07886fdb8515112aa3b0565bba4f29)

Author SHA1 Message Date
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
David Núñez a276f7c3ea Fix use of BlockchainDeployerInterface.provider 2019-02-23 12:36:54 +03:00
szotov a2e4f215e0 New lines at the end of contracts 2019-02-23 12:36:54 +03:00
szotov 9b4d77c035 Extracted getLockedTokensInPast method, some optimization 2019-02-23 12:36:54 +03:00
szotov f4cd8245de Added blank lines after license in blockchain tests 2019-02-23 12:36:53 +03:00
szotov 333e8af812 Fixed test_umbral_deserializer.py 2019-02-23 12:36:53 +03:00
szotov d3ae7a2fa2 Added test for slashing to the test_intercontract_integration.py 2019-02-23 12:36:52 +03:00
szotov 8a829b0283 Fixed overseer test 2019-02-23 12:36:52 +03:00
szotov 4d6131b45b Added events for slashing 2019-02-23 12:36:52 +03:00
szotov 46be22e5e6 Slashing optimization 2019-02-23 12:36:51 +03:00
szotov 31347b4634 Fixed bug with slashing future sub stakes regardless of duration 2019-02-23 12:36:50 +03:00