Private Swap is a core feature of LibertySwap 2.0 that allows users to swap directly from Railgun balances into assets on other blockchains, all while remaining private.
First Step: Prepare a Railgun-Supported Wallet
To use Liberty Swap Private Mode, users must have a wallet that support Railgun and 0zk addresss. 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.
Shielded balances are chain specific. A shielded balance on Ethereum is separate from shielded balances on BNB Chain or other networks. Before LibertySwap, these balances could not exchange or communicate with each other. We are here to change that.
PulseChain → RAILGUN
Step 1: Initiate an Intent to Receive ETH (Ethereum) in RAILGUN
Within the Liberty Swap interface:
Connect your wallet
Select Private Mode.
Choose the supported private route (WETH → ETH).
Specify the amount to swap (subject to current private route limits).
Fill in the Railgun Private 0zk Address.
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.
RAILGUN → PulseChain
Step 1: Initiate an Intent to Receive WETH (PulseChain) in Liberty Swap
Within the Liberty Swap interface:
Connect your wallet
Select Private Mode.
Choose the supported private route (ETH → WETH).
Specify the amount to swap (subject to current private route limits).
Fill in the Destination Address.
Click [Swap] then [Next].
Copy LibertySwap’s given Railgun ZK address.
Step 2: Send ETH to Liberty Swap
Within the RAILGUN-powered wallet:
Ensure you are operating on the ZK (shielded) side.
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.
Enter the same amount as filled in the Liberty Swap interface in the previous step.
Step 3: Include the Private Memo
Copy the memo provided by LibertySwap.
Paste it into the optional private memo field in your RAILGUN wallet.
Generate the ZK proof.
Submit the transaction in your wallet.
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.