# matchesCommitment

> **matchesCommitment**(`groupKey`, `recorded`): `boolean`

Defined in: [packages/keysmith/src/derive.ts:351](https://github.com/FilOzone/synapse-sdk/blob/278badff6cfc813e6315d00c56f4a5f23c80f883/packages/keysmith/src/derive.ts#L351)

Verifies that `groupKey` is the key you expect: the right root wallet and the right
group key. Check this before using any key received in a grant.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `groupKey` | [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) |
| `recorded` | `string` |

## Returns

`boolean`

## Throws

If the recorded value is not a commitment in this format.