def test_recover():
    alice = get_ecc(b'secret1')
    message = crypto.sha3(b'hello bob')
    signature = alice.sign(message)
    assert (len(signature) == 65)
    assert (crypto.verify(alice.raw_pubkey, signature, message) is True)
    recovered_pubkey = crypto.ecdsa_recover(message, signature)
    assert (len(recovered_pubkey) == 64)
    assert (alice.raw_pubkey == recovered_pubkey)
def test_recover():
    alice = get_ecc(b'secret1')
    message = crypto.sha3(b'hello bob')
    signature = alice.sign(message)
    assert (len(signature) == 65)
    assert (crypto.verify(alice.raw_pubkey, signature, message) is True)
    recovered_pubkey = crypto.ecdsa_recover(message, signature)
    assert (len(recovered_pubkey) == 64)
    assert (alice.raw_pubkey == recovered_pubkey)