function · Browser and Node

# fromCompact

Rebuilds the exact JSON and checks the SAID. Throws on bad input.

`@toip-tools/eventlog` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/compact.ts#L151)

Import:

```ts
import { fromCompact } from "@toip-tools/eventlog";
```

## Declaration

Signature:

```ts
fromCompact(bytes: Uint8Array): SignedMessage;
```

### Parameters

- **`bytes` (required)**: `Uint8Array<ArrayBufferLike>`

### Returns

`SignedMessage`

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

---

This is the Markdown version of https://toip.tools/toolkit/eventlog/api/fromCompact/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
