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
KPrasch
bc54e11948
Merge pull request #3130 from KPrasch/development
...
Polygon ecosystem DKG coordination (Alpha 4)
2023-06-07 12:30:58 +02:00
Piotr Roslaniec
32cfe08481
fix tests and linter
2023-06-02 11:14:39 +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
Kieran Prasch
0c6e52c4ea
hacking
2023-05-24 20:22:57 +02:00
Kieran Prasch
7f2abd101e
Ritualist uses the same web3 instsance as the coordinator agent.
2023-05-24 20:22:57 +02:00
Kieran Prasch
f0040c2e83
add polygon to POA default
2023-05-24 20:22:57 +02:00
Kieran Prasch
24d7f77e74
routing th correct registry to ritualists
2023-05-24 20:22:57 +02:00
Kieran Prasch
24908aa80c
mock payment provider for Vladimir
2023-05-24 20:22:57 +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
derekpierre
3e498a3751
Some initial refactoring so that Bob and Porter can use the same code for making threshold decryption requests (akin to PRE retrieval).
2023-05-11 10:44:05 -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
c85f1f2f59
assorted bugfixes related to fixtures and testerchain arising from the migration to ape.
2023-05-02 10:23:24 -07:00
Kieran Prasch
6617e08527
disable ape test plugin during unit and integration tests.
2023-05-02 10:23:24 -07:00
derekpierre
c157c8ccf7
Fix some tests; ERC721 contract needs to be deployed on APE, and MockContractAgency import is now inlined.
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
Kieran Prasch
e20cc7f96f
public exposure of per-request ferveo variant, ferveo==0.1.7 and nucypher-core integration of ThresholdDecryptionRequest and Response
2023-05-02 10:23:24 -07:00
derekpierre
b4673ac39f
Got some dkg unit and integration tests passing. There are more tests to make pass.
2023-05-02 10:23:24 -07:00
Kieran Prasch
35baaad87c
fervero/node integration test with mocked blockchain
2023-05-02 10:23:00 -07:00
Kieran Prasch
33bcea650d
DKG encryption functionality for Enrico
2023-05-02 10:23:00 -07:00
Kieran Prasch
0320468082
Adds transcript test data, ensure tls certs are derived.
2023-05-02 10:22:28 -07:00
Kieran Prasch
fff6728a32
three-layered testing of DKG rituals
2023-04-20 07:10:45 -07:00
derekpierre
216e2e5476
Update tests after rebase.
2022-12-23 09:13:41 -05:00
derekpierre
87fb4ba7c9
Add tests to ensure that mapping of status codes to middleware exceptions are correct.
...
General tests cleanup.
2022-12-23 09:13:41 -05:00
derekpierre
6772d02755
Improved testing of mapping condition failure to middleware exception creation.
...
Reduce redundant wording of NoConnectionToChain exception handling.
2022-12-23 09:13:41 -05:00
derekpierre
23920fd5a3
Use decoded text from failed HTTP responses for exception messages instead of the raw content which is bytes.
2022-12-23 09:13:41 -05:00
derekpierre
e43637e1fd
Remove lingering references to CircleCI which is no longer used.
2022-12-23 09:12:48 -05:00
derekpierre
9b0f645be7
Remove tests for deployment of deprecated contracts.
...
Code cleanup of docstrings and comments.
2022-12-22 15:07:52 -05:00
derekpierre
889cc58a88
Remove code/tests that still reference the legacy notion of periods.
2022-12-22 15:05:50 -05:00
Kieran Prasch
3d60d8ebdc
Respond to RFCs in PR #3030
2022-12-22 10:10:19 -08:00
jMyles
ff2b98c30c
The 'big_testerchain' concept didn't work out; cleaning it up. Leaving it in the history for research purposes.
2022-12-07 11:29:26 +00:00
jMyles
97b19ea3e4
Fake addresses for fake Ursulas. Good enough for these highperf tests.
2022-12-07 11:29:26 +00:00
jMyles
52dcd13a53
The first idea - a bad one - in response to the need for a large fleet of Ursulas for performance tests. It's way too slow to try to make them all on a testerchain.
2022-12-07 11:29:26 +00:00
Kieran Prasch
dd87e3459d
unskips test_use_external_cache, bumps fixturized policy to 3 of 5.
2022-12-07 11:29:26 +00:00
Kieran Prasch
ed53696cf4
unskip IP detection CLI tests with required mocks
2022-12-07 11:29:26 +00:00
Kieran Prasch
67619c7ee1
remove more blockchain language
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
derekpierre
d5e18dc56e
Move common test function to utility module.
2022-11-21 12:53:25 -05:00
derekpierre
d540846163
Add additional tests for ConditionLingo, and empty rust Conditions on MessageKits.
2022-11-18 14:52:49 -05:00
derekpierre
4cf9c7c70a
Enrico now provides condition as actual None with no conditions are provided instead of an empty Conditions object.
...
Utilize better typing of condition dictionaries and its values.
Allow validation of conditions data without instantiation.
2022-11-18 10:33:15 -05:00
derekpierre
c046e91e0b
Add test to replicate failure case where Conditions are None instead of an empty Condition object.
2022-11-17 16:12:04 -05:00
Kieran Prasch
6ca73c2849
remove lisence header from tests
2022-11-16 13:27:47 +00:00
Kieran Prasch
961faf04f7
Regression test for unintentional reencryption upon falsy conditions.
2022-11-11 17:39:58 +00:00
Kieran Prasch
73b6b8d15d
Removes WebController and WebEmitter
2022-10-27 21:14:34 +01:00
Kieran Prasch
d1269d1507
atomically extricate porter to nucypher/nucypher-porter
2022-10-27 17:26:32 +01: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 Prasch
17d3888c4d
Remove unused specifications, consolidate the remaining ones for use by porter alone.
2022-10-26 13:55:38 +01:00
Kieran Prasch
2c4634acea
Removes RPCController and Web controller functionality
2022-10-25 17:35:25 +01:00
Kieran Prasch
07bf78d9ff
Removes Web and RPC controller entities
2022-10-25 17:35:25 +01:00
Kieran Prasch
5fd04472ab
Support for nucypher-core Address and updates ReencryptionResponse function signature
2022-10-18 20:10:38 +02:00
Kieran Prasch
9ae4d5c966
to/from wei method updates for web3 v6+ support
2022-10-18 20:10:37 +02:00
Kieran Prasch
aa05019a68
Handle rust-native conditions newtype just-in-time; Co-existing with ConditionsLingo
2022-10-18 20:09:26 +02:00
derekpierre
ed6227ad09
Code cleanup and additional tests..
2022-10-18 20:09:25 +02:00
derekpierre
e5fb972d2a
Initial work for propagating errors that occur during Porter.retrieve_cfrags and communicating them back to the caller in Porter's response.
2022-10-18 20:09:25 +02:00
derekpierre
31e961d458
Fix randomly failing test (regression) - context is not a required parameter.
2022-10-18 20:09:25 +02:00
derekpierre
dc52a58590
Allow for optional enforcement of type safety for the JSON field. The Porter retrieval endpoint will enforce a dictionary type for the `context` parameter..
...
Updated tests.
2022-10-18 20:09:25 +02:00
derekpierre
d77fac4d39
Allow context to be specified as JSON and not base64 JSON.
...
Remove retrieve tests that utilize url parameters since it is a POST endpoint.
2022-10-18 20:09:25 +02:00
derekpierre
15cb062940
Added some tests that provide a context for re-encryption.
2022-10-18 20:09:25 +02:00
derekpierre
40e2c5c0ea
Initial work to have Porter provide 'context' for condition-based re-encryption when applicable.
2022-10-18 20:09:25 +02:00
Kieran Prasch
0acfc7e381
Support for web3.py v6
2022-10-18 20:08:52 +02:00
Kieran Prasch
0608608460
Capsule filtration bugfixes
2022-10-18 20:08:52 +02:00
Kieran Prasch
b7145c0ab4
Remove core shims; Refactor for mk-embedded conditions.
2022-10-18 20:08:51 +02:00
derekpierre
8a482d9389
Ensure delimiter is used as a single byte, and not a bunch of 0 bytes. Fixed test.
2022-10-18 20:07:58 +02:00
Kieran Prasch
72c6bd5295
Refactoring for interop with nucypher-ts
2022-10-18 20:07:58 +02:00
Kieran Prasch
74a0465cf3
Track lingos and capsules as packets; First working e2e flow.
2022-10-18 20:07:58 +02:00
Kieran Prasch
249c74eb31
Updates tests
2022-10-18 20:07:58 +02:00
Kieran Prasch
d9f67f30ce
Install nucypher core shims for conditions
2022-10-18 20:07:57 +02:00
James Campbell
aff2f7bb2e
Add network_type to network selection in cli to differentiate between eth and polygon
2022-05-03 09:52:46 +03: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
Kieran Prasch
73b238a587
Removes staking entities
2022-02-21 17:17:11 -08:00
Kieran Prasch
d2852c9e71
Removes discrete staker modules
2022-02-21 17:08:05 -08:00
vzotova
856abe4892
Renames `provider_uri` to `eth_provider_uri`
2022-02-18 11:27:15 +03:00
vzotova
a50b56de57
Fix bond cli and tests
2022-02-15 14:01:04 +03:00
Kieran Prasch
592229025f
Check if an operator address is already bound to another staking provider if sp is unbound.
2022-02-14 12:04:49 -08:00
Kieran Prasch
5f3437091a
Fast integration tests for bonding CLI using mocks.
2022-02-14 11:41:26 -08:00
vzotova
7c437b37b8
Removes `WorkLock` contract/agent/deployer and cli
...
Co-authored-by: Kieran Prasch <kieranprasch@gmail.com>
2022-02-10 20:19:21 +03:00
vzotova
ecac8017ed
Removes PolicyManager and StakingInterface
2022-02-09 14:24:26 +03:00
Kieran Prasch
5014209eeb
retire multisig tools
2022-02-08 11:11:22 -08:00