> For the complete documentation index, see [llms.txt](https://docs.libertyswap.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.libertyswap.finance/liberty-swap-2.0/private-swap/railgun-private-mode.md).

# RAILGUN Private Mode

The features and the entire LibertySwap dApps are currently in the beta phase.

Private Mode is LibertySwap’s privacy preserving execution path for cross chain asset transfers across Ethereum, PulseChain, and other supported blockchains. It uses RAILGUN's zero-knowledge shielding infrastructure and is designed to reduce on-chain links between source and destination transactions.

In its current implementation, Private Mode supports **ETH/WETH and USDC** routes and operates through a unified intent-based workflow. Users submit a single instruction (“intent”), and Liberty Swap coordinates the necessary settlement steps across chains. Inside RAILGUN, the sender, recipient and amount are encrypted; deposits into and withdrawals from RAILGUN remain visible on-chain.

Private Mode is optional and distinct from Liberty Swap’s standard execution mode. Users explicitly choose when to enter or exit privacy.

## Architectural Design

### Privacy-Preserving Routing

Private Mode establishes a bidirectional, privacy-preserving route:

```
Ethereum ⇄ Railgun ⇄ PulseChain
```

Under this design:

* Assets entering PulseChain from Ethereum are routed through Railgun and arrive in a shielded state.
* Assets exiting PulseChain to Ethereum are likewise routed through Railgun before settlement.
* The route is designed to avoid a direct on-chain link between source and destination addresses, although timing and amounts may still allow correlation.

This architecture allows users to selectively enter or exit privacy without forcing continuous participation in shielded pools.

### Key Properties

* **User-Controlled Privacy**\
  Users retain full discretion over timing, amounts, and duration of shielded balances. Assets may be transferred immediately through the route or held privately for any period.
* **Intent-Based Execution**\
  Users submit a single signed intent. All intermediate steps are executed by Liberty Swap relayers requiring minimal user intervention.
* **Route Execution**\
  Liberty Swap does not hold users' private keys. On some routes, for example RAILGUN to PulseChain, the route starts with a private transfer to a Liberty Swap routing address, and Liberty Swap's relayers then complete delivery on the destination chain. Until delivery is completed, the outcome depends on those relayers and the networks involved. Liberty Swap may delay or decline transactions under its compliance controls, as described in the Terms of Service.
* **Gas abstraction**\
  Private Mode leverages gas abstraction where supported, allowing users to initiate intents without maintaining native gas balances on each participating blockchain. Required execution fees are handled within the protocol’s settlement process.
* **On-Chain Verifiability**\
  Settlement transactions are recorded on-chain. Liberty Swap processes limited transaction data for a short period, as described in the Privacy Policy.

### Supported Routes (Current)

* **Ethereum → PulseChain**\
  ETH/USDC (Railgun) → ETH/USDC (PulseChain)
* **PulseChain → Ethereum**\
  ETH/USDC (PulseChain) → ETH/USDC (Railgun)

Private Mode routes are currently subject to conservative transaction limits during early deployment. These limits may be adjusted as liquidity and system capacity mature.

### Railgun Balance Model

Railgun maintains chain-specific shielded balances:

* A user’s shielded balance on Ethereum is distinct from their shielded balance on PulseChain.
* Each network operates its own Railgun smart contracts and Merkle tree.
* Assets remain local to a chain unless explicitly transferred via a bridge or intent route.

Liberty Swap’s private routing connects these isolated shielded environments through an intent-driven settlement process, enabling cross-chain movement while reducing visible links between transactions.

### Transaction Tracking and Privacy

Each Private Mode transaction is assigned a temporary Order ID for user-side status tracking. The Order ID:

* Exists solely to communicate execution state to the user.
* Automatically expires after 24 hours.
* Is handled in line with the Privacy Policy.

Liberty Swap processes transaction hashes, wallet addresses and related data only as described in the Privacy Policy, generally for up to 24 hours. Users who wish to independently verify execution may do so using their own wallet addresses and on-chain explorers.

### Status Visibility and UX Considerations

Due to the multi-layered nature of zero-knowledge execution and cross-chain settlement, private transactions may involve longer confirmation windows than standard swaps.

Liberty Swap is actively improving UI-level status notifications to provide clearer execution feedback in line with the Privacy Policy.

## Important Considerations

* Private Mode is optional and user-initiated.
* Shielded transfers may incur higher fees and longer settlement times due to zero-knowledge proof generation.
* Users are responsible for understanding applicable laws and regulations in their jurisdiction when using privacy-enhancing technologies. Private Mode does not provide anonymity and must not be used to conceal the source of funds or to evade sanctions or taxes.
