
How a deposit works
- Prepare. The recipient is encrypted to prevent onchain observers from knowing who the funds are flowing to.
- Deposit. The sender calls
deposit()on the Portal contract with the encrypted recipient. - Credit. The ledger consumes the event, decrypts the recipient, and credits the recipient in the ledger.
What is exposed
A deposit can also require an attestation or permission, for example to gate who can deposit.
Onchain, observers see only the
deposit() call and a Deposit event with an encrypted recipient. Neither links to the recipient.