Commit Graph

174 Commits (d0c25cf8d4d3e9c754212a0ae90a5b51fe6ea5a9)

Author SHA1 Message Date
Kieran Prasch c6ece16b33
relock dependencies 2023-12-21 09:30:52 -05:00
Kieran Prasch 896dd43a57
removes unused code 2023-12-21 09:30:51 -05:00
Kieran Prasch f40b56b822
bump common python version to 3.12 2023-12-21 09:30:43 -05:00
derekpierre 52b99b375c Clarify help text for access controller cli option in `nucypher_dkg` script. 2023-11-28 13:43:41 +01:00
derekpierre 4bc110422b Update nucypher_dkg script to allow the use of the OpenAccessAuthorizer contract. 2023-11-28 13:43:41 +01:00
derekpierre d6a1e3f01f Update RitualStatus names to match Coordinator contract. 2023-11-17 12:20:36 -05:00
derekpierre 2e64a657c5 Update nucypher_dkg script to use TACoChildApplicationAgent for sampling staking providers. 2023-11-17 12:18:06 -05:00
Kieran Prasch d63a6cb93d Expands domains data model to include condition chains 2023-10-31 17:23:43 +01:00
Kieran Prasch f4caacc4b1 update scripts usage of taco domains; conventionally use str() on domains usages 2023-10-31 14:30:15 +01:00
Kieran Prasch 63b3d4aee9 Use a single collection (SUPPORTED_DOMAINS) for supported domains. 2023-10-31 14:30:15 +01:00
Kieran Prasch 0df05d38f2 Conventionally import (collapsed) domains for namespacing 2023-10-31 14:30:15 +01:00
Kieran Prasch b1afa231d5 use TACoDomain everywhere 2023-10-31 14:30:15 +01:00
Kieran Prasch d0cafca951 removes documentation build support. 2023-10-30 23:13:12 +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
Manuel Montenegro 2e7ecc0d4d
Update relock_dependencies python version to 3.11 2023-10-24 18:58:09 +02:00
derekpierre 4c6a0be937 Use ConditionType enum values instead of constants across codebase. 2023-10-18 20:25:56 -04:00
derekpierre d8b9180921 Update domains/TACoDomain structure.
Added magic methods.
2023-10-05 06:20:13 -04:00
derekpierre 7c4c43b1c8 Fix darker linting issues. 2023-10-04 15:15:06 -04:00
derekpierre bee3c926d4 Rename networks module to domains, and remove NetworksInventory class; module contains all values and methods now. 2023-10-04 13:30:18 -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 eafe4b65a9 Rename provider_uri parameter for ContractAgents.get_agent to blockchain_endpoint. 2023-10-04 13:30:18 -04:00
derekpierre fa4051d504 Rename Eth/PolyNetwork to Eth/PolyChain to better reflect their usage. 2023-10-04 13:30:18 -04:00
derekpierre 45f00c20db Rename members in ChainInfo to avoid smurfing. 2023-10-04 13:30:18 -04:00
derekpierre d3e175a800 Update nucypher_dkg script to accomodate naming/philosophy changes regarding not needing redundant parameters for associated polygon network. 2023-10-04 13:30:18 -04:00
derekpierre 0411ab4be6 Update nucypher_agents script. 2023-10-04 13:30:18 -04:00
Kieran Prasch e1f81d9a5e nucypher packages Base|InMemory|ContractRegistry -> ContractRegistry 2023-10-04 19:24:43 +02:00
derekpierre 6d85c3e3bb Move known test enrico private key to tests constants file. 2023-09-28 09:35:17 -04:00
LunarBytes e81512d2d7
Merge pull request #3254 from KPrasch/dkg_script
Update DKG dev script to work on Lynx (`dkg-dev-13`)
2023-09-28 09:59:42 +02:00
derekpierre 3f54b5e4f6 Update nucypher_agents.py scripts to create/provide latest contract agents.
Use click for providing parameterized values to the script.
2023-09-27 18:41:20 -04:00
derekpierre 1ed8ab9be2 Lazily initialize signer only when needed so that script can be run to utilize ritual that default enrico already authorized for. 2023-09-27 16:41:27 -04:00
derekpierre 16806b1b5b Update nucypher_dkg script to work on Lynx.
Since Enrico requires authorization to use rituals:
- provide default enrico (same account every time script is run), or the option for random enrico.
- prompt if Enrico isn't already authorized, to allow for authorization to occur
Provide duration when initiating a ritual (default is 24 hours).
2023-09-27 16:07:35 -04:00
Kieran Prasch 684fa93bf1 Updates scripts/hooks/dkg.py to use on-chain authorizations 2023-09-27 19:34:01 +02:00
derekpierre 243448d015 Bob no longer needs ritual id as a parameter for decrypting the threshold message kit since the Coordinator contract can be used for obtaining the ritual id from the dkg public key which is already stored in the threshold message kit. 2023-09-11 11:50:54 -04:00
derekpierre e943ca7b8f Rename PREApplicationAgent to TACoApplicationAgent; also rename associated variables/comments etc. 2023-09-08 09:27:04 -04: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 13fe740c9a Update Enrico.encrypt_for_dkg to return DkgMessageKit shim. 2023-08-27 03:18:08 +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
Kieran Prasch c03065c464 configuration file migration v4 to v6 2023-08-23 10:28:16 +02:00
derekpierre 112f9729b4 Collect results for multiple rituals and print results. 2023-07-09 04:42:35 -04:00
derekpierre 0659e5cc93 Add --num-rituals option to specify number of rituals to create. If > 1 the rituals are created and results printed - the script does not test the ritual using encryption/decryption. 2023-07-08 03:03:47 -04:00
derekpierre d61f390062 Add option for dkg-size to be specified. 2023-07-08 03:03:47 -04:00
derekpierre da8147f86b Only skip node if on `lynx`. 2023-07-06 10:37:34 -04:00
derekpierre e6e59a225b Make default ritual id value -1 i.e. create new ritual unless a ritual id is provided. 2023-07-05 09:15:05 -04:00
derekpierre bb35850efe Use click options for dkg script and test ritual initialization. 2023-07-04 14:56:51 -04:00
derekpierre b911980b27 You win darker. 2023-06-27 09:42:58 -04:00
derekpierre a0a14e229a Update `nucypher_dkg` hook/script to use separate provider uri for eth staking network and coordinator network. 2023-06-27 09:21:38 -04:00
Kieran Prasch fdb28dd21e Improves multichain provider internal routing correctness. 2023-06-26 20:42:51 +02:00
derekpierre fa40b32620 Fix conditions used in scripts/examples - should be versioned. 2023-06-15 08:56:30 -04:00