function · Browser and Node

# vidForm

`0x01 ‖ key` for an Ed25519 did:key, otherwise `0x02 ‖ length ‖ UTF-8`.

`@toip-tools/mesh-transport` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mesh-transport/src/keys.ts#L53)

Import:

```ts
import { vidForm } from "@toip-tools/mesh-transport";
```

## Declaration

Signature:

```ts
vidForm(vid: string): Uint8Array;
```

### Parameters

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

### Returns

`Uint8Array<ArrayBufferLike>`

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

---

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