# grantDescriptor

> **grantDescriptor**(`ref`, `node`): [`GrantDescriptor`](/reference/filoz/keysmith/interfaces/grantdescriptor/)

Defined in: [derive.ts:560](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/keysmith/src/derive.ts#L560)

The descriptor naming what a grant unlocks, ready for `wrapTo()`.

Build descriptors with `grantDescriptor()` rather than filling the
structure by hand: the descriptor is authenticated as the grant's AAD and
compared byte for byte, so the owner is lowercased and the group key is
spelled exactly as the envelope spells it.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `ref` | [`GroupKeyRef`](/reference/filoz/keysmith/interfaces/groupkeyref/) |
| `node` | [`GrantNode`](/reference/filoz/keysmith/type-aliases/grantnode/) |

## Returns

[`GrantDescriptor`](/reference/filoz/keysmith/interfaces/grantdescriptor/)