Commit Graph

10917 Commits (0f29569568374048cc56fc2a668a862ac287706c)

Author SHA1 Message Date
derekpierre 30cb008618 Update dev version of `nucypher-core` to use. 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 68e9e3d195 Fix alignment to make linter happy. 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 12f4f43b5d Fix serialization of updated FerveoVariant - workaround since I'm dealing in Python space and not `nucypher-core`. 2023-08-27 03:19:28 +02:00
derekpierre fc9edd9ed4 Move KEM/DEM logic to ThresholdMessageKit, and add ACP.aad() function - the AAD can be controlled by versioning but the TMK dictates the AAD and so must be linked somehow with the ACP.aad() function. For now this is done via a compatibility check function. 2023-08-27 03:19:28 +02:00
derekpierre 51e78a14cf Use fernet symmetric encryption as a stop gap measure until ferveo provides kem/dem functionality. 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 8c959e0c2b Pretend that we receive a kem_ciphertext and dem_ciphertext from ferveo - fake it for now by using the same ciphertext for both. ThresholdMessageKit includes both ciphertexts, but the ThresholdDecryptionRequest only requires the kem_ciphertext. 2023-08-27 03:19:28 +02:00
derekpierre d55a95644f Use ciphertext hash as the digest value when determining whether the encrypted data was produced by an authorized party. 2023-08-27 03:19:28 +02:00
derekpierre 6bb6d0cc56 Fix chaotic characters to work with latest ThresholdDecryptionRequest modifications. 2023-08-27 03:19:28 +02:00
derekpierre 98cbe16be3 Add the ability for Ursula to use the ACP, obtained from the modified ThresholdDecryptionRequest, to check whether the data is encrypted by an authorized party.
Stub method added to CoordinatorAgent for now.
2023-08-27 03:19:16 +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
derekpierre 3c37cf66b8 Initial ACP/MessageKit structures. These will end up in `nucypher-core` but easier to work with and refine in Python/`nucypher` for now.
Use Ciphertext object for now.
2023-08-27 03:18:08 +02:00
Kieran Prasch 8fcc54cfd1 multichain compound tdec example 2023-08-27 03:13:30 +02:00
Kieran Prasch c47bfd3d77 explictly exit and exit loop during migrate command line 2023-08-27 02:50:29 +02:00
Kieran Prasch 3ad0535e47 ensure config muatations are returned from migrations method, remove unused migration field. 2023-08-27 02:42:24 +02:00
Kieran Prasch 7826c1b5fa bugfix: Attribute error for 'RPCCondition.w3' upon POA injection 2023-08-27 00:50:54 +02:00
Kieran Prasch fc5ae1b1b1 add missing 'conditionType' field in examples. 2023-08-27 00:49:22 +02:00
Kieran Prasch 96c2adf7f5 bugfix: migration 'condition_providers' -> 'condition_provider_uris' 2023-08-27 00:13:38 +02:00
LunarBytes 2fc713bc15
Merge pull request #3207 from KPrasch/migrations
Automated Configuration Migrations
2023-08-26 23:49:27 +02:00
Kieran Prasch 44d36df40f bugfix: restore v5 -> v6 migration listing. 2023-08-25 14:58:32 +02:00
Kieran Prasch de381f7f6a Use migration-specific error handling within the migration CLI. 2023-08-25 14:48:35 +02:00
Kieran Prasch 2cc4b468f1 Implements common config migration functions 2023-08-25 14:47:21 +02:00
Kieran Prasch acfc455a89 Encapsulate common configuration migration functionality 2023-08-25 14:46:04 +02:00
Kieran Prasch bcf91ef53a newsfragment for PR #3207 2023-08-24 16:48:40 +02:00
Kieran Prasch 0cfd012300 Introduces `nucypher ursula config migrate` CLI command in preperation for nucypher-ops migration automation.
Co-Authored-by: James Campbell <james.campbell@tanti.org.uk>
2023-08-24 16:42:39 +02:00
Kieran Prasch 61a71fd02a relocates migrations functions to nucypher.config
Co-Authored-by: James Campbell <james.campbell@tanti.org.uk>
2023-08-24 16:41:23 +02:00
LunarBytes 1be01949a7
Merge pull request #3205 from KPrasch/chain-broadcast
Multichain connection broadcasting endpoint for Ursula
2023-08-24 15:00:55 +02:00
Kieran Prasch f44bccf554 newsfragment for PR #3205 2023-08-24 14:37:36 +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
Kieran Prasch 4761675770 Define conditions chain broadcast endpoint for ursula 2023-08-24 14:16:09 +02:00
LunarBytes 6a559cbb13
Merge pull request #3204 from KPrasch/condition-type
includes a few missing 'contractType' fields in condition tests.
2023-08-24 13:20:43 +02:00
Kieran Prasch d2ab192c4c newsfragment for PR #3204 2023-08-24 12:16:42 +02:00
Kieran Prasch 34b08247f9 includes a few missing 'contractType' fields in condition tests. 2023-08-24 12:13:58 +02:00
LunarBytes 0c3f406482
Merge pull request #3202 from manumonti/fix-prometheus
Fix Prometheus import error when running Porter
2023-08-24 11:45:28 +02:00
LunarBytes f6ee932dac
Merge pull request #3201 from nucypher/condition-type
Add `condition_type` to condition schemas
2023-08-24 11:44:01 +02:00
LunarBytes df01e85a25
Merge pull request #3203 from manumonti/fix-prometheus-test
Fix Prometheus staking provider metrics test
2023-08-24 11:31:30 +02:00
Manuel Montenegro 545fe3b03f
Fix Prometheus import error when running Porter
Commit a4de8a88 introduced amazing changes and solved linting errors
like F821. To achive it, this change introduced the import of
PrometheusMetricsConfig in lawful.py, which is dependant of
prometheus-client package.

Ursula imports prometheus-client, so no problem with this. But Porter
does not. So a import error is raised when Porter is run.

Also, a remaining TODO comment has been cleaned. This TODO is part of a
larger comment and was introduced in commit 424e373a and solved
afterwards.
2023-08-24 10:19:49 +02:00
Piotr Roslaniec aa1dbbade3
Fix Prometheus staking provider metrics test
Commit fb32b081 made eth_provider_uri argument mandatory when creating
a StakingProviderMetricsCollector object. This change was not reflected
in test_prometheus_collectors.py, causing the test fails.
2023-08-24 09:59:37 +02:00
Piotr Roslaniec e07101e68b fix a failing test after a rebase 2023-08-23 20:35:58 +02:00
Piotr Roslaniec c19d97b39f apply pr suggestions 2023-08-23 20:12:22 +02:00
Piotr Roslaniec 097ffad90e feat!: add condition type to condition schemas 2023-08-23 20:07:24 +02:00
LunarBytes c8e1c9b46e
Merge pull request #3185 from KPrasch/multichain
Multichain Condition Evaluation and Fallback
2023-08-23 18:54:08 +02:00
LunarBytes 6c42797293
Merge pull request #3199 from manumonti/prometheus
Fix staking metrics in Prometheus exporter
2023-08-23 11:36:39 +02:00