# Function: wrapSeedWithDeviceKey()

```ts
function wrapSeedWithDeviceKey(
   seed, 
   deviceKey, 
   meta
): Promise<DeviceWrap>;
```

Defined in: [packages/core/src/identity/account-vault.ts:78](https://github.com/leifriksheim/minca/blob/main/core/src/identity/account-vault.ts#L78)

Wraps a seed under this device's key; the passkey recorded beside it is a gate, not the key's source

## Parameters

| Parameter | Type |
| ------ | ------ |
| `seed` | `Uint8Array` |
| `deviceKey` | \{ `id`: `string`; `key`: `CryptoKey`; \} |
| `deviceKey.id` | `string` |
| `deviceKey.key` | `CryptoKey` |
| `meta` | \{ `credentialId?`: `string`; `label?`: `string`; `rpId`: `string`; `userHandle?`: `string`; \} |
| `meta.credentialId?` | `string` |
| `meta.label?` | `string` |
| `meta.rpId` | `string` |
| `meta.userHandle?` | `string` |

## Returns

`Promise`\<[`DeviceWrap`](https://minca.dev/api/core/interfaces/DeviceWrap.md)\>
