bookUse Private Swap

This page provides guidance on using LibertySwap’s Private Swap effectively while maintaining your privacy and protecting your trades.

First Thing First: Prepare a Railgun supported Wallet

To use Private Mode, users must have a wallet that support Railgun and 0zk addresses. Your tokens into a compatible privacy smart contract of Railgun using a supported wallet interface which is very secure and standing the test of time, and thoroughly audited.

circle-info

Check out a list of RAILGUN powered wallets herearrow-up-right.

Shielded balances are chain-specific. A shielded balance on Ethereum is distinct from shielded balances on PulseChain or other networks.

RAILGUN → PulseChain

Step 1: Initiate an Intent to Receive WETH (PulseChain) in Liberty Swap

Within the Liberty Swap interface:

  1. Connect your wallet

  2. Select Private Mode.

  3. Choose the supported private route (ETH → WETH).

  4. Specify the amount to swap (subject to current private route limits).

  5. Fill in the Destination Address.

  6. Click [Swap] then [Next].

  7. Copy LibertySwap’s given Railgun ZK address.

Step 2: Send ETH to Liberty Swap

Within the RAILGUN-powered wallet:

  1. Ensure you are operating on the ZK (shielded) side.

  2. Initiate a transfer from your ZK address to Liberty Swap’s ZK address by pasting the Liberty Swap’s given ZK address into the Recipient box.

  3. Enter the same amount as filled in the Liberty Swap interface in the previous step.

Step 3: Include the Private Memo

  1. Copy the memo provided by LibertySwap.

  2. Paste it into the optional private memo field in your RAILGUN wallet.

  3. Generate the ZK proof.

  4. Submit the transaction in your wallet.

  5. Then confirm the transaction on the Liberty Swap side.

This memo enables Liberty Swap’s relay to correctly attribute and settle the incoming shielded transfer.

Step 4: DONE

The relayer executes the settlement and delivers WETH on PulseChain to the user instantly in less than a minute.

PulseChain → RAILGUN

Step 1: Initiate an Intent to Receive ETH (Ethereum) in RAILGUN

Within the Liberty Swap interface:

  1. Connect your wallet

  2. Select Private Mode.

  3. Choose the supported private route (WETH → ETH).

  4. Specify the amount to swap (subject to current private route limits).

  5. Fill in the Railgun Private 0zk Address.

  6. Click [Swap] then [Confirm].

Step 2: Sign the Intent

Sign the intent as shown in your connected wallet.

Step 3: DONE

The relay executes the settlement and delivers ETH (RAILGUN) to the user in less than a minute.

Last updated