function · Browser and Node

# digestSeal

A digest seal {d} for 32 raw digest bytes: SHA-256 (code I, the default, as capture's Merkle roots) or Blake3 (code E).

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

Import:

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

## Declaration

Signature:

```ts
digestSeal(raw: Uint8Array, alg?: "sha256" | "blake3"): {
    d: Qb64;
};
```

### Parameters

**`raw` (required)**

`Uint8Array<ArrayBufferLike>`

**`alg` (optional)**

`"blake3" | "sha256"`

Default: `"sha256"`

### Returns

`{ d: Qb64; }`

## Returned object

The returned object exposes these properties and methods.

## Properties

- **`d` (required)**: `string`

[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/digestSeal/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
