function · Browser and Node

# seedFrom

Derives a reproducible seed by hashing a label with SHA-256. A guessable label produces a guessable identity; use a securely generated seed for real accounts.

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

Import:

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

## Declaration

Signature:

```ts
seedFrom(label: string): Uint8Array;
```

### Parameters

**`label` (required)**

`string`

Text encoded as UTF-8 before hashing.

### Returns

`Uint8Array<ArrayBufferLike>`

The 32-byte digest, suitable for deterministic fixtures and demos.

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