function · Browser and Node

# openItem

Opens the item as `me`. Null when `me` isn't a reader or anything fails to decrypt.

`@toip-tools/trust-core` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/trust-core/src/sealing.ts#L45)

Import:

```ts
import { openItem } from "@toip-tools/trust-core";
```

## Declaration

Signature:

```ts
openItem(sealed: SealedText, me: Identity): Promise<{
    key: Uint8Array;
    text: string;
} | null>;
```

### Parameters

- **`sealed` (required)**: `SealedText`
- **`me` (required)**: `Identity`

### Returns

`Promise<{ key: Uint8Array; text: string; } | null>`

[Usage guide](https://toip.tools/toolkit/trust-core/#usage) · [Error handling](https://toip.tools/toolkit/trust-core/#errors) · [All exports](https://toip.tools/toolkit/trust-core/api/)

---

This is the Markdown version of https://toip.tools/toolkit/trust-core/api/openItem/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
