Tribler/dispersy — pull request #154 by boudewijn-tribler (2013-11-07 12:41:41+00:00)
Title: Fixes API inconsistency.

Member.sign and Member.verify used the OFFSET and LENGTH parameters
differently. They now both use the one Member.verify used, i.e. LENGTH
is the number of bytes, starting at offset, that is either verified or
signed.

In addition to this change, whenever there is insufficient DATA
available, i.e. len(DATA) < OFFSET + LENGTH, then Member.verify will
return False and Member.sign will raise a ValueError.