def recover_1kb(times=1000):
    alice = get_ecc(b'secret1')
    message = ''.join((chr(random.randrange(0, 256)) for i in range(1024)))
    message = crypto.sha3(message.encode('utf-8'))
    signature = alice.sign(message)
    for i in range(times):
        recovered_pubkey = crypto.ecdsa_recover(message, signature)
    assert (recovered_pubkey == alice.raw_pubkey)
def recover_1kb(times=1000):
    alice = get_ecc(b'secret1')
    message = .join((chr(random.randrange(0, 256)) for i in range(1024)))
    message = crypto.sha3(message.encode('utf-8'))
    signature = alice.sign(message)
    for i in range(times):
        recovered_pubkey = crypto.ecdsa_recover(message, signature)
    assert (recovered_pubkey == alice.raw_pubkey)