Commit Graph

100 Commits (de8d96e8eaebaa8082e1dc2e498e211dc5b08600)

Author SHA1 Message Date
Kieran Prasch b1afa231d5 use TACoDomain everywhere 2023-10-31 14:30:15 +01:00
Kieran Prasch 09bc914ce7 renames TEMPORARY_DOMAIN -> TEMPORARY_DOMAIN_NAME 2023-10-31 14:30:15 +01:00
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 ee6a48070f Remove policy_registry/policy_registry_filepath which are unused and unnecessary parameters. 2023-10-04 15:41:56 -04:00
derekpierre 4507580196 Update CLI --network option to be --domain.
Update subsequent function calls to use domain as well instead of network.
Update some constants to use _DOMAIN instead of _NETWORK.
2023-10-04 13:30:18 -04:00
derekpierre 2d2b67e5d2 Rename of various functions/constants from NetworksInventory to use domain instead of network.
Rename variables obtained by calling into NetworksInventory to use domain instead of network.
Rename NuCypherNetworkName CLI validation object into NuCypherDomainName.
2023-10-04 13:30:18 -04:00
derekpierre 941b21f34f More renames of instances of eth_provider_uri to either blockchain_endpoint or eth_endpoint. 2023-10-04 13:30:18 -04:00
derekpierre c8b5264c7c Rename eth_provider_uri to eth_endpoint in various spots specific to payment, config, characters. 2023-10-04 13:30:18 -04:00
derekpierre 738182ab98 Remove use of pre_payment_network and coordinator_network since the corresponding polygon network is always implied based on the TACo network used.
Remove coordinator_provider_uri, use of pre_payment_network.provider because all characters now define polygon_endpoint parameter.
2023-10-04 13:30:18 -04:00
derekpierre 33068070fc Rename pre_payment_provider to polygon_endpoint as it pertains to Characters/Configurations/CLI parameters. 2023-10-04 13:30:18 -04:00
derekpierre 4166c7dae9 Rename eth_provider_uri to eth_endpoint as it pertains to Characters/nodes/CLI options. 2023-10-04 13:30:18 -04:00
Kieran Prasch 1858f49a99 tests use the refactored ContractRegistry and RegistrySource interfaces 2023-10-04 19:24:43 +02:00
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 499f903976 Adapt tests and exmaples to merged Operator, without Ritualist. 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 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 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
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
Piotr Roslaniec 748ee2ae55 update pre-released nucypher-core version 2023-08-01 10:25:12 +02:00
derekpierre f3871396ac Use FerveoVariant enum value instead of constant for test. 2023-07-24 08:33:34 -04:00
Kieran Prasch a6a265675d Caracters (config) are blockchainy 2023-06-26 20:42:51 +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
derekpierre c2edb1ceb1 Update code to use newly named Session key objects in `nucypher-core`.
Modify ape-config to use `nucypher-contracts:main` now that associated PR was merged.
2023-06-07 08:07:18 -04:00
derekpierre 7c79a76296 Update changes to include changing `RequestSecretKey.diffie_hellman()` to `RequestSecretKey.derive_shared_secret()`. 2023-06-07 08:07:18 -04:00
derekpierre 71604f251f Use new request keys in `nucypher-core` that use curve 25519 instead of Umbral for decryption request/response encryption.
E2EThresholdDecryptionRequest object is no longer needed as an intermediary since a DH shared secret key is created/used.
2023-06-07 08:07:18 -04:00
Piotr Roslaniec 32cfe08481 fix tests and linter 2023-06-02 11:14:39 +02:00
derekpierre d989445ffc Accomodate latest changes to `nucypher-core`. 2023-05-23 14:59:42 -04:00
derekpierre b5aa20e602 Add tests for use of ThresholdRequestDecryptingPower. 2023-05-23 14:59:42 -04:00
Kieran Prasch ed53696cf4 unskip IP detection CLI tests with required mocks 2022-12-07 11:29:26 +00:00
Kieran Prasch 0222a17c6b Restores unit tests to not compile solidity. 2022-12-07 11:29:26 +00:00
Kieran Prasch fda5c86db2 Removes "decentralized" and "blockchain" differentiation from "federated" 2022-12-07 11:29:26 +00:00
Kieran Prasch 7b7f2f071f Atomically unfederate (most of) the tests; Restores "federated" functionality by way of mocking. Takes advantage of fixture overriding to intercept testerchain. 2022-12-07 11:28:40 +00:00
derekpierre 37ddd90830 Use thread-safe set for caching active ports.
Stop the use of MOCK_URSULA_START_PORT constant which may cause inadvertent port reuse.
Adjust rules for selecting ports to ensure early short circuit for invalid ports.
2022-11-24 10:51:01 -05:00
Kieran Prasch 6ca73c2849 remove lisence header from tests 2022-11-16 13:27:47 +00:00
Kieran Prasch 1b040cf25f Removes db filepath configurations 2022-10-27 10:12:17 +01:00
Kieran Prasch febc6093c1 Removes lmdb datastore usage 2022-10-27 10:12:17 +01:00
Kieran R. Prasch aad511ba30 test adjustments to handle policy registry, in-memory node storage and polygon mocks. 2022-03-22 15:54:36 -07:00
Bogdan Opanchuk 06be01be84 certificate_bytes was renamed to certificate_der 2022-03-13 16:56:09 -07:00