Kieran R. Prasch
3a80eec247
Goodbye, Three Agents. Hello, Agency.
2019-07-04 11:22:38 +02:00
Kieran R. Prasch
5551ce950c
MinerEscrow -> StakingEscrow, and MiningAdjudicator -> Adjudicator in agency, and in-test
2019-07-04 11:22:38 +02:00
szotov
33e97a9c2f
miner->staker in tests and docs
2019-07-04 11:22:38 +02:00
szotov
821b0dcdbc
Renamed miner-> staker in contracts
2019-07-04 11:22:38 +02:00
szotov
fbe4493951
Changed restriction on miner<->worker relationship
2019-07-04 11:22:38 +02:00
szotov
69b21a2a85
Tests for worker events
2019-07-04 11:22:38 +02:00
szotov
f237389ca7
Tests for slashing worker
2019-07-04 11:22:38 +02:00
szotov
946ec2b2f1
Added way to slash intermediary contracts
2019-07-04 11:22:38 +02:00
szotov
8747177c5a
Moved minimum worker periods to constructor
2019-07-04 11:22:38 +02:00
szotov
1a76d9984b
Fixed agent tests
2019-07-04 11:22:38 +02:00
szotov
727a074503
Added test for setting worker
2019-07-04 11:22:38 +02:00
szotov
b545e3ec9b
Fixed small issues, added setWorker to UserEscrow
2019-07-04 11:22:38 +02:00
szotov
8bc89805ff
Fix agents tests
2019-07-04 11:22:38 +02:00
szotov
f850a42f58
Added worker role, excluded minting and activity confirmation from lock method
2019-07-04 11:22:38 +02:00
jMyles
189a87399c
Resetting side channel between two of the tests.
2019-07-03 16:55:12 -07:00
jMyles
a57affca11
Updating test showing that #920 is fixed.
2019-07-03 13:59:52 -07:00
jMyles
afe26661d5
Adding message number to side channel flow.
2019-07-03 13:51:58 -07:00
jMyles
c613bcd077
A few new places where capsule_side_channel needs to be called.
2019-06-28 21:11:51 -07:00
jMyles
523fde54b4
Our Ursula from config is also supposed to be interactive per the test spec.
2019-06-28 20:11:55 -07:00
jMyles
54249ebb5e
Adding --interactive for the moment in order to display command prompt, on which test assertion relies.
2019-06-28 20:11:55 -07:00
jMyles
a88d8c4159
Skipping test until #920 is closed.
2019-06-28 20:11:55 -07:00
jMyles
8b14f5d974
A different way to assert work_order similarity.
2019-06-28 20:10:59 -07:00
jMyles
b92c41d928
Bob sets correctness keys earlier.
2019-06-28 20:10:59 -07:00
jMyles
31a70f1b39
Adding more narrative to the test to show what's really happening when Bob gathers CFrags.
2019-06-28 20:10:59 -07:00
jMyles
0888fc5946
Calling the capsule side channel in most places where it was previously unpacked.
2019-06-28 20:10:59 -07:00
jMyles
ca68ad6e97
Our capsule side channel now tracks past messages.
2019-06-28 20:10:21 -07:00
jMyles
eab64bde13
Test showing 892.
2019-06-28 20:10:21 -07:00
jMyles
3e94e91be2
Test showing Bob's second retrieval.
2019-06-28 20:10:21 -07:00
jMyles
694ba1bea2
Test showing 920.
2019-06-28 20:10:21 -07:00
Bogdan Opanchuk
f1db1622cf
Temporarily skip test_deploy_multiple()
...
Fixing `usefixtures` mark makes it fail due to issue #1102
2019-06-27 14:45:34 -07:00
Bogdan Opanchuk
39ecedd724
Rename TesterBlockchain on import in tests to prevent py.test from trying to pick it up
2019-06-26 22:48:33 -07:00
Bogdan Opanchuk
d83697648a
Fix typo: replace `usesfixtures` with `usefixtures`
2019-06-26 22:41:54 -07:00
Kieran Prasch
6ec361db32
Cleanup Imports, use the latest test web controller fixtures for policy and decrypt endpoints.
2019-06-26 08:50:54 -07:00
Kieran Prasch
0076e1728a
Integrate revocation control works; handle duration in response assembly
2019-06-26 08:50:54 -07:00
Kieran Prasch
9bf50e8eff
Use common control request fixture in tests for both web + RPC controllers.
2019-06-26 08:50:54 -07:00
Kieran Prasch
81b61ecdc8
Test showing GET-style interface working with JSONRPC
2019-06-26 08:50:54 -07:00
Kieran Prasch
d61a3db89a
Porting to stringio
2019-06-26 08:50:54 -07:00
Kieran Prasch
403c093fac
RPCController test client and stdio transport unit testing
2019-06-26 08:50:54 -07:00
Kieran Prasch
6ea8e4cac5
Character + IPC Controller inegration work
2019-06-26 08:50:54 -07:00
Kieran Prasch
27c7b54335
JSON RPC-IPC Controller and Emitter, Round 1!
2019-06-26 08:50:54 -07:00
tuxxy
dac9f72c0a
Defenestrate 'nucypher remove' from the CLI
2019-06-19 17:28:17 -06:00
Kieran Prasch
50e93a7598
Updates Sentry LoggingIntegration with logger blacklist, breadcrumb hooks. Removes twisted logging from geth process.
2019-06-12 16:37:39 -07:00
Kieran Prasch
9e96b1191a
Fixes miscalculated first period reward rate (See #1063 ), Improves depth of reward collection integration testing
2019-06-08 20:23:16 -07:00
Kieran Prasch
f643f3ae78
Cleanup policy and arrangement value code paths - Fixes Issue #1015 - BlockchainPolicy value must be greater than 0.
2019-06-08 15:34:25 -07:00
K Prasch
d743e3b791
Respond to RFCs in PR #984 ; Apply suggestions from code review
...
Co-Authored-By: David Núñez <david@nucypher.com>
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
2019-06-08 14:32:35 -07:00
Kieran Prasch
cc345404c7
Thin out web3 client syncing, Use configuration classes for default controller ports
2019-06-08 14:30:01 -07:00
Kieran Prasch
807ffd3eaf
Passing decentralized grant CLI lifecycle test
2019-06-08 14:30:01 -07:00
Kieran Prasch
cf64e5f114
Restores skipped stake division test on MinerAgent
2019-06-08 14:26:07 -07:00
Kieran Prasch
9430997aa7
Refining blockchian sync management for internal geth processes
2019-06-08 14:26:07 -07:00
Kieran Prasch
459bc033b0
Alice restores default policy values from configuration file
2019-06-08 14:26:07 -07:00
Kieran Prasch
3bfc7aa3c8
Remove expiration date from create policy entry points
2019-06-08 14:26:07 -07:00
Kieran Prasch
c077db8ed6
Generic and specific character configuration testing
2019-06-08 14:26:07 -07:00
Kieran Prasch
f90cc4542e
Testing decentralized grant, Adds missing datetime to policy creation tests.
2019-06-08 14:26:05 -07:00
Kieran Prasch
6097c83eb7
Almost all of checksum_public_address -> checksum_address
2019-06-08 14:25:35 -07:00
Kieran Prasch
4a7a881d3e
Realize the Agency metaclass
2019-06-08 14:25:26 -07:00
Kieran Prasch
1f618addba
Perform on-chain staking-check as node verification (Fix); Handle InvalidNode exception subclasses for logging
2019-06-04 21:39:46 +03:00
Kieran Prasch
5dae01cc79
Realizing the value of a decentralized identity namespace, Verification/Validation naming clarifications, Code cleanup and style fixes for signature flow.
2019-06-04 21:13:29 +03:00
Kieran R. Prasch
2ab9c303d4
Ensure node discovery verification and identity_evidence remian compadible with federated nodes
2019-06-03 23:47:05 +03:00
K Prasch
775d314f6f
Apply suggestions from code review
...
Co-Authored-By: David Núñez <david@nucypher.com>
2019-06-03 23:41:06 +03:00
David Núñez
b6ba1ff435
Conditional skip for Geth client integration. Fix #1037
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
58302eb7db
Adding domains to Alice and Bob in examples, to aviod using the production defaults.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
4fd55ab6cb
Implement deploy_user input fixture for CLI deployments in-test.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
cb6c76867a
Removes 'pubkey_sig' from the codebase, In favor of 'verifying_key'.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
62c7df293a
Understand labels to be handled as unicode in interfaces.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
51319ec6f7
Straggler invalid interactive input at deploy-time
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
0574cfd908
Ensure alice and bob remember the manually controlled non-staking node in reward integration cli test.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
c6c6f66b8b
New client test module; Skip geth client signature integration test on CI until a better solution is found.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
65f7b119bc
Remove outermost keccack digest for map id construction, Restore a blockchain-alice node discovery test.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
d2ff928f9d
Removes base64 label encoding via CLI interface. Style updates for debugging ease.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
8cd12e0e0e
Update deployment interactive input to match the latest CLI design.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
eca834c00a
Handle non-staking Ursula in-tests; Annotations for failing tests, Make Ursula display name a class attr
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
e74ba944f8
Handle geth --dev process as a fixture to stop when finished. Additional test bug fixes, found missing assertions.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
f9d9346c0f
Test integration for geth client signing and nucypher.crypto verification
2019-06-03 22:52:22 +03:00
David Núñez
e913677354
Fix eth clients bugs. Improved tests for clients.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
2903c6d3e7
Adjust tests to accomodate new eip 191 and on-chain staking checks.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
d1f42c57a9
Perform on/off chain EIP 191 verification during node discovery.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
2dfdb4ac63
Recompose verify_eip_191 into crypto.api, off of Interfaces, Clients, and Powers.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
ed1436aac4
Use EIP-191 Signatures on Geth and PyEVM backends
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
f2c655efae
Inheretence improvements for web3 abstractions, Handle 4-part version strings in EthereumTester and Parity.
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
25c5a4a846
Supporting EIP-191 Geth message signatures
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
828b19b2ee
Consider provider process handling with new web3 abstractions
2019-06-03 22:52:22 +03:00
Damon C
b78cedbb1e
tests for w3 client classes
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
bb30fcb5ae
Attempting to restore broken tests from refactoring side-effects of web3 client abstractions
2019-06-03 22:52:22 +03:00
derekpierre
8b68990649
Initial work to abstract web3 test clients - not tested
2019-06-03 22:52:22 +03:00
Bogdan Opanchuk
e83ad3d186
Make domain names `str` instead of `bytes` throughout the code, and only convert to bytes on serialization
...
Fixed #1026
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
f5a45b71d3
Uses --pay-with for alice cli lifecycle tests.
2019-06-03 22:52:22 +03:00
tuxxy
94f273d70c
Add missing import from rebase
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
610f8cb59d
Adjust Ursula CLI tests for non-federated as a default
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
c6edf8278e
mock auto-ip failure in test
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
a4e6480512
Understand ethrbase to be the default checksum address in non-federated mode
2019-06-03 22:52:22 +03:00
Kieran R. Prasch
af812be748
Smoothing over auto-ip detection
2019-06-03 22:52:22 +03:00
tuxxy
c6f0caf64a
Fix missing condition from rebase
2019-06-03 22:52:22 +03:00
tuxxy
882ce735ab
Add test for checking automatically determining IP
2019-06-03 22:52:20 +03:00
tuxxy
cfeb0fa6d7
Implement mechanism to automatically find/confirm Ursula's public IPv4 address
2019-06-03 22:51:39 +03:00
Kieran R. Prasch
d5f7289515
Do not assume the existence of a global domain in test
2019-06-03 22:51:39 +03:00
Kieran R. Prasch
2e022461af
Handles more ethereum client node info strings; Fixes NameError
2019-06-03 22:51:39 +03:00
Kieran R. Prasch
f64401be8c
Fix botched rebase in CLI rollback tests
2019-06-03 22:51:39 +03:00
Kieran R. Prasch
c7d6696bce
Be a little more gentle with domain-based seeding (Ursulas); Skip and modifiy tests (needs follow-up)
2019-06-03 22:51:37 +03:00
Kieran Prasch
75daa85c20
Picking up the pieces- new --sync/--no-sync deploy flag, dehydrate deployment tests.
2019-06-03 22:50:40 +03:00
Kieran Prasch
db94cb52dd
Felix tests passing - Bug fixes for chain syncing and accounts managemtn; Begin the movement to integrate BlockchainPower.
2019-06-03 22:50:40 +03:00
Kieran Prasch
6ee4e5fb7a
Another pass on handling published registry fetching. Found ancient stubs!
2019-06-03 22:50:40 +03:00
Kieran Prasch
81cbdd7404
Oo he's Tryin'
2019-06-03 22:50:40 +03:00
Kieran Prasch
60c2f06c54
SMall fixes and changes in tests
2019-06-03 22:50:40 +03:00
Kieran Prasch
ba996f5d0c
Alter CLI deply tests to tests geth provder, First pass.
2019-06-03 22:50:40 +03:00
Kieran Prasch
eab86fc3ad
Estimate gas updates to latest test constants; Additional commentary
2019-06-03 22:50:40 +03:00
Kieran Prasch
09db480312
Baseline rollback CLI scenerio tests
2019-06-03 22:50:40 +03:00
Kieran Prasch
621dbf9068
post rebase cleanup
2019-06-03 22:50:40 +03:00
Kieran Prasch
d9edf1fcfa
Move deployment secret interactivity to concise internal deployment API
2019-06-03 22:50:40 +03:00
Kieran Prasch
a317e7f5e4
Formalize upgrade, rollback, and deploy as deploy CLI actions, dehydrate tests and check every upgrade / rollback opportunity.
2019-06-03 22:50:40 +03:00
Kieran Prasch
cffbf1f5b1
Upgradability for UserEscrowProxy depoyers API/CLI; Refine proxy contract handling and retargeting
2019-06-03 22:50:40 +03:00
Kieran Prasch
3454361251
Estimate gas updates to latest test constants; Additional commentary
2019-06-03 22:50:40 +03:00
Kieran Prasch
4c1af5b5ab
Baseline rollback CLI scenerio tests
2019-06-03 22:50:40 +03:00
Kieran Prasch
27ecc40b9d
post rebase cleanup
2019-06-03 22:50:40 +03:00
Kieran Prasch
8371df1fcc
Move deployment secret interactivity to concise internal deployment API
2019-06-03 22:50:40 +03:00
Kieran Prasch
577c0c7f8c
Add a fourth deployment threee agents fixture, move secret hash kwarg in fixtures to lazy position.
2019-06-03 22:50:40 +03:00
Kieran Prasch
28e5c78e49
Formalize upgrade, rollback, and deploy as deploy CLI actions, dehydrate tests and check every upgrade / rollback opportunity.
2019-06-03 22:50:40 +03:00
Kieran Prasch
5bb79793d4
Upgradability for UserEscrowProxy depoyers API/CLI; Refine proxy contract handling and retargeting
2019-06-03 22:50:40 +03:00
Kieran Prasch
230cc7e0c2
Contract upgrade CLI integration test
2019-06-03 22:50:40 +03:00
Bogdan Opanchuk
cbff090d68
Disallow creating persistent character configurations in --dev mode
2019-05-28 21:00:58 +02:00
David Núñez
d48e9fc184
Make changes in Character.from_public_keys() truly backwards-compatible
2019-05-16 16:12:08 +02:00
David Núñez
ab5599ffff
Address RFCs from @szotov and @tuxxy
2019-05-16 16:12:08 +02:00
David Núñez
53d12582a6
How should Bob discover and validate Ursula's Identity Evidence? #962
2019-05-16 16:12:08 +02:00
David Núñez
66aaf328c4
mock_ursula_reencrypts as as global fixture
2019-05-16 16:12:08 +02:00
David Núñez
e8be554e60
Adapt test_mining_adjudicator to latest changes in MiningAdjudicator and IndisputableEvidence
2019-05-16 16:12:07 +02:00
David Núñez
4d0e34d545
Improved API for Character.from_public_bytes().
2019-05-16 16:12:07 +02:00
David Núñez
a5ce7700ca
Lost bytes: missing byte values needed for on-chain evaluation
2019-05-16 16:12:07 +02:00
David Núñez
bfc747fa14
utils.get_coordinates_as_bytes() also accepts SignatureStamps
2019-05-16 16:12:07 +02:00
David Núñez
6ce55d8d60
Utility function nucypher.crypto.utils.get_coordinate_as_bytes
2019-05-16 16:12:07 +02:00
David Núñez
569dd23f2b
Workaround for wrong slashing params in test_intercontract_integration #354
2019-05-16 16:12:07 +02:00
David Núñez
b51cb74a4d
Adapt tests to latest changes in MiningAdjudicator
2019-05-16 16:12:07 +02:00
David Núñez
fc48f7063b
Enter utils.get_signature_recovery_value. Fix utils.recover_pubkey_from_signature
2019-05-16 16:12:07 +02:00
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
David Núñez
5846005ca5
WorkOrder has to include Alice's pubkey as ETH address for later use in ZKP logic
2019-02-23 12:37:14 +03:00
szotov
a6fa4df610
Readability for adjudicator tests
2019-02-23 12:37:14 +03:00
szotov
68f87315a3
Enhanced estimate_gas using MiningAdjudicator
2019-02-23 12:37:13 +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
12608c444d
Gas estimates for slashing method in MinersEscrow
2019-02-23 12:37:11 +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
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
2ef2a8f9b6
Added limit for amount of sub stakes, small refactoring of the MinersEscrow and other contracts
2019-02-23 12:36:48 +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
Damon C
d31e86b3d1
platform agnostic tempdir fixes #791
2019-02-19 22:18:52 -07:00
David Núñez
3391fbcb47
Bob CharControl endpoint for getting encrypting and signing public keys
2019-02-16 23:21:39 +01:00
Kieran R. Prasch
89d26301ea
Passing character control tests with more sensible API fields and serilization.
2019-02-16 14:42:06 -07:00
tuxxy
a8c4ecee3e
Use a common policy label fixture
2019-02-16 14:42:06 -07:00
Kieran R. Prasch
9dccbc7377
work-around for message kit serialization Issues; Fails on Tmap decryption.
2019-02-16 14:42:06 -07:00
Kieran R. Prasch
a1e1e39168
Adds failing message kit serialization test
2019-02-16 14:42:06 -07:00
Kieran R. Prasch
e7da2240eb
More b64 serialization deprecation; Flask response nucypher versioing
2019-02-16 14:42:06 -07:00
Kieran R. Prasch
abdd9ceda8
Remove b64encodings from labels
2019-02-16 14:42:06 -07:00
Kieran R. Prasch
351569b05b
Update character control tests to use unicode strings in tests
2019-02-16 14:42:06 -07:00
David Núñez
0e5b5584ac
Bye bye, DataSource.
2019-02-16 18:54:30 +01:00
MacLane Wilkison
9ed5b1e6f6
Remove unused variables+imports and make PEP 8 fixes in tests
2019-02-15 15:12:33 -07:00
jMyles
9ff5f7b6f8
Some rapid crazy changes with @kprasch to fix failing tests.
2019-02-15 00:30:44 -07:00
Kieran R. Prasch
c43cdd573b
Update Tests with corrected naming conventions for Flask test client - bug fixes for CLI tests.
2019-02-15 00:28:53 -07:00
Kieran R. Prasch
0da9d5cadd
Fix filename spelling error in examples
2019-02-15 00:28:53 -07:00
Kieran R. Prasch
bf2a5669d3
Test Alice CLI module
2019-02-15 00:28:53 -07:00
Kieran R. Prasch
86f9720461
Organize CLI Tests by Character
2019-02-15 00:28:53 -07:00
jMyles
abf00edb47
Catching up Character tests to label move.
2019-02-15 00:28:53 -07:00