bnb-chain / tss-lib

Threshold Signature Scheme, for ECDSA and EDDSA
MIT License
786 stars 267 forks source link

combine mta.BobMid and mta.BobMidWC #110

Open HAOYUatHZ opened 3 years ago

HAOYUatHZ commented 3 years ago

mta.BobMid and mta.BobMidWC share a couple of lines of codes, I guess we can actually combine them?

i.e. https://github.com/binance-chain/tss-lib/blob/e860e36eaaa63afcaf1e5a0ed79b6f56362e88c8/crypto/mta/share_protocol.go#L36-L54

and https://github.com/binance-chain/tss-lib/blob/e860e36eaaa63afcaf1e5a0ed79b6f56362e88c8/crypto/mta/share_protocol.go#L65-L83

HAOYUatHZ commented 3 years ago

This is also claimed in the paper.

p8 image