# Overview Epoch Miden Integration

## Overview Epoch Miden Integration

## Why Epoch for Miden

### The Problem

Miden is a zero-knowledge rollup with a fundamentally different architecture from EVM chains. It uses note-based transfers instead of balance updates, client-side transaction proving, and its own VM — there are no Solidity smart contracts on Miden.

This means there is no native way to move assets between Miden and Ethereum. Traditional bridges rely on smart contracts deployed on both chains, shared validator sets, or atomic cross-chain verification. None of these work when one side isn't an EVM chain.

Users holding tokens on Miden are isolated from the EVM ecosystem. Users on Ethereum have no path into Miden.

### How Epoch Solves This

Epoch is an intent-based protocol. Instead of requiring infrastructure on both chains, it uses a **solver network** that can operate across any chain — including non-EVM ones like Miden.

The flow works like this:

1. **User states what they want** — "Send 100 tokens from Miden, receive USDC on Sepolia"
2. **Collateral is locked** — Miden tokens are locked in a time-bound note. If the bridge fails, the user reclaims them after a timeout.
3. **A solver fulfills the intent** — The solver sends the requested tokens on the EVM side
4. **Settlement** — The allocator confirms both sides and claims the locked collateral

No smart contracts needed on Miden. No shared validators. No custodial risk — funds are either locked in a reclaimable Miden note or in a withdrawable EVM deposit contract.

### What This Enables

| Direction        | What happens                                                  |
| ---------------- | ------------------------------------------------------------- |
| **Miden to EVM** | Lock Miden tokens, receive EVM tokens (e.g., USDC) on Sepolia |
| **EVM to Miden** | Deposit EVM tokens, receive Miden tokens in your wallet       |

Both directions are non-custodial and trustless. The user retains the ability to recover funds if anything fails.

### Key Pieces

| Component            | What it does                                                                                      |
| -------------------- | ------------------------------------------------------------------------------------------------- |
| **Epoch Intent SDK** | TypeScript SDK your app uses to build intents, manage collateral, and track execution             |
| **Miden SDK**        | WASM client running in the browser — manages Miden wallets, tokens, and note transfers            |
| **Allocator**        | Backend service coordinating between Miden notes and EVM execution                                |
| **The Compact**      | EVM smart contract holding token deposits as collateral for intents                               |
| **SIO**              | Sub intent orchestrator, Epoch's own Solver network that matches and executes cross-chain intents |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.epochprotocol.xyz/epoch-miden-integration/overview-epoch-miden-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
