bnb-chain / tss-lib

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

ecdsa: reindex input data for the given signing parties #84

Closed notatestuser closed 4 years ago

notatestuser commented 4 years ago

If the set of parties is not contiguous or does not begin from keygen index 0 when provided to the signing code, the save data must be re-indexed/filtered outside the lib to make signing work.

This patch offers a workaround whereby the save data is temporarily re-built for the signing rounds to contain the expected ordered lists, removing the need for app-layer code to do that for a non-contiguous set of signers.

ackratos commented 4 years ago

tested with https://github.com/binance-chain/tss/pull/17