bnb-chain / tss-lib

Threshold Signature Scheme, for ECDSA and EDDSA
MIT License
755 stars 260 forks source link

Which branch has the best performance in this project #154

Open yandc opened 2 years ago

yandc commented 2 years ago

I am developing a web program, which needs to be converted to js interface through wasm technology.

The performance of the main branch is too poor. Performance analysis found that the main time is spent on the internal calculation of the protocol, such as BobMid, BobMidWC, etc.

So, I am looking at which branch has better performance. It seems to be gg20 at present, but I am very puzzled whether these branches are stable.

yycen commented 2 years ago

As far as my knowledge, there are small difference in performance across different branches. The BobMid subroutine is called for every pair of participants. So it is better to keep the number of the threshold participants small. For gg20, the code has been audited, it is generally no problem to use it. If you are not stick to ECDSA, you can try to use Schnorr scheme, or currently we have Eddsa in main branch, it is much faster than ECDSA.

zargarzadehm commented 1 year ago

I am developing a web program, which needs to be converted to js interface through wasm technology.

The performance of the main branch is too poor. Performance analysis found that the main time is spent on the internal calculation of the protocol, such as BobMid, BobMidWC, etc.

So, I am looking at which branch has better performance. It seems to be gg20 at present, but I am very puzzled whether these branches are stable.

Did you have any progress on wasm for tss-lib?