# Keys, recovery and sync

For a software account, your original Zcash recovery phrase backs up both wallets. Keep the phrase and any BIP-39 passphrase you used when creating the account. Anyone with that backup can spend from both balances.

## How Veylor derives the Railgun wallet

Veylor uses **BIP-85** to derive a separate 24-word Railgun phrase from the Zcash seed. It uses the Zcash account number (the ZIP-32 index) to give each account its own Railgun wallet. Restoring the same account in Veylor recreates its keys and `0zk` address. Hardware wallet accounts in Veylor can hold ZEC. The Railgun balance requires a software account. [Veylor’s key derivation](https://github.com/ChinmayGopal931/vizor-fork/blob/d2a6430e9cfac488dc685c4b13cd62a591908ad9/rust/src/wallet/private_usd/railgun_keys.rs) · [BIP-85 specification](https://bips.dev/85/)

## Why a restored balance takes time to appear

Restoring an account recreates its keys. The Zcash wallet and the Railgun wallet each use those keys to find payments in their own chain’s history. Open the 0zkUSDC balance and keep Veylor unlocked while it catches up. Funds under **Arriving** have already been found and are awaiting screening. [How wallet syncing works](https://docs.veylor.cash/concepts/wallet-sync/) · [Railgun screening](https://docs.veylor.cash/concepts/screening/)

## Where Railgun history comes from

On Ethereum mainnet, Veylor can read older pool records in bulk from Anon’s digest archive. Railgun’s indexer supplies spend and withdrawal records, and your Ethereum RPC supplies current chain data. [Digest sync, verification and fallback](https://docs.veylor.cash/concepts/digest-sync/) · [Choose your network endpoints](https://docs.veylor.cash/wallet/endpoints/)

## If you have a swap in progress

Keep the original wallet and its data until settlement or refund is complete. Recovery of an unfinished swap also depends on the swap record saved on that device. Reopen the existing swap to continue. [Deadlines and refunds](https://docs.veylor.cash/bridge/recovery/)
