Commit Graph

588 Commits (7098933a4751bcf8feb8eca061dda80befb51a14)

Author SHA1 Message Date
derekpierre 0081ee1ce6 Don't migrate configurations from v4->v6, but instead do v4->v5->v6 to ensure proper changes are enacted.
Migration from v4->v5 missed deprecation of "db_filepath" configuration parameter.
Add tests for configuration migration.
2023-09-15 10:53:23 -04:00
Kieran Prasch 7689cc0769 removal and reorg of 'trackers' in preperation for publishing ofprovider public key to Coordinator. 2023-09-14 16:26:05 -04:00
Kieran Prasch 499f903976 Adapt tests and exmaples to merged Operator, without Ritualist. 2023-09-14 16:26:05 -04:00
derekpierre 0d587f0295 Remove over-aggressive rename of `stake_info`. 2023-09-14 16:26:05 -04:00
derekpierre 75be004564 Update acceptance tests contract deployment / fixtures; StakeInfo is no longer a contract. 2023-09-14 16:26:05 -04:00
Kieran Prasch 4fc0176a96 handle integration and unit mocking of ad-hoc ursula account bonding. 2023-09-12 18:28:52 +02:00
Kieran Prasch 783f2dcd76 Enrico uses a web3 wallet to encrypt-then-sign. 2023-09-11 19:06:24 +02:00
derekpierre 243448d015 Bob no longer needs ritual id as a parameter for decrypting the threshold message kit since the Coordinator contract can be used for obtaining the ritual id from the dkg public key which is already stored in the threshold message kit. 2023-09-11 11:50:54 -04:00
derekpierre e943ca7b8f Rename PREApplicationAgent to TACoApplicationAgent; also rename associated variables/comments etc. 2023-09-08 09:27:04 -04:00
Kieran Prasch 0c69c142b6 handle fees, authority, and access controller in several tests 2023-09-07 18:35:00 -04:00
Kieran Prasch 56486f74df assorted 'initiator' -> 'authority' 2023-09-07 18:35:00 -04:00
derekpierre 81121bc4c5 Accomodate obtaining dkg threshold from Coordinator contract/Ritual object.
MockCoordinatorAgent simply uses a class method to determine threshold (allows for both simple/precomputed) to still be tested in integration tests.
2023-09-07 18:35:00 -04:00
derekpierre 03ca66b561 Utilize efficiency improvements to ThresholdMessageKit that ensures that Ciphertext is not needlessly copied between python layer and Rust later.
Allow ciphertext header to be directly obtained without needing to first get the Ciphertext.
Move decryption of ferveo encrypted data into a method on ThresholdMessageKit so that the Ciphertext data can be used directly in Rust layer, and not pulled into python to then pass
it back into the Rust layer for decryption.
2023-08-27 03:19:28 +02:00
derekpierre a75c5da251 Incorporate latest changes from ferveo and nucypher-core that exposes key encapsulation so that only encrypted symmetric key and associated data (CiphertextHeader) are included in ThresholdDecryptionRequest. 2023-08-27 03:19:28 +02:00
derekpierre ce3d399483 Remove fake python core shim, and use actual nucypher_core objects now that they are available via associated nucypher-core PR. 2023-08-27 03:19:28 +02:00
derekpierre ed4a8fbd79 Not the cleanest but mimic ciphertext header / payload from conversations in ferveo#155. 2023-08-27 03:19:28 +02:00
derekpierre 04a0c0239a Fix test affected by member variable naming change to ThresholdMessageKit. 2023-08-27 03:19:28 +02:00
derekpierre f93f1b1019 Rename DkgMessageKit to ThresholdMessageKit. 2023-08-27 03:18:08 +02:00
derekpierre a84680e6ca Update threshold_decrypt to take a DkgMessageKit instead of ciphertext and conditions. 2023-08-27 03:18:08 +02:00
derekpierre 2043b69a21 Remove redundant test. 2023-08-27 03:18:08 +02:00
derekpierre 13fe740c9a Update Enrico.encrypt_for_dkg to return DkgMessageKit shim. 2023-08-27 03:18:08 +02:00
Kieran Prasch fc543c49dc dehydrate multichain test mocks and utilities for fixture resuse in multiple suites. 2023-08-24 14:26:29 +02:00
Kieran Prasch faa9c147fb tests for /conditions_chains endpoint 2023-08-24 14:17:12 +02:00
Piotr Roslaniec e07101e68b fix a failing test after a rebase 2023-08-23 20:35:58 +02:00
Piotr Roslaniec 097ffad90e feat!: add condition type to condition schemas 2023-08-23 20:07:24 +02:00
Kieran Prasch 34775ca158 run black code formatter on condition.evm.py and test_character_configuration.py, fixes ruff linting errors. 2023-08-22 15:54:56 +02:00
Kieran Prasch 57ce72ade9 use the staking and payment provider uris as default conditions providers before Ursula's construction. 2023-08-22 15:41:23 +02:00
jMyles 280fe0d0f9 Simple test to show error for invalid chain ID. 2023-08-20 16:02:39 +02:00
Piotr Roslaniec 7f5f35b4c9 update pre-release nucypher-core versions 2023-08-01 10:26:02 +02:00
Piotr Roslaniec 748ee2ae55 update pre-released nucypher-core version 2023-08-01 10:25:12 +02:00
derekpierre 90837df0f0 DKG params are no longer exposed/applicable; remove redundant test and commented out code which have now gone stale. 2023-07-24 08:33:34 -04:00
derekpierre f3871396ac Use FerveoVariant enum value instead of constant for test. 2023-07-24 08:33:34 -04:00
derekpierre 09b13faafd Modify test so that the different ferveo variants can still be tested. 2023-07-24 08:33:34 -04:00
derekpierre 84f85b2049 Update ActiveRitualTracker to use TTLCache for tracking participation states; periodically purge the cache of expired entries no longer needed to be tracked. 2023-07-21 13:42:33 -04:00
derekpierre ed0a884e67 Code cleanup for testing. 2023-07-19 11:49:19 -04:00
derekpierre 18527588ba Add integration tests for refactored out methods, used for clean-up, in ActiveRitualTracker
Minor code clean-up.
2023-07-19 08:31:39 -04:00
derekpierre 6fb61bacec Remove use of threshold decryption request when encrypting data - should not be returned when encrypting - it's use is for decrypting (variant and context).. 2023-07-09 10:41:02 -04:00
jMyles 8ae0cb08e7 Test showing both success and failure tooling. 2023-07-06 13:19:33 +02:00
jMyles 92f143c1be Test showing the 'always decrypts' variant. 2023-07-06 13:19:33 +02:00
jMyles b4fab45eb1 Simple test showing the 'always decrypts' tool. 2023-07-06 13:19:33 +02:00
jMyles 3bf02094a0 Adding classes for tools the Bobs who always decrypt and always fail. 2023-07-06 13:19:33 +02:00
Kieran Prasch a6a265675d Caracters (config) are blockchainy 2023-06-26 20:42:51 +02:00
Kieran Prasch c895d24ba9 use TEST_ETH_PROVIDER_URI in favor of PYEVM_DEV_URI 2023-06-26 20:42:51 +02:00
Kieran Prasch fdb28dd21e Improves multichain provider internal routing correctness. 2023-06-26 20:42:51 +02:00
Piotr Roslaniec 44d1e81b8f feat: remove dependency on DkgPublicParams 2023-06-21 14:56:17 +02:00
Kieran Prasch 10c0ccd603 removes 'nucypher bond' CLI command. 2023-06-16 11:37:00 +02:00
derekpierre d69b62d8b3 Initial musing about versioned condition lingo i.e. overall condition language; will add semver functionality later. 2023-06-15 08:54:31 -04:00
derekpierre 610f7436f0 Initial work that replaces infix notiation with prefix notation for logical conditions. 2023-06-14 19:38:30 -04:00
derekpierre 26aaf775e3 Change TimeCondition method name to "blocktime" from "timelock". 2023-06-08 11:03:48 -04:00
derekpierre 66f26c032c Change TimeCondition to use block time instead of Ursula system time.
Rename ReencryptionCondition to AccessControlCondition.
2023-06-08 11:03:22 -04:00