# Function: onePerSecret()

```ts
function onePerSecret(material): Promise<CryptoKey>;
```

Defined in: [packages/core/src/records/rules.ts:74](https://github.com/leifriksheim/minca/blob/main/core/src/records/rules.ts#L74)

What a space's `onePer` keys are keyed with (spec 02 §7.3): from its first
space key in a private space, which every reader holds and which never
changes, so only readers can compute or test a key; from its id in a
public one, where anyone can.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `material` | \| \{ `spaceKey`: `Uint8Array`; \} \| \{ `spaceId`: `string`; \} |

## Returns

`Promise`\<`CryptoKey`\>
