Commit Graph

466 Commits (a0bbfa0f59ee67dd6db80f8d764171519912fb65)

Author SHA1 Message Date
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
derekpierre d442375e5f Cleanup of Porter tests to account for duration_periods no longer needed for sampling. 2022-02-08 11:04:27 -08:00
Kieran Prasch b193465f98 adjust tests 2022-02-08 11:03:50 -08:00
Kieran Prasch 1c34045a81 Prepares economics and deployment constants for use with threshold network. 2022-02-08 11:02:17 -08:00
Kieran Prasch 0e148fbfa8 Skip tests 2022-02-08 11:02:02 -08:00
Kieran Prasch 34c79c7830 Require payment method for is_me Ursula and Alice. 2022-02-08 11:01:24 -08:00
Kieran Prasch b36debae5c Introduce PaymentMethod.Quote (calculate valid policy value for SubscriptionManager.createPolicy). 2022-02-08 11:01:24 -08:00
Kieran Prasch bbc509910d Adjust tests to accommodate swapable payment methods. 2022-02-08 11:01:24 -08:00
Kieran Prasch ac1d4b5603 CLI supports payment method configuratiopn by Ursula and Alice. 2022-02-08 11:01:24 -08:00
Damon Ciarelli c1f66c0ef6 ursula pre_application_agent working; contract interactions required to run ursula. 2022-02-08 11:01:24 -08:00
Kieran Prasch 8052585d2a Removes Felix 2022-02-07 12:11:28 -08:00
Bogdan Opanchuk 01179c5df5 [temporary] Check to see how long do performance tests take now 2022-01-09 15:25:04 -08:00
Bogdan Opanchuk a276cfec25 Disband umbral_adapter 2022-01-08 15:29:22 -08:00
Bogdan Opanchuk 8cb8f16370 Clean up Python parts moved to Rust
And some unused imports
2022-01-08 15:29:22 -08:00
Bogdan Opanchuk e5620c3155 Changes to make the tests pass 2022-01-08 15:29:22 -08:00
Bogdan Opanchuk 02bb2e2f76 Import the standalone package instead of nucypher.core 2022-01-08 15:29:22 -08:00
Bogdan Opanchuk 944d3373e7 Normalize the usage of VariableLengthBytestrings
Allow for every Versioned type to be able to deserialize itself from the bytestring.
2021-11-01 13:31:31 -07:00
Bogdan Opanchuk 7197d853d7 Move `signer` to the first position in the parameter list in various core constructors 2021-11-01 13:31:12 -07:00
Bogdan Opanchuk fe02c30fc7 Making names uniform throughout the codebase: policy_key -> policy_encrypting_key
Also change recipient_key to policy_encrypting_key in MessageKit.author(),
now that MessageKit is only used for reencryptable messages.
2021-11-01 13:31:12 -07:00
Bogdan Opanchuk 004aa312f3 Remove signing from MessageKit
Now it's the user's responsibility
2021-11-01 13:31:12 -07:00
Bogdan Opanchuk af404677c7 Make a separately versioned EncryptedKeyFrag instead of using a MessageKit 2021-11-01 13:31:11 -07:00
Bogdan Opanchuk 238a2cfd2a Remove `hrac` from `EncryptedTreasureMap` 2021-10-29 15:06:34 -07:00
Bogdan Opanchuk 4bb6c82014 Stop bundling `publisher_verifying_key` with `EncryptedTreasureMap`
Instead:
- Add it as a parameter to `retrieve_cfrags()`
- Add it to `ReencryptionRequest`
- Remove `EncryptedTreasureMap._public_signature` and `hrac`
2021-10-29 15:06:34 -07:00