# Function: bytesToHex()

```ts
function bytesToHex(bytes): string;
```

Defined in: [packages/core/src/utils/encoding.ts:53](https://github.com/leifriksheim/minca/blob/main/core/src/utils/encoding.ts#L53)

Encodes a Uint8Array to a hex string.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `bytes` | `Uint8Array` |

## Returns

`string`
