'get address from public key with fastecdsa in python

I generated key pairs in python using fastecdsa in Python:

from fastecdsa.keys import gen_keypair

private_key, public_key = gen_keypair(curve.secp256k1)

How can I generate an Ethereum like public address (last 20 bytes of public key)?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source