Commit Graph

10472 Commits (ac0296037dbb211f86969600e9f1285ea6cb79b3)

Author SHA1 Message Date
derekpierre ac0296037d Some code cleanup. 2023-05-23 14:59:42 -04:00
derekpierre 52065dcb04 Use proper EncryptedThresholdDecryptionRequest/Response types so that we aren't just passing bytes around. 2023-05-23 14:59:42 -04:00
derekpierre 787d7d3e56 Update code to handle E2EE changes to Coordinator contract, and use ThresholdRequestDecryptingPower to perform E2EE decryption requests. 2023-05-23 14:59:42 -04:00
derekpierre 549252033c Add ThresholdRequestDecryptingPower class and functionality. It is a DerivedKeyBasedPower based on ritual id. 2023-05-23 14:59:42 -04:00
Derek Pierre 5a06721d7d
Merge pull request #3128 from jMyles/decryption-request
Methods for Enrico and Bob to create and then use serialized ThresholdDecryptionRequests.
2023-05-23 10:12:01 -04:00
Derek Pierre 3efbeafbfc
Apply RFC from #3128
Co-authored-by: piotr-roslaniec <39299780+piotr-roslaniec@users.noreply.github.com>
2023-05-23 10:08:33 -04:00
Derek Pierre 8b205ad443
Merge pull request #3126 from derekpierre/bob-porter-conjoined
Ensure that Bob and Porter can use common code for making Threshold Decryption Requests
2023-05-23 10:07:54 -04:00
jMyles 469ffc3e1e Separating creation of decryption request from the actual retrieval flow, so that pre-serialized decryption requests can be used. 2023-05-11 17:12:52 -04:00
jMyles e1dcaab7fb Moving decryption request creation outside loop - it doesn't need to occur per iteration; just once is fine. 2023-05-11 16:39:27 -04:00
jMyles a577bd709e Method for Enrico to produce a TDreq during encryption, so that it can be serialized and passed via a side-channel. 2023-05-11 15:18:29 -04:00
derekpierre 4265c30794 Add newsfragment for #3126. 2023-05-11 10:47:45 -04:00
derekpierre bc8cb48c70 Add tests for BatchValueFactory, and fix issues. 2023-05-11 10:44:05 -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
KPrasch e7be4d5f7b
Merge pull request #3124 from theref/registry
Add StakeInfo and Coordinator abis to mumbai registry
2023-05-09 10:30:37 -07:00
James Campbell 23656b7c48 Add StakeInfo and Coordinator abis to mumbai registry 2023-05-09 19:01:37 +02:00
Derek Pierre 2310793b50
Merge pull request #3121 from derekpierre/56-to-48
Update code to handle DkgPublicKey now being 48 bytes instead of 56 bytes
2023-05-08 09:43:09 -04:00
derekpierre ae3f267fb6 Use ferveo 0.1.11 so that DkgPublicKey.serialized_size() can be used. Updated some typehints. 2023-05-08 09:14:30 -04:00
derekpierre fe62f3cabb Add newsfragment for PR #3121. 2023-05-06 21:17:24 -04:00
derekpierre cab43f898f Update ferveo dependency to 0.1.10 as the minimum. 2023-05-06 21:15:37 -04:00
derekpierre de926000b4 Update code to handle DkgPublicKey now being 48 bytes. 2023-05-06 13:15:48 -04:00
derekpierre 048a8ea3fc Link to ferveo issue due to incorrect public key bytes length. 2023-05-05 14:41:15 -04:00
KPrasch 6ae572b3cf
Merge pull request #3088 from KPrasch/ritual
Enable simple variant threshold decryption
2023-05-05 10:44:56 -07:00
Kieran Prasch e18a3470a0 only test rituals with dkg size < 10 for now 2023-05-05 10:18:23 -07:00
Kieran Prasch 365c780eab newsfragment for PR #308 2023-05-05 10:06:55 -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
KPrasch 20d750a1c6
Merge pull request #3117 from derekpierre/coordinator-2
Update `Coordinator` usage and `ferveo==v0.1.8`
2023-05-04 15:19:09 -07:00
derekpierre 149d16c0b3 Ensure that start block for DKG event scanning is never negative.
Stop RitualTracker when Ursula stops.
Cleanup test.
2023-05-04 17:35:53 -04:00
derekpierre 782f65691e Use FAKE_TRANSCRIPT constant for unit tests. 2023-05-04 17:35:52 -04: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 4f5a220ea4 fix missing imports 2023-05-04 13:35:40 -07:00
KPrasch 6792454d13
Merge pull request #3119 from KPrasch/development
Improves testerchain deployment configuration
2023-05-04 12:28:43 -07:00
Kieran Prasch ec48a96532 Improves testerchain deploy configuraion YML support. 2023-05-04 10:15:17 -07:00
Kieran Prasch 78b18863d4 removes nightly pytest markers 2023-05-04 10:15:17 -07:00
Derek Pierre 0de72d0d37
Merge pull request #3083 from nucypher/tdec
[EPIC] DKG and Threshold Decryption Support (Alpha)
2023-05-03 14:56:48 -04:00
Kieran Prasch a7e8b23b91 newsfragment for PR #3083 2023-05-02 17:53:10 -07:00
KPrasch 8a2e8a9bd9
Merge pull request #3115 from derekpierre/dependency-hell
Dependency Hell 🔥
2023-05-02 13:39:48 -07:00
derekpierre 94a41bd4c0 Relock dependencies using python 3.8; ensure that 3.8 is used by the script.
Update github action to use 3.8 instead of 3.7; update pypi classifiers.
2023-05-02 15:51:16 -04:00
derekpierre 1e07a4a43d Obtain the acceptance test code coverage files from the correct directory. 2023-05-02 14:43:41 -04:00
jMyles bce2ed8607 Replacing pysha3 with keccak implementations from eth-hash and eth-utils. 2023-05-02 10:23:24 -07:00
Kieran Prasch 7befe20cf3 Respond to RFCs in PR #3005 2023-05-02 10:23:24 -07:00
Kieran Prasch 81e8941a06 re-enable SubscriptionManager payment verification. 2023-05-02 10:23:24 -07:00
derekpierre 0e65cb3004 Don't modify pip install in Dockerfile since requirements.txt is now being configured for the correct versions of nucypher-core/ferveo which may/may not be git refs. 2023-05-02 10:23:24 -07:00
Kieran Prasch 99732b8edd re-enable integration tests 2023-05-02 10:23:24 -07:00
Kieran Prasch 1725d994fc relock dependencies for nucypher-core==v0.7.0 2023-05-02 10:23:24 -07:00
derekpierre 62bb30bd7b Update github action workflow for running python tests for CI. 2023-05-02 10:23:24 -07:00