# dataSetMetadata

> **dataSetMetadata**(`ref`, `groupKeyCommitment`): [`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type)\<`string`, `string`\>

Defined in: [derive.ts:387](https://github.com/FilOzone/synapse-sdk/blob/ef6c62c2d5e01c004a5cdb1a12bfa58ab9ee1834/packages/keysmith/src/derive.ts#L387)

The metadata to record on a data set for this group key: its id under `foc/gkid` and the group key
`commitment` (from [commitment](/reference/filoz/keysmith/functions/commitment/)) under `foc/kc`, so the chain alone can list a wallet's group keys.

Synapse reuses a data set only on an exact metadata match. To keep adding to an existing data set,
pass that data set's metadata as it is, rather than rebuilding it here.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `ref` | [`GroupKeyRef`](/reference/filoz/keysmith/interfaces/groupkeyref/) |
| `groupKeyCommitment` | `string` |

## Returns

[`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type)\<`string`, `string`\>

## Throws

If the id is not 16 bytes of hex, or `groupKeyCommitment` is not a commitment in format v2.