# Function: lineKey()

```ts
function lineKey(root, collection): Promise<string>;
```

Defined in: [packages/core/src/records/key.ts:81](https://github.com/leifriksheim/minca/blob/main/core/src/records/key.ts#L81)

The key of an account's line in a collection (`spec/drafts/constitution-grants-contracts.md`
§3): an owned key, so only that account can write a version in it. The
collection is hashed, so a line has a key whatever the collection's name.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `root` | `string` |
| `collection` | `string` |

## Returns

`Promise`\<`string`\>
