Commit Graph

158 Commits (4865053f8ca48907b386f87c0b37970a85c65747)

Author SHA1 Message Date
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
derekpierre 610f7436f0 Initial work that replaces infix notiation with prefix notation for logical conditions. 2023-06-14 19:38:30 -04:00
derekpierre 26aaf775e3 Change TimeCondition method name to "blocktime" from "timelock". 2023-06-08 11:03:48 -04:00
derekpierre 66f26c032c Change TimeCondition to use block time instead of Ursula system time.
Rename ReencryptionCondition to AccessControlCondition.
2023-06-08 11:03:22 -04:00
Piotr Roslaniec d8b51b6c07 replace ferveo package usage with nucypher core module export 2023-06-01 19:18:05 +02:00
derekpierre eda1fc1a50 Initial changes to conform to latest changes to Coordinator contract in nucypher-contracts. 2023-05-04 17:34:27 -04: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 1c531d1908 Code cleanup around building of documentation, removal of solidity scripts/API docs from docs build, removal of deployer CLI text etc. 2023-05-02 10:23:24 -07:00
derekpierre 1e730b1090 Relock to latest dependencies. Remove unnecessary scripts from Pipfile. 2023-05-02 10:23:24 -07:00
derekpierre f3bb4909fb Add random sampling when creating new ritual instead of using the first two staking providers every time. 2023-05-02 10:23:24 -07:00
derekpierre 1f71020cee Add example execution commands. 2023-05-02 10:23:24 -07:00
derekpierre 593be4f131 Code cleanup. 2023-05-02 10:23:24 -07:00
derekpierre 7151f04191 DKG Ritual Script. 2023-05-02 10:23:24 -07:00
derekpierre bf0d8b7889 Relock dependencies, and include __init__ files for new modules. 2023-05-02 10:23:24 -07:00
derekpierre 31c4ca37a9 Update dependency script to account for command line changes for pipenv when generating requirements. 2023-05-02 10:23:00 -07:00
Kieran Prasch 2d0f02a287 config migration script v4 -> v5 2022-12-22 11:53:01 -08:00
Kieran Prasch 1f86c4c042 Remove federated-based automation and demo support. 2022-12-13 11:35:37 +00:00