Using Redacted

Reserve and Spending

Updated 9 November 20266 min read

Your private wallet has two balances, the Reserve and Spending. That is the whole model, so there is no gas to manage, no wrapped tokens and nothing else to keep track of.

Your private wallet has two balances A public wallet deposits into the private Reserve and can withdraw from it. The Reserve and Spending move funds between them with zero-knowledge proofs, and Spending trades, swaps, stakes and borrows across all of Rujira. Your private wallet Public wallet Your visible address Private Reserve Shared and shielded. Your funds rest here as private notes. Private Spending Your private account, where DeFi happens. All of Rujira Trade, swap, stake, borrow. deposit withdraw zero-knowledge proofs

The Private Reserve

The Reserve is a shared space where every user's deposits live together. Your share of it takes the form of cryptographic notes that only your keys can open, sitting among everyone else's notes, with no address or account entry attached.

That shared group is what protects you. When you later move funds out, you prove with a zero-knowledge proof that you own a note in the Reserve without revealing which one, so the link between your deposit and your later activity is never written anywhere. It works a bit like the vault room of a private bank, where everyone's boxes are in the same room and an observer can see people come and go without learning whose box is whose.

Private Spending

Spending is your personal private account. It is a smart-contract account created for you through the same proof system, with no visible tie to your public wallet, and it is where DeFi happens. From it you can trade on the orderbook, swap between coins of different chains, stake, lend, borrow and bid on liquidations. Positions belong to this account, and the account answers only to your keys, with no public address in control of it.

Your private account acts on Rujira from one Spending account. Every swap, order, loan and stake runs from it, so anyone can see that its actions belong together, and nothing on-chain ties the account to your wallet. When you want a clean slate, choose New Spending account, which you can do once a day. The old account keeps its open positions, and its free coins go back to the Reserve. Deposits from other chains never land here, because they arrive at pay-in accounts of their own, a fresh one once coins have reached the last.

You move funds from the Reserve to Spending when you want to act, and back to the Reserve when you want them to rest among everyone else's notes. Returning funds mints fresh notes. Your own money comes back into the Reserve at once, while money someone else sent to your Spending account waits like a deposit (see Returns from Spending).

Returns from Spending A node traces where the money in a Spending account came from. Your own money comes back to the Reserve at once, including every gain your positions make in the share you put in. Money that someone else sends to the account waits like a deposit, and a mixed return is split so that your part comes back at once and the rest waits. Coins tied to known hacks or sanctions lists, or that cannot be checked, do not enter the Reserve. They stay in the Spending account, and the app offers to send them straight back to their sender. While incident mode or a deposit pause is on, money someone else sent waits, and your own money still comes back at once. Your own money comes back at once What came from your Reserve and every gain your positions make in the share you put in. Money someone else sent waits Coins someone else sends to your Spending account’s address enter the Reserve through the same wait as a deposit. A mixed return is split Your own part is back at once. The rest waits. Known hacks and sanctions lists Coins tied to them, or that cannot be checked, stay in your Spending account. The app offers to send them straight back to their sender. A node checks It traces where the money came from and confirms your own part in a signed statement, public on-chain. A return it cannot confirm waits like a deposit. Spending account Holds your own money, and anything others send to its address. The Reserve Private notes of all users, held together. it stays in the Spending account While incident mode or a deposit pause is on, money someone else sent waits, and your own money still comes back at once.

Sending coins to their own chain

Coins from other chains, such as BTC and ETH, live in your private balance as secured assets on THORChain, so a swap between coins of different chains settles inside THORChain and the result lands in your Spending account. To send a coin to its own chain, withdraw it to an address on that chain, such as a Bitcoin or Ethereum address. The app pays it from a fresh payout account through THORChain, which turns a secured asset back into the native coin, or swaps into that chain's coin when you send something else, and the payout account has no visible tie to your wallet.

Swap privately in the account menu takes a coin in from one chain and pays another chain's coin out through your private account. You send the coin to a fresh pay-in account, it rests in your Reserve, and after a random wait the app pays the address you chose from a fresh payout account, with Send now one tap away.

The tx-less experience

After you sign in once, every trade, transfer and withdrawal is authorized in your browser, by a zero-knowledge proof when money leaves the Reserve and by a hash-based signature of your Spending account's key when it acts on Rujira, and the sealed action goes to a relayer. The relayer carries it on-chain and pays the network fee, so your wallet is never asked to sign again and there are no popups or gas top-ups. You get real on-chain execution with the feel of a web app.

How an action runs without a wallet popup You click Confirm. Your browser builds a zero-knowledge proof and hands the sealed action to a relayer. The relayer submits it to THORChain and pays the network fee, and when it is done your wallet has never signed anything. You Your browser A relayer THORChain Click “Confirm” Builds a zero-knowledge proof Hands over the sealed action Submits it, pays the fee Done. Your wallet never signed.

The proof or signature fixes everything about the action, including the amounts, the destination, the fee and even which relayer may submit it and until when. The relayer only delivers it and can't change what you authorized or spend anything on its own.

One action, one transaction

Every action is atomic. Whatever your Spending account does, a swap, an order, a loan or a stake, is a single transaction: every step of it and its fees land together, or none of it lands and your coins stay where they were. Your funds are never caught halfway through a trade.

One account, everywhere

Your private account is a single identity. You can open it on a desktop, on a phone or in a fresh browser after losing your laptop, and it rebuilds from the chain and your keys alone. A synced passkey opens it on your other devices, you approve any other device from one where it is open, and each new device confirms its account once. The app shows one active account at a time, and restoring reopens the same identity instead of creating a copy.

Continue with How the privacy works, Fees or the architecture.