# Function: deriveNameKeyBytes()

```ts
function deriveNameKeyBytes(contactKey, username): Promise<Uint8Array<ArrayBufferLike>>;
```

Defined in: [packages/core/src/identity/contact-key.ts:95](https://github.com/leifriksheim/minca/blob/main/core/src/identity/contact-key.ts#L95)

A username's name key, which claims it on a Minca name service
(`packages/core/docs/usernames.md`). One per username, and nothing ties it
to the account or to an inbox, so a new inbox keeps the name.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `contactKey` | `Uint8Array` | - |
| `username` | `string` | `name@domain`, as `formatUsername` writes it (`claimUsername` derives it so) |

## Returns

`Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
