Commit Graph

85 Commits (de8d96e8eaebaa8082e1dc2e498e211dc5b08600)

Author SHA1 Message Date
derekpierre 0dfd03a9b6 Conditions are much more strict about typing now, update tests/scripts to be more accurate about types for comparator values. 2023-10-26 20:22:28 +02:00
derekpierre 4c6a0be937 Use ConditionType enum values instead of constants across codebase. 2023-10-18 20:25:56 -04:00
derekpierre 05aff5203c Add integration test for decryption failure cases: unauthorized encryption, expired ritual.
Better scope test exception by using match for exception messages.
2023-10-10 11:27:22 -04:00
Kieran Prasch 1858f49a99 tests use the refactored ContractRegistry and RegistrySource interfaces 2023-10-04 19:24:43 +02:00
derekpierre 869ef1fbda Remove EconomicsFactory/Economics. 2023-09-21 12:31:21 -04:00
Manuel Montenegro 0da1397f56
Rename integration tests
These tests have the same name than other tests in `unit` and
`acceptance` folder.

VS Code IDE in unable to do the discovery process of the tests when:

1. There is different sources of tests (different folders)
2. Some names are duplicated in tests of different folders.

This causes the discovery process to crash, so tests are not shown in
Test Explorer.

Renaming the tests with duplicated names works and let the developers
that uses VS Code to keep working with this IDE.
2023-09-21 10:59:49 +02:00
Manuel Montenegro f3e81ea798
Format integration test_block_confirmations code
This change applies darker and ruff code style rules.
2023-09-21 10:37:29 +02:00
Manuel Montenegro 083ba2e4ad
Format integration test test_dkg_ritual code
This change applies darker and ruff code style rules.
2023-09-21 10:18:04 +02:00
Kieran Prasch 499f903976 Adapt tests and exmaples to merged Operator, without Ritualist. 2023-09-14 16:26:05 -04: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 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 13fe740c9a Update Enrico.encrypt_for_dkg to return DkgMessageKit shim. 2023-08-27 03:18:08 +02:00
Piotr Roslaniec 097ffad90e feat!: add condition type to condition schemas 2023-08-23 20:07:24 +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 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
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
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
KPrasch bc54e11948
Merge pull request #3130 from KPrasch/development
Polygon ecosystem DKG coordination (Alpha 4)
2023-06-07 12:30:58 +02:00
derekpierre 10caec7406 More testing confirmation that algorithm is checking the expected blocks. 2023-06-01 14:04:32 -04:00
Piotr Roslaniec d8b51b6c07 replace ferveo package usage with nucypher core module export 2023-06-01 19:18:05 +02:00
derekpierre be25a3d595 Remove constructor parameter redundancy from ActiveRitualTracker and add tests for first scan block functionality. 2023-05-31 14:18:03 -04:00
derekpierre de926000b4 Update code to handle DkgPublicKey now being 48 bytes. 2023-05-06 13:15:48 -04:00
Kieran Prasch e18a3470a0 only test rituals with dkg size < 10 for now 2023-05-05 10:18:23 -07:00
Kieran Prasch b3090be689 support ferveo==0.1.9, bugfix: enables threshold decryption via simple variant. 2023-05-05 10:05:15 -07:00
Kieran Prasch d0a8f6065e attempt to enable both the simple/precomputer variants in tests. 2023-05-04 15:23:40 -07:00
derekpierre 87d8b40a57 Update and move test_ritualist to unit tests.
Co-authored-by: KPrasch <kieran@nucypher.com>
2023-05-04 17:35:52 -04:00
derekpierre 20fadaa0d8 Cleanup of tests. 2023-05-04 17:35:52 -04:00
Kieran Prasch 6ffd1a8217 updates for ferveo==0.1.8 (really tho) 2023-05-04 17:35:49 -04:00
derekpierre 88046fc3bc Updated use of ferveo 0.1.8. Note: public key bytes are still not 48 bytes. 2023-05-04 17:34:27 -04:00
derekpierre eda1fc1a50 Initial changes to conform to latest changes to Coordinator contract in nucypher-contracts. 2023-05-04 17:34:27 -04:00
Kieran Prasch a6d5335449 Reorganizes tests betweeen acceptance/integration. Ape project is now /tests/acceptnace. 2023-05-02 10:23:24 -07:00
Kieran Prasch a19c50ec69 ape checkpoint 1 2023-05-02 10:23:24 -07:00
derekpierre ba766100b0 bugfix: sync coordinator mocks, use StartRitual event instead of StartTranscriptRound for signalling posting of transcripts. 2023-05-02 10:23:24 -07:00
Kieran Prasch 25d4efd870 improves logging and error handling during tdec req/res. 2023-05-02 10:23:24 -07:00
derekpierre 3b990e38b4 Make DKG failing tests pass. 2023-05-02 10:23:24 -07:00