Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/s/w/swiftarm-HEAD/tribler/Tribler/dispersy/member.py   swiftarm(Download)
from hashlib import sha1
from dispersydatabase import DispersyDatabase
from crypto import ec_from_private_bin, ec_from_public_bin, ec_signature_length, ec_verify, ec_sign
        return self._public_key and \
               self._signature_length == len(signature) \
               and ec_verify(self._ec, sha1(data[offset:offset+(length or len(data))]).digest(), signature)
    def sign(self, data, offset=0, length=0):