<!-- Canonical: https://docs.linea.build/api/linea-smart-contracts/lib/utils -->

> For the complete Linea documentation index, see [llms.txt](/llms.txt).
> Agents can fetch this page as Markdown at [https://docs.linea.build/api/linea-smart-contracts/lib/utils.md](https://docs.linea.build/api/linea-smart-contracts/lib/utils.md).

# Utils

# `Utils`

### _efficientKeccak

```solidity
function _efficientKeccak(bytes32 _left, bytes32 _right) internal pure returns (bytes32 value)
```

Performs a gas optimized keccak hash for two bytes32 values.

#### Parameters

| Name | Type | Description |
| --- | --- | --- |
| _left | bytes32 | Left value. |
| _right | bytes32 | Right value. |

### _efficientKeccak

```solidity
function _efficientKeccak(uint256 _left, address _right) internal pure returns (bytes32 value)
```

Performs a gas optimized keccak hash for uint256 and address.

#### Parameters

| Name | Type | Description |
| --- | --- | --- |
| _left | uint256 | Left value. |
| _right | address | Right value. |

Contributions not accepted

These reference pages are automatically generated based on Linea's [smart contracts](https://github.com/Consensys/linea-monorepo/tree/main/contracts/src). To ensure they accurately match the deployed smart contracts, we cannot accept any contributions that edit these pages.
