shea256 / secret-sharing

A system for securely splitting secrets with Shamir's Secret Sharing Scheme
MIT License
495 stars 143 forks source link

little bug #3

Closed Y75QMO closed 8 years ago

Y75QMO commented 10 years ago

def init(self, secret_int):

This line is missing some parethesis. It should be

    ~~if not isinstance(secret_int, (int, long)) and secret_int >= 0:~~
    if not (isinstance(secret_int, (int, long)) and secret_int >= 0):
        raise ValueError("Secret must be a non-negative integer.")
    self._secret = secret_int
shea256 commented 8 years ago

Thanks for pointing this out. This code is no longer in the library. Closing this issue.