# Function: sealTo()

```ts
function sealTo(
   publicKey, 
   label, 
   bound, 
   plaintext
): Promise<string>;
```

Defined in: [packages/core/src/identity/hpke.ts:206](https://github.com/leifriksheim/minca/blob/main/core/src/identity/hpke.ts#L206)

Seals bytes to a P-256 key (a contact, member or door key), for one label
and one place.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `publicKey` | `string` | The compressed point, base64url, as profiles carry it |
| `label` | `string` | - |
| `bound` | [`Bound`](https://minca.dev/api/core/type-aliases/Bound.md) | - |
| `plaintext` | `Uint8Array` | - |

## Returns

`Promise`\<`string`\>

base64url of `0x01 ‖ enc ‖ ct`
