# nodeIdentityKeys

Canonical: https://docs.shumoku.dev/en/library/api/nodeIdentityKeys
Language: en

@shumoku/core · 0.4.0 · function

# nodeIdentityKeys

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/identity.ts#L33)

Enumerate Node identity keys in priority order. The first match wins during cluster lookup. Caller should also bind \*every\* key to the resulting cluster after a match so subsequent observations collapse correctly even if they only carry a weaker key.

```
nodeIdentityKeys(identity: Identity | undefined): IdentityKey[]
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `identity` | `Identity | undefined` | No additional description. | `—` |

## Returns

```
IdentityKey[]
```

[`libs/@shumoku/core/src/observation/identity.ts:33`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/identity.ts#L33)
