> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Struct EthAddress

Module: `noir_aztec::protocol::address::eth_address`

```rust
pub struct EthAddress
{ /* private fields */ }
```

## Implementations

```rust
impl EthAddress
```

```rust
pub fn zero() -> Self
```

```rust
pub fn from_field(field: Field) -> Self
```

```rust
pub fn validate(self)
```

```rust
pub fn is_zero(self) -> bool
```

```rust
pub fn assert_is_zero(self)
```

```rust
pub fn to_be_bytes(self) -> [u8; 20]
```

## Trait implementations

```rust
impl Deserialize for EthAddress
```

```rust
pub fn deserialize(fields: [Field; 1]) -> Self
```

```rust
pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self
```

```rust
impl Empty for EthAddress
```

```rust
pub fn empty() -> Self
```

```rust
pub fn is_empty(self: Self) -> bool
where
    Self: Eq
```

```rust
pub fn assert_empty<let S: u32>(self: Self, msg: str<S>)
where
    Self: Eq
```

```rust
impl Eq for EthAddress
```

```rust
pub fn eq(_self: Self, _other: Self) -> bool
```

```rust
impl Packable for EthAddress
```

```rust
pub fn pack(self) -> [Field; 1]
```

```rust
pub fn unpack(packed: [Field; 1]) -> Self
```

```rust
impl Serialize for EthAddress
```

```rust
pub fn serialize(self) -> [Field; 1]
```

```rust
pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)
```

```rust
impl ToField for EthAddress
```

```rust
pub fn to_field(self) -> Field
```
