def get_sequence(self, mpk, for_change, n): return bitcoin.string_to_number( Hash( "%d:%d:"%(n,for_change) + mpk ) )
def stretch_key(self,seed): oldseed = seed for i in range(100000): seed = bitcoin.hashlib.sha256(seed + oldseed).digest() return bitcoin.string_to_number( seed )