> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Miden Integration

> Learn how to integrate Para's embedded wallets with the Miden zero-knowledge virtual machine using the official miden-para SDK

## What is Miden?

[Miden](https://miden.xyz/) is a zero-knowledge virtual machine (zkVM) built by Polygon. It enables developers to build high-throughput, privacy-preserving applications with:

* **Client-side proving**: Users generate proofs locally, enabling private transactions
* **Parallel transaction execution**: Transactions can be processed concurrently for high throughput
* **Programmable accounts**: Flexible account logic using Miden Assembly or higher-level languages
* **Privacy by default**: Transaction details remain private while maintaining verifiability

## What the Para Integration Enables

Integrating Para with Miden gives your users:

* **Seamless onboarding**: Users can create Miden accounts using familiar authentication methods (email, social login, passkeys) without managing seed phrases
* **Embedded wallet experience**: Para's distributed MPC infrastructure secures user keys while maintaining a smooth UX
* **Cross-platform support**: Build web and React applications that connect to Miden with consistent wallet functionality

To integrate Para on Miden, please visit [`miden-para`](https://github.com/0xMiden/miden-para).

## Prerequisites

Before getting started, you'll need:

* A Para API key from the [Para Developer Portal](https://developer.getpara.com)
* Node.js installed in your development environment
* Yarn 1.22.22 or later (required by miden-para)

## Installation

Install `miden-para` along with its peer dependencies:

```bash theme={null}
yarn add miden-para @demox-labs/miden-sdk@^0.12.5 @getpara/web-sdk@2.0.0-alpha.73
```

<Note>
  The `miden-para` package requires specific versions of peer dependencies to avoid duplicate copies. Make sure to install the exact versions shown above.
</Note>

## Basic Setup

```typescript theme={null}
import { MidenPara } from "miden-para";

const midenPara = new MidenPara({
  paraApiKey: process.env.PARA_API_KEY,
  // Additional configuration options
});
```

### Private Storage Mode

When using `storageMode: "private"`, you must provide an `accountSeed` parameter to ensure private accounts remain recoverable:

```typescript theme={null}
const midenPara = new MidenPara({
  paraApiKey: process.env.PARA_API_KEY,
  storageMode: "private",
  accountSeed: "your-account-seed", // Required for private mode
});
```

<Warning>
  Never hardcode your account seed in production code. Use secure environment variables or a secrets manager.
</Warning>

## React Integration

For React applications, the Miden team provides dedicated hooks via the `use-miden-para-react` package:

```bash theme={null}
yarn add use-miden-para-react
```

## Scaffolding a New Project

To quickly bootstrap a new project with Miden and Para integration, use the scaffolding tool:

```bash theme={null}
npx create-miden-para-react my-miden-app
cd my-miden-app
yarn install
yarn dev
```

This creates a Vite-based React TypeScript project with Para and Miden pre-configured.

## Features In Progress

<Note>
  Miden is currently on testnet. The following features are being developed:
</Note>

### On-Ramps

The Miden team is working on on-ramp solutions to allow users to fund their Miden accounts directly. This feature will be available as Miden progresses toward mainnet.

## Resources

* [Miden Website](https://miden.xyz/)
* [Miden Documentation](https://docs.polygon.technology/miden/)
* [miden-para GitHub Repository](https://github.com/0xMiden/miden-para)

## Next Steps

<CardGroup cols={2}>
  <Card title="Para Web SDK" href="/v3/react/guides/custom-ui-web-sdk">
    Learn more about Para's Web SDK features and configuration options
  </Card>

  <Card title="Para React SDK" href="/v3/react/quickstart">
    Explore Para's React SDK for building web applications
  </Card>
</CardGroup>

## Related Walkthroughs

<CardGroup cols={3}>
  <Card title="Inco Integration" icon="lock" href="/v3/walkthroughs/inco">
    Intermediate · 30 min · Confidential payment flows
  </Card>

  <Card title="X402 Integration" icon="credit-card" href="/v3/walkthroughs/X402">
    Intermediate · 25 min · Micropayments over HTTP
  </Card>

  <Card title="Bulk Wallet Pregeneration" icon="layer-group" href="/v3/walkthroughs/bulk-pregeneration">
    Intermediate · 25 min · Large-scale wallet generation
  </Card>
</CardGroup>
