pub fn to_eth(public_key: &PublicKey) -> Result<String>
Expand description

Encodes the public key in ETH address format. ref. https://pkg.go.dev/github.com/ethereum/go-ethereum/crypto#PubkeyToAddress ref. https://pkg.go.dev/github.com/ethereum/go-ethereum/common#Address.Hex