# Interface: WorkerNodeConfig

Defined in: [packages/core/src/node/worker.ts:33](https://github.com/leifriksheim/minca/blob/main/core/src/node/worker.ts#L33)

What a worker needs to start a node: `NodeConfig`, less what can't be sent
to it. The signer stays on the page, and the stores are described.

## Extends

- `Pick`\<[`NodeConfig`](https://minca.dev/api/core/interfaces/NodeConfig.md), 
  \| `"accountKey"`
  \| `"contactKey"`
  \| `"contactsSpace"`
  \| `"sessionTtlSeconds"`
  \| `"sessionKey"`
  \| `"cache"`\>

## Properties

| Property | Modifier | Type | Description | Inherited from | Defined in |
| ------ | ------ | ------ | ------ | ------ | ------ |
| <a id="property-accountkey"></a> `accountKey?` | `readonly` | `Uint8Array`\<`ArrayBufferLike`\> | The account key (`deriveAccountKey(seed)`): the node then follows the account registry and opens the contacts space | [`NodeConfig`](https://minca.dev/api/core/interfaces/NodeConfig.md).[`accountKey`](https://minca.dev/api/core/interfaces/NodeConfig.md#property-accountkey) | [packages/core/src/node/types.ts:79](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L79) |
| <a id="property-cache"></a> `cache?` | `readonly` | [`CacheConfig`](https://minca.dev/api/core/interfaces/CacheConfig.md) | Hold only the collections this node uses, once a space names a keeper to hold the rest | [`NodeConfig`](https://minca.dev/api/core/interfaces/NodeConfig.md).[`cache`](https://minca.dev/api/core/interfaces/NodeConfig.md#property-cache) | [packages/core/src/node/types.ts:117](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L117) |
| <a id="property-contactkey"></a> `contactKey?` | `readonly` | `Uint8Array`\<`ArrayBufferLike`\> | The account's contact key (`deriveContactKeyBytes(seed)`), to open contact requests and knocks, in shared spaces and in the inbox. Its public half is published on the account's profiles. | [`NodeConfig`](https://minca.dev/api/core/interfaces/NodeConfig.md).[`contactKey`](https://minca.dev/api/core/interfaces/NodeConfig.md#property-contactkey) | [packages/core/src/node/types.ts:84](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L84) |
| <a id="property-contactsspace"></a> `contactsSpace?` | `readonly` | `string` | The account's contacts space, for a node given it without the account key (an app granted `contacts`) | [`NodeConfig`](https://minca.dev/api/core/interfaces/NodeConfig.md).[`contactsSpace`](https://minca.dev/api/core/interfaces/NodeConfig.md#property-contactsspace) | [packages/core/src/node/types.ts:86](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L86) |
| <a id="property-network"></a> `network?` | `readonly` | `Pick`\<[`NodeNetworkConfig`](https://minca.dev/api/core/interfaces/NodeNetworkConfig.md), `"relays"` \| `"nodes"` \| `"hosts"` \| `"iceServers"`\> | - | - | [packages/core/src/node/worker.ts:38](https://github.com/leifriksheim/minca/blob/main/core/src/node/worker.ts#L38) |
| <a id="property-sessionkey"></a> `sessionKey?` | `readonly` | `CryptoKeyPair` | The key to sign with, when the signer already named it. Default: one claimed from `writerKey`, else a fresh one | [`NodeConfig`](https://minca.dev/api/core/interfaces/NodeConfig.md).[`sessionKey`](https://minca.dev/api/core/interfaces/NodeConfig.md#property-sessionkey) | [packages/core/src/node/types.ts:105](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L105) |
| <a id="property-sessionttlseconds"></a> `sessionTtlSeconds?` | `readonly` | `number` | Seconds each session delegation lasts; renewed before it runs out. Default 3600. | [`NodeConfig`](https://minca.dev/api/core/interfaces/NodeConfig.md).[`sessionTtlSeconds`](https://minca.dev/api/core/interfaces/NodeConfig.md#property-sessionttlseconds) | [packages/core/src/node/types.ts:103](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L103) |
| <a id="property-stores"></a> `stores` | `readonly` | [`WorkerStores`](https://minca.dev/api/core/type-aliases/WorkerStores.md) | - | - | [packages/core/src/node/worker.ts:37](https://github.com/leifriksheim/minca/blob/main/core/src/node/worker.ts#L37) |
