jsbtc
jsbtc copied to clipboard
fix: reject single-share Shamir splits
Summary
- Reject Shamir splits with thresholds below 2, matching the restore path that requires at least two points.
- Update the mnemonic and helper tests so threshold-1 requests fail at split time instead of producing share sets that cannot be recovered through the existing API.
Validation
- Focused affected Mocha tests for initialization, mnemonic split/combine, embedded indexes, GF256, and secret splitting
npm testgit diff --check
Bounty payout address if accepted: bc1qssrlr7qu0kq2kmf7arwznpuad0aw5wr9ls7c3q