LPsLux Proposals
B-Chain
LP-6400

Cross-Chain Private Transfers

Final

Shielded pools supply the privacy and the bridge supplies the movement — a user deposits into a pool on the source chain and withdraws from a pool on the destination, while the cross-chain message carries only a commitment proof and a nullifier

Category
Core
Created
2024-09-01

Abstract

Cross-chain private transfers are a composition, not a new primitive. Z-Chain shielded pools (LP-8010, LP-9404) provide the privacy; B-Chain cross-chain messaging (LP-6000, Warp per LP-6602) moves the commitment. A user deposits into a shielded pool on the source chain and withdraws from a corresponding pool on the destination chain; the cross-chain message carries only the commitment proof and the nullifier — no amounts, no senders, no receivers.

This path is ZK-shielded, not FHE. The FHE-private compute path is F-Chain (LP-8200).

Specification

Protocol flow

Source Chain                          Destination Chain
1. User deposits into ShieldedPool
2. Pool emits commitment event
3. Warp message: {root, nullifier,    ---->  4. DestPool verifies Warp signature
   proof, destChain, recipient_hash}         5. DestPool verifies ZK proof
                                             6. DestPool releases funds to recipient

Warp message format

FieldTypeDescription
sourceChainIDbytes32Origin chain identifier
sourcePooladdressShieldedPool address on the source chain
merkleRootbytes32Commitment tree root at proof time
nullifierHashbytes32Nullifier preventing double spend
proofbytesZK proof of a valid deposit on the source chain
recipientHashbytes32Poseidon2 hash of the recipient address, not the plaintext

Liquidity

Each chain maintains a ShieldedPool funded by liquidity providers. Providers deposit into destination pools and earn fees from private transfer volume. Pool balances are public in aggregate, but individual deposit and withdrawal links stay hidden.

Cross-chain nullifier uniqueness

Nullifiers must be globally unique across chains. Each chain keeps a nullifier registry, and the source chain ID enters the derivation:

nullifier = Poseidon2(commitment || spending_key || sourceChainID)

Warp-relayed nullifiers are checked on the destination chain before funds are released.

Security Considerations

  1. The Warp message reveals the source and destination chains, and nothing else — not the sender, the receiver, or the amount.
  2. The recipient hash prevents front-running: only the intended recipient can claim.
  3. Pool size on the destination chain determines the anonymity set. A private transfer into a nearly empty pool is not private.
  4. Cross-chain replay is prevented structurally, by including the source chain ID in the nullifier derivation.

Reference

ResourceLocation
PrivateTeleport contractgithub.com/luxfi/standard/contracts/privacy/PrivateTeleport.sol
Warp messaginggithub.com/luxfi/evm/warp/
ShieldedPoolgithub.com/luxfi/standard/contracts/privacy/ShieldedPool.sol

Copyright and related rights waived via CC0.