# Functions ## encodeHexPrefix ▸ **encodeHexPrefix**(nibbles: * `Uint8Array` | `Array`<`number`>*, isLeaf: *`boolean`*): `Uint8Array` *Defined in [encode/hexPrefix.ts:5](https://github.com/polkadot-js/common/blob/7a43354/packages/trie-hash/src/encode/hexPrefix.ts#L5)* **Parameters:** | Param | Type | | ------ | ------ | | nibbles | `Uint8Array` | `Array`<`number`>| | isLeaf | `boolean` | **Returns:** `Uint8Array` ___