

def shamir_test(l, m, n):
    s = Shamir('english')
    seed = "Shamir's Secret Sharing Scheme!"[:l]
    shares = s.split(seed, m, n)
    print('original:', seed)
    print('shares:')
    for i in range(len(shares)):
        print(('%2d :' % (i + 1)), shares[i])
    shares = shares[:l]
    cmb = s.combine(shares)
    print('combined:', cmb)
    if (seed == cmb):
        print('TEST OK')
        print()
    else:
        print('TEST FAILED !!!')
        sys.exit(1)

dataset/ETHPy150Open trezor/python-mnemonic/mnemonic/test_shamir.py shamir_test/VarMisuse@91/121 `m`->`l`