# eth_pubkey_to_address · Rell standard library · Chromia Docs (concept)

> pure function eth_ pubkey_ to_ address(pubkey: byte_array ): byte_array Compute a 20-byte Ethereum address from a public key. Accepts valid public keys of 

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/crypto/eth_pubkey_to_address/

FUNCTION

# eth\_pubkey\_to\_address

```signature
pure function eth_pubkey_to_address(pubkey: byte_array): byte_array
```

Compute a 20-byte Ethereum address from a public key.

Accepts valid public keys of size `33`, `64` or `65` bytes. Note that not all byte arrays of
acceptable length constitute valid public keys.

**Parameters**

* **pubkey** — the public key (33, 64 or 65 bytes)

**Throws**

* `exception` — when - the given byte array does not have length `33`, `64` or `65` - the given byte array is not a valid public key

Since 0.13.5

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/crypto/eth_pubkey_to_address.html)Generated API reference, mirrored from the live docs
