ilap / slip39-js

The javascript implementation of the SLIP39 for Shamir's Secret-Sharing for Mnemonic Codes.
MIT License
69 stars 26 forks source link

Continue if provided with more group shares than group threshold #17

Open tka85 opened 4 years ago

tka85 commented 4 years ago

Currently code fails if user provides more group shares than are needed: https://github.com/ilap/slip39-js/blob/4d4675c2c9e4cf52ba55bac233ca014086ed5840/src/slip39_helper.js#L455

Would it make sense to just take the first $neededShares and continue instead of failing?