← All insights
ECOSYSTEMZcash Forum · idli

Veylor: shielded USDC and an atomic bridge wallet

Veylor is an open-source wallet and bridge that trustlessly swaps Railgun's shielded USDC and shielded ZEC atomically. It is running on mainnet as a capped beta.

Veylor is a wallet that holds USDC shielded in Railgun on Ethereum (0zkUSDC) in self-custody and swaps it for shielded ZEC over a trustless atomic bridge. Both the wallet and the bridge are open source and run on mainnet as a capped beta.

The bridge is similar to an HTLC. An Ethereum contract escrows the USDC, and the ZEC is held at an address whose spend key (e + z) is split between the two parties. The contract implements the Pallas curve, so when the user claims by revealing z, it computes z·G on-chain, compares it with the stored Z, and then releases the USDC; the bridge then uses the revealed z to claim the ZEC. In each phase only one side can act, which prevents race conditions.

The wallet is a fork of Vizor. It derives the Railgun wallet from the Zcash seed with BIP-85 and signs each swap with a one-time Ethereum key. A swap takes about 3 minutes, while a new Railgun deposit takes 1 hour because of PPOI. The swap cap is about 50 USDC.

The author warned that it is unaudited, so only an amount you can afford to lose should be bridged. The author noted that only the Zcash side is fully shielded, that the amount and timing of the Ethereum-side escrow are public, and that the bridge service is still centralized and assumes the relay is separate from the bridge, so it does not fully meet CROPS.

This summary is based on the original; check the original for exact details.