Commit Graph

10851 Commits (c0c77b3eb67e2ef733857a6b8f9b8433d3e071df)

Author SHA1 Message Date
jMyles ef0668875c Turns out we don't even need to override anything on this Enrico except __init__, for the moment. 2023-07-06 13:19:33 +02:00
jMyles b4fab45eb1 Simple test showing the 'always decrypts' tool. 2023-07-06 13:19:33 +02:00
jMyles 3bf02094a0 Adding classes for tools the Bobs who always decrypt and always fail. 2023-07-06 13:19:33 +02:00
Justin Holmes 266c00a378 Stuck in the middle with you.
Co-authored-by: Owen Campbell <owen.campbell@tanti.org.uk>
2023-07-06 13:19:33 +02:00
Justin Holmes 96c616c3c2 No reason to have the default value here.
Co-authored-by: Owen Campbell <owen.campbell@tanti.org.uk>
2023-07-06 13:19:33 +02:00
Justin Holmes d91686c5e1 Yeah, why are we still using lambdas for this sort of thing?
Co-authored-by: Owen Campbell <owen.campbell@tanti.org.uk>
2023-07-06 13:19:33 +02:00
jMyles 2c3951bd35 Method for decrypting using an existing tdr - also allowing subclassing of _decrypt so that the behavior of this message can be customized. 2023-07-06 13:19:33 +02:00
jMyles edfb694263 Making variant also optional into Enrico. 2023-07-06 13:19:33 +02:00
jMyles 586b6b6d9b This is supposed to be precomputed anyway, right? 2023-07-06 13:19:33 +02:00
jMyles 5917fbcaa2 Moving sanity check into method. 2023-07-06 13:19:33 +02:00
jMyles 7db3b203fb Passing ValidatorMessages instead of tuples now. 2023-07-06 13:19:33 +02:00
jMyles 762e4508e9 LingoList -=> Lingo in example. 2023-07-06 13:19:33 +02:00
jMyles d279527af1 Not doing params anymore. 2023-07-06 13:19:33 +02:00
jMyles 32adb5cb72 Updating example to use prefix notation. 2023-07-06 13:19:33 +02:00
jMyles 8d90eb0d71 Bob needs a provider URI, but can be fake here. 2023-07-06 13:19:33 +02:00
jMyles db346b6fa1 Makes more sense to instantiate the power outside the loop. 2023-07-06 13:19:33 +02:00
jMyles 61c58ac6c9 Updating comments. 2023-07-06 13:19:33 +02:00
jMyles 6608f75597 No longer None - must actually pass (fraudulently discerned) public params. 2023-07-06 13:19:33 +02:00
jMyles 4d5fec8889 No need to override threshold_decrypt at all anymore. 2023-07-06 13:19:33 +02:00
jMyles c2a257f888 Using Simple as default for the moment. 2023-07-06 13:19:33 +02:00
jMyles ac43ea5eb7 After all, it's neither Fake nor a Ritual. 2023-07-06 13:19:33 +02:00
jMyles cb4847401a Confirmatory conculsion. 2023-07-06 13:19:33 +02:00
jMyles 863daeb4d4 Core of decryption logic replaced with local call. 2023-07-06 13:19:33 +02:00
jMyles 1d5dc6c51e Needing to overriding this method. 2023-07-06 13:19:33 +02:00
jMyles c0991e0b62 Casting to bytes for comparison. 2023-07-06 13:19:33 +02:00
jMyles b2c3a9070e Sharing secret seeds across the DKGOmnicient. 2023-07-06 13:19:33 +02:00
jMyles b0a0f3207c Each DKGInsight gets a FakeRitual. 2023-07-06 13:19:33 +02:00
jMyles 3bb675dcff Mechanics to provide information consistent with the Ursula and Ritual APIs for Bob's internals. 2023-07-06 13:19:33 +02:00
jMyles 860c86b881 Toward full compatibility (in fact, no override) of threshold_decrypt 2023-07-06 13:19:32 +02:00
Owen Campbell 588b5f72b9
Split gh action for ruff into separate workflow 2023-07-06 11:34:41 +01:00
Owen Campbell 64aeff736d
Add newsfragment for 3165 2023-07-05 17:11:00 +01:00
derekpierre 09e3622f00 Revert dependency updates, and only add ruff dependency. An actual relock of dependencies will need to be done another time. 2023-07-05 11:29:13 -04:00
Derek Pierre 0198697beb
Merge pull request #3169 from derekpierre/clickerize-script
Update dkg script to use `click` options - exec args were getting complex
2023-07-05 10:44:30 -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 11c4b0c02f Add dev newsfragment for #3169. 2023-07-04 15:01:36 -04:00
derekpierre bb35850efe Use click options for dkg script and test ritual initialization. 2023-07-04 14:56:51 -04:00
jMyles 9c290820a9 Using custom client to produce shares as side channel, etc. 2023-07-02 21:24:04 +02:00
jMyles c9262a33c8 Variant optionality pattern for Bob, matching Enrico. 2023-07-02 21:24:04 +02:00
jMyles 8e40988fa2 Moving most boilerplate logic out of demo and into demo tooling. 2023-07-02 21:24:04 +02:00
jMyles a0415db198 Interfaces to support local simulation of DKGs for frontend development. 2023-07-02 21:24:04 +02:00
jMyles 3de7ffb52d Overriding variant is a fairly unusual situation - let's bind a default value to the class and let the user subclass if they need to do this. 2023-07-02 21:24:04 +02:00
jMyles 5282e8ddaf Beginnings of local tdec demo, with parts borrowed from ferveo demo. 2023-07-02 21:24:04 +02:00
jMyles 8775d69e87 Beginning separation of simple tdec demos into 'using testnet' and local. 2023-07-02 21:24:04 +02:00
Owen Campbell cd38394c8a
Rebuild dependencies files 2023-06-29 14:18:53 +01:00
Owen Campbell a08f95872d
Merge branch 'development' into 3163-linter-config 2023-06-29 14:13:41 +01:00
James Campbell 19d594a64e
Merge pull request #3162 from meatballs/3161-undefined-name-errors
Fix undefined name errors
2023-06-29 15:06:28 +02:00
Owen Campbell 93b096877e
Rebuild dev requirements to include ruff 2023-06-29 12:41:35 +01:00
Owen Campbell a7b9d35d88
Remove isort option from darker gh action workflow 2023-06-29 12:41:09 +01:00
Owen Campbell 1cc401a743
Fix unused import error 2023-06-29 12:00:03 +01:00
Owen Campbell a457245501
Fix I001 (import sorting) errors 2023-06-29 11:59:27 +01:00