# Function: sealValueTo()

```ts
function sealValueTo(
   publicKey, 
   label, 
   bound, 
   value
): Promise<string>;
```

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

Seals a JSON value to a P-256 key

## Parameters

| Parameter | Type |
| ------ | ------ |
| `publicKey` | `string` |
| `label` | `string` |
| `bound` | [`Bound`](https://minca.dev/api/core/type-aliases/Bound.md) |
| `value` | `unknown` |

## Returns

`Promise`\<`string`\>
