If I understand things well the "not equal" check here
|
if len(group) != group.member_threshold(): |
should be change into a "less than" check (and raised error message changed)
This would allow the following code to work :
mnemonics = shamir.generate_mnemonics(1, [(3, 5)], b"012345678901234567")
recovered = shamir.combine_mnemonics(mnemonics[0])
If I understand spec well and sss, the threshold is the mimimum share count needed to decode the secret, so it should be allowed to pass more shares.
If I understand things well the "not equal" check here
python-shamir-mnemonic/shamir_mnemonic/shamir.py
Line 425 in c919df7
This would allow the following code to work :
If I understand spec well and sss, the threshold is the mimimum share count needed to decode the secret, so it should be allowed to pass more shares.