def test_signature():
    bob = get_ecc(b'secret2')
    message = crypto.sha3(b'Hello Alice')
    signature = bob.sign(message)
    assert (crypto.verify(bob.raw_pubkey, signature, message) is True)
    assert (crypto.ECCx(raw_pubkey=bob.raw_pubkey).verify(signature, message) is True)
    message = crypto.sha3(b'Hello Alicf')
    assert (crypto.ECCx(raw_pubkey=bob.raw_pubkey).verify(signature, message) is False)
    assert (crypto.verify(bob.raw_pubkey, signature, message) is False)
def test_signature():
    bob = get_ecc(b'secret2')
    message = crypto.sha3(b'Hello Alice')
    signature = bob.sign(message)
    assert (crypto.verify(bob.raw_pubkey, signature, message) is True)
    assert (crypto.ECCx(raw_pubkey=bob.raw_pubkey).verify(signature, message) is True)
    message = crypto.sha3(b'Hello Alicf')
    assert (crypto.ECCx(raw_pubkey=bob.raw_pubkey).verify(signature, message) is False)
    assert (crypto.verify(bob.raw_pubkey, signature, message) is False)