Commit Graph

3369 Commits (a225ef2fc06e258f34c24c07aeb388f09a374eea)

Author SHA1 Message Date
David Núñez a225ef2fc0 Fix ZKP equation (Wrong: e2 == e^z + e1^h, Good: e^z == e2 + e1^h) 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 06da24b8bd Update ExtendedKeccak to include default custom string and right prefixes 2019-02-23 12:37:00 +03:00
David Núñez a5eb1a1070 Hard-code UmbralParameter U as a constant in ChallengeOverseer 2019-02-23 12:37:00 +03:00
David Núñez c2e0157f3e Move ExtendedKeccac functions to ChallengeOverseer 2019-02-23 12:36:59 +03:00
David Núñez 8f6067a300 Changing constant sizes to uint256, since uint8 is not enough sometimes 2019-02-23 12:36:59 +03:00
David Núñez a55b9d157d Refining fragments fixture for test_umbral_deserializer 2019-02-23 12:36:59 +03:00
David Núñez 48a0acb41e Workaround for "stack too deep" error when preparing input to extendedKeccakToBN 2019-02-23 12:36:58 +03:00
David Núñez 8df4634885 Temporarily copying Numerology library to contracts/lib 2019-02-23 12:36:58 +03:00
David Núñez a8688773ba Add extendedKeccak and extendedKeccakToBN functions 2019-02-23 12:36:58 +03:00
David Núñez dcc022532b Deserialization of PreComputedData struct 2019-02-23 12:36:57 +03:00
David Núñez a20fe729de Compute hash_to_bignum over EC points contained in proof 2019-02-23 12:36:57 +03:00
David Núñez c34527e219 Bob detects incorrect CFrags and gathers some evidence against Ursula 2019-02-23 12:36:56 +03:00
David Núñez fe3f42665c UnquestionableEvidence to blame misbehaving Ursulas 2019-02-23 12:36:56 +03:00
David Núñez 2f758c7fa6 Updating names in UmbralDeserializer 2019-02-23 12:36:56 +03:00
David Núñez e89cd3a55a Populating PrecomputedData struct in UmbralDeserializer 2019-02-23 12:36:55 +03:00
David Núñez c56b785f8b Checking first correctness equation on-chain 2019-02-23 12:36:55 +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 559ca8e66a Docs for the slashing methods in contracts 2019-02-23 12:36:51 +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
szotov d3fc480c6c Fixed bugs in slashing, small optimization 2019-02-23 12:36:50 +03:00
szotov df99cb650e Improved tests for slashing 2019-02-23 12:36:50 +03:00
szotov dbeb29fe83 Added method for getting a stake for previous periods 2019-02-23 12:36:49 +03:00
szotov dbc74e03d5 Tests for slashing 2019-02-23 12:36:49 +03:00
szotov c028e521cd Tests for `unMint` 2019-02-23 12:36:48 +03:00
szotov e24263dbd5 Draft of the slashing method 2019-02-23 12:36:48 +03:00
szotov 2ef2a8f9b6 Added limit for amount of sub stakes, small refactoring of the MinersEscrow and other contracts 2019-02-23 12:36:48 +03:00
David Núñez 0fc6edbe9f Bring back coincurve 2019-02-23 12:36:47 +03:00
szotov 4f046b8f25 Fixed current challenge test 2019-02-23 12:36:47 +03:00
szotov eebd831397 Changed format of points in deserializer 2019-02-23 12:36:46 +03:00
szotov 56e3d0336b Integrated UmbralDeserializer and challenge, partially changed tests 2019-02-23 12:36:46 +03:00
szotov da21e5006f Small refactoring and renaming 2019-02-23 12:36:46 +03:00
szotov b230e31e32 Added contract to deserialize capsule and cfrag 2019-02-23 12:36:45 +03:00
szotov 694eb7fff9 Added test for the draft of challenge 2019-02-23 12:36:45 +03:00
szotov 0e06d67252 Added draft of the first challenge 2019-02-23 12:36:44 +03:00
szotov 014a1094ab Added methods to verify signature on-chain 2019-02-23 12:36:44 +03:00
szotov 866b70e63e Added on-chain external signature verifier 2019-02-23 12:36:44 +03:00
Tux b36f310272
Merge pull request #793 from cygnusv/readme
Short summary of NuCypher in the README
2019-02-22 18:46:24 +00:00