function · Browser and Node

# receiptMac

The MAC of a receipt with status 0 or 2, under k(R→S).

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

Import:

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

## Declaration

Signature:

```ts
receiptMac(k: Uint8Array, pid: Uint8Array, status: number): Uint8Array<ArrayBuffer>;
```

### Parameters

- **`k` (required)**: `Uint8Array<ArrayBufferLike>`
- **`pid` (required)**: `Uint8Array<ArrayBufferLike>`
- **`status` (required)**: `number`

### Returns

`Uint8Array<ArrayBuffer>`

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