getamis / alice

Hierarchical Threshold Signature Scheme
Apache License 2.0
368 stars 75 forks source link

CGGMP ECDSA DKG Hanging after Decommit #291

Closed blakeofwilliam closed 3 months ago

blakeofwilliam commented 3 months ago

Is this a BUG REPORT or FEATURE REQUEST?: Potential bug report.

What happened:

I'm running the TSS DKG operation for ecdsa with 2 parties, a threshold of 2, and a rank of 0. I have replaced the libp2p implementation with a WebSocket implementation.

I've confirmed that message are being sent and received between the two parties by logging the messages added via dkg.AddMessage() and the message sent via peerManager.MustSend().

However, after the Decommit message, no further messages are being sent or received. It simply hangs until I kill my service.

What you expected to happen:

I'd expect the verification process to complete after the decommit message is added to DKG allowing DKG to eventually complete.

How to reproduce it (as minimally and precisely as possible):

Clone this repo and run the client and server using the instructions in the README.

Make a GET request to http://localhost:3001/v1/generate.

You'll see the messages logged up to the point of Decommit on both the server and client services, and it will hang after Decommit.