bnb-chain / tss-lib

Threshold Signature Scheme, for ECDSA and EDDSA
MIT License
790 stars 271 forks source link

when can i use party.Waitingfor() #172

Open kolvin2016 opened 2 years ago

kolvin2016 commented 2 years ago

how to use waitingfor method ,can give a simple demo or explain when to use it

yycen commented 2 years ago

The state list ok[j] stores whether parties[j] has sent his message. The method returns the parties that have not receive message from yet. For example, if network disconnected for some party, other parties will find themself waitingfor the disconnected party.

Aseyed commented 1 year ago

How this function can be useful? What can I do if parties are waiting for someone? Assume the number of parties is more than t+1, and they are waiting for one party. Can I skip it if still t+1 condition is true? Or does the protocol handles the situation and can finish the process?