A P2P cross-chain platform based on Lit Protocol MPC and Phala Network TEE.
Users can request a program-controlled private key from Lit Protocol or Phala Network TEE. Users can deposit cross-chain funds into the address corresponding to this private key in the source chain to create a cross-chain order. When fillers meet the user's funding needs on the target chain, the filler can use the transaction hash and its signature on the target chain to obtain the right to use the program-controlled private key to unlock the funds in the source chain. In the above process, only the EOA account participates in the fund transfer, so it is difficult to analyze the connection between different cross-chain addresses.
When a user chooses to use Lit Protocol to create a cross-chain transaction, the user will mint PKP within the Lit Protocol network and then set the control of PKP to Lit Action. We have written a Lit Action suitable for cross-chain verification to perform verification. When the filler gives a transaction hash that meets the conditions, the PKP controlled by Lit Action will be controlled by the filler. When a user chooses to use Phala Network to create a cross-chain transaction, the Phala Network TEE server will generate an EOA account directly associated with the order based on the nonce and the TEE master key. When the filler completes the cross-chain transaction, the filler can submit data such as the transaction hash to the TEE, and the TEE will automatically recover the key and execute the transaction.