# PrivateStateExport

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**Midnight.js API Reference v4.1.0**](https://docs.midnight.network/api-reference/midnight-js.md)

***

[Midnight.js API Reference](https://docs.midnight.network/api-reference/midnight-js/packages.md) / [@midnight-ntwrk/midnight-js-types](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-types.md) / PrivateStateExport

# Interface: PrivateStateExport

Represents the exported private state data structure. All metadata is included in the encrypted payload to prevent tampering.

## Properties[​](#properties "Direct link to Properties")

### encryptedPayload[​](#encryptedpayload "Direct link to encryptedPayload")

> `readonly` **encryptedPayload**: `string`

Encrypted payload containing version, metadata, and serialized private states. Format: base64-encoded AES-256-GCM encrypted JSON.

***

### format[​](#format "Direct link to format")

> `readonly` **format**: `"midnight-private-state-export"`

Format identifier. Must be 'midnight-private-state-export'.

***

### salt[​](#salt "Direct link to salt")

> `readonly` **salt**: `string`

Salt used for key derivation (hex-encoded, 32 bytes / 64 characters). Required for decryption with the export password.
