Commit Graph

5852 Commits (8f5f1bdc8a9b44f3da844edc322a3fa1a6d37a1c)

Author SHA1 Message Date
David Núñez faacd232ce Events class is renamed and moved to new module. New EventRecord class 2020-02-18 12:08:49 +01:00
David Núñez 006a85e294 Revamp the Events manager class
* Fix __getitem__; I was using 'yield' wrong
* Implement __getattr__ and __iter__
* Extract some common logic
2020-02-18 12:08:49 +01:00
David Núñez 0998ccac74 Initial take on `nucypher status events`. By default, it shows all events for current period, for StakingEscrow and PolicyManager 2020-02-18 12:08:49 +01:00
David Núñez c09a7a3bab Move option --contract-name to nucypher.cli.options 2020-02-18 12:08:49 +01:00
David Núñez b908c75a69 Add a method to ContractAgency to obtain agents from contract name 2020-02-18 12:08:49 +01:00
David Núñez 1044d6eaf3 Events class to facilitate even more using events and filters
Example of usage:
staking_agent.events.Deposited(staker='0xF00BAR') produces a generator for all Deposited events for that staker
2020-02-18 12:08:49 +01:00
David Núñez 8e800171b3 First pass at an interactive CLI tool for interacting with agents
TODO: Find a better location for this script?
2020-02-18 12:08:49 +01:00
jMyles b1100405f3 Spelling corrections pointed out in RFCs. 2020-02-17 23:45:39 -07:00
jMyles e7c953c28f After split, explicity show the kfrag_bytes from the cleartext. 2020-02-17 23:41:42 -07:00
MacLane S Wilkison b1c0fb9ca6
Merge pull request #1706 from cygnusv/deploy
Update registry with Cassandra WorkLock
2020-02-17 23:51:50 +00:00
David Núñez 4b58f5add2 Update registry with Cassandra WorkLock. Includes minor fix in deployment 2020-02-17 22:47:54 +01:00
David Núñez f530198f7e
Merge pull request #1703 from cygnusv/deploy
Updated registry with new StakingEscrow deployed with test_mode=True
2020-02-17 11:03:37 +00:00
David Núñez c94f90534d Updated registry with new StakingEscrow deployed with test_mode=True 2020-02-17 11:49:05 +01:00
David Núñez 5f291a9cf6
Merge pull request #1692 from tuxxy/give-prisoners-e2ee
Merge the registries repo into the monolith
2020-02-17 10:18:18 +00:00
Tux 72c8bef885
Remove unused import
Co-Authored-By: David Núñez <david@nucypher.com>
2020-02-17 08:35:21 +01:00
jMyles 0a1d2a5282 Compatibility with changes to middleware and side channel fixture. 2020-02-16 18:42:09 -07:00
jMyles 14653fb7bb Fixing up NotFound arguments; Bob had been broken by this change. 2020-02-16 17:50:55 -07:00
jMyles 18ce406bce Pushing arrangement query down to new agent methods. 2020-02-16 17:47:25 -07:00
jMyles 27e1729854 More detail in suspicious activity report. 2020-02-16 17:47:04 -07:00
jMyles b8b3e94960 Adding methods at the agent level for policy and arrangements retrieval from a transacton ID. 2020-02-16 17:46:35 -07:00
jMyles dbcbc26cba Test showing that paying the wrong nodes results in Ursula noticing and refusing to service the Policy. 2020-02-16 16:33:15 -07:00
jMyles 4611263e38 Check to ensure this this_node is among those arranged. See #121. 2020-02-16 16:32:27 -07:00
jMyles 4714570b5e Amonia's logic for paying flunkies instead of the arranged Ursulas. 2020-02-16 16:26:08 -07:00
jMyles c7906782d4 Adding freeriders as a category of suspicious activity. 2020-02-16 16:25:29 -07:00
jMyles 4d8c6b989c Moving the mock enact to a staticmethod for reuse. 2020-02-16 12:35:19 -07:00
jMyles e7e26c5cc3 Moving freeriding attacks to their own module. 2020-02-16 12:29:10 -07:00
jMyles ed56c78d74 Test showing the 'safeguards removed' variant of trying not to pay. 2020-02-16 11:06:10 -07:00
jMyles 95df24ffab New open issues, new TODOs. 2020-02-16 11:05:54 -07:00
jMyles cd1410ba3d NotFound is intended only for 404 status. 2020-02-16 11:05:24 -07:00
jMyles ccc9a2ce74 Mock enact and remove safeguards to show trying that Amonia can't grant without paying even with no client-side arrangement tabulation. 2020-02-16 11:04:03 -07:00
jMyles e4e4db64e9 Let's start sharpening some other attacks here. 2020-02-15 19:47:32 -07:00
jMyles 624242d791 Don't need capsule side channel here anymore. 2020-02-15 19:47:09 -07:00
jMyles 0b71fe8e4d Quick and dirty arrangement response tabulation. 2020-02-15 19:46:57 -07:00
jMyles 227f82823b Composing status onto Arrangement for later tabulation. 2020-02-15 19:45:48 -07:00
jMyles 7ca44a9f61 Will we always get TimeExhausted here if the tx doesn't exist? 2020-02-15 19:40:34 -07:00
jMyles 6b530ee1a1 Yeah, probably time to just return the response from middleware when using enact_policy(). 2020-02-15 19:40:09 -07:00
jMyles cf07c3add6 Why wasn't blockchain side channel always compatible with the federated one? 2020-02-15 17:58:48 -07:00
jMyles f0d7781ef5 Fixing up sinpa test to use Amonia. 2020-02-15 17:57:58 -07:00
jMyles 7ed8a95016 Moving composition of transaction onto arrangement up into enact(). 2020-02-15 17:57:21 -07:00
jMyles 9003421f73 If some Ursulas have refused, our treasure map won't be sufficiently populated. 2020-02-15 17:56:45 -07:00
jMyles 01eb940f34 Catch UnexpectedResponse during policy enactment. 2020-02-15 17:55:08 -07:00
jMyles 29f5038ba3 Generalize check for TreasureMap destinations. 2020-02-15 17:52:19 -07:00
jMyles 206dbb2037 Checking receipt for Alice's transaction on PolicyManager. #121 2020-02-15 17:51:37 -07:00
jMyles 3f9e93bd51 Moving sinpa logic to new unlawful Character, Amonia. 2020-02-15 17:49:17 -07:00
jMyles e4fdb529ab Making middleware exceptions portable. 2020-02-15 17:28:54 -07:00
K Prasch 306e3c715a
Merge pull request #1688 from vepkenez/fervent-black
improve ansible deployment/management/status
2020-02-15 15:50:06 -07:00
jMyles b8a3f0c3c7 Kind of a weird composition, but we'll take it for the moment. 2020-02-15 11:44:07 -07:00
jMyles e4ccaab6cd Changing order of ops so that we have the tx for Alice to send to Ursula. 2020-02-15 11:43:17 -07:00
jMyles d30f937940 Expessly splitting publish() into tmap and blockchain portions. 2020-02-15 11:41:13 -07:00
jMyles 59a82767f6 Including transaction in BlockchainArrangement payload. 2020-02-15 11:39:34 -07:00