Closed mimoo closed 9 months ago
some example code https://github.com/sigma0-xyz/zkbitcoin/pull/9
@mimoo Can you please review this? I added the code for randomizing and adding concurrency to selecting members. https://github.com/sigma0-xyz/zkbitcoin/compare/main...thogiti:zkbitcoin:randm-concurrent-orchestrator
ah nice! if you create a PR I can comment on it :o
Currently the orchestrator chooses a non-random set of
threshold
nodes to perform a signature.See https://github.com/sigma0-xyz/zkbitcoin/blob/main/src/committee/orchestrator.rs#L81
right after these lines, we perform two rounds of the signature protocol. These two rounds are sequential (round 2 must come after round 1 is finished), but within a round the request to the MPC nodes can be done concurrently!
Furthermore, I think we should reach everyone at round 1, then ignore (and log) the ones that don't respond, and once we get a threshold go to round 2 only with that threshold (the first
threshold
nodes that respond basically).The code: