Sub topic 3
How custodial wallets work
This chapter explains the working model of a custodial wallet: what the provider holds, what you hold, how deposits and withdrawals move, and where things commonly go wrong. It assumes you know what Bitcoin or Ether is, that a private key authorizes spending, and that an address is derived from a public key. Earlier chapters covered keys and the definition of custody. This chapter builds on both.
What you actually have in a custodial account
When you sign up at an exchange or hosted wallet app, you do not receive a private key. You receive a login. The provider controls the signing keys, and your account is a row in the provider's database that says how much of each asset the provider owes you.
This is the central fact of custodial wallets. The balance you see is an IOU, not a coin you hold. It is a claim against the provider, backed (ideally) by real coins the provider controls on-chain.
Two ledgers exist side by side:
- The blockchain ledger records which addresses hold which coins. The provider controls the keys to its own addresses.
- The internal ledger is the provider's private database. It records how much each customer is owed.
Most activity happens only on the internal ledger. If you buy Bitcoin on an exchange and later sell it to another customer, no blockchain transaction occurs. The database simply moves numbers between two accounts. This is why custodial trades are instant and free of network fees.
Deposits: from your address to the provider's pool
To fund an account, you ask the provider for a deposit address. Behind that request, the provider usually does the following:
- It generates a fresh address for your account, derived from keys it controls.
- You send coins to that address in an ordinary on-chain transaction.
- The provider's software watches the chain and waits for a set number of confirmations. A confirmation is a block mined on top of the block containing your transaction. More confirmations make a reversal less likely.
- After the threshold, it credits your internal balance.
- It periodically sweeps deposits, which means moving coins from many per-user deposit addresses into a few consolidated wallets.
The credit in step 4 depends on confirmations. Each provider sets its own thresholds per asset, and they can change them during congestion or after a suspected chain reorganization.
Withdrawals: the provider signs for you
When you withdraw, you send a request through the provider's app or API. You do not sign anything with a key. The provider checks the request and, if it passes, builds and signs the transaction itself.
Typical checks include:
- Authentication: password, two-factor code, device recognition.
- Withdrawal address allowlists and cooling-off periods after a change of address or password.
- Risk screening of the destination address against sanctions and fraud lists.
- Daily limits and manual review for large amounts.
- Balance checks on the internal ledger.
Then the provider's signing system runs. The provider pays the network fee and usually passes it to you as a flat withdrawal fee. Large providers often batch many withdrawals into one transaction to save fees, which is why a withdrawal may wait minutes or hours.
How providers store the coins
A provider that holds many customers' assets must protect the keys. A typical design splits funds across tiers:
| Tier | Purpose | Typical protection |
|---|---|---|
| Hot wallet | Pays routine withdrawals | Keys on online servers, small share of funds, automated limits |
| Warm wallet | Refills the hot wallet | Online but with extra approvals |
| Cold storage | Holds most customer assets | Offline keys, multiple approvers, often multisig or hardware security modules |
An HSM (hardware security module) is a tamper-resistant device that signs without ever exposing the key. Many providers use multisignature or multi-party computation setups so that no single employee can move funds. Later chapters cover those techniques in detail.
Providers also differ in how they keep customer assets:
- Pooled (omnibus) wallets mix all customers' coins in shared addresses. Cheap to operate, but you cannot point to an address and say "that is mine."
- Segregated wallets assign addresses to individual customers or accounts. Easier to audit, but costlier.
Types of custodial service
The label "custodial" covers several products with the same key arrangement but different business models:
- Exchanges hold funds mainly to enable trading.
- Brokerage and payment apps let you buy and hold crypto inside a consumer app, sometimes with limited withdrawal options.
- Qualified custodians are regulated firms, often trust companies, that hold assets for institutions and are examined by regulators.
- Yield and lending platforms hold your coins and lend them out. Here the provider may not keep your coins idle at all, which adds risk covered in the next chapter's counterparty discussion.
Check the terms of service to learn which one you are using. Some providers state that they may lend, pledge or rehypothecate customer assets. Rehypothecation means reusing the assets you deposited as collateral for the provider's own borrowing.
What the custodial model does well
- Recovery from lost credentials. If you lose your password, identity checks can restore access. No such fallback exists for a lost private key.
- Simple usage. There are no keys to back up and no transaction fees to estimate.
- Fast trading. Internal ledger trades settle instantly.
- Professional security. A well-run provider has dedicated security staff, monitoring and insurance that most individuals cannot match.
- Support and dispute channels. A mistaken transfer to the wrong provider account may be reversible. On-chain it would not be.
Where the model breaks
These are the failure modes to recognize:
- Insolvency or fraud. If the provider lends out or misuses customer coins, the on-chain assets may not match the internal ledger. Customers then become unsecured creditors in a bankruptcy. Their claim is often valued in fiat at the date of filing, not in coins.
- Hacks. The provider's hot wallet or signing infrastructure can be compromised. Whether you are made whole depends on the provider's reserves and policy.
- Account takeover. An attacker who steals your login, often through phishing or SIM swapping, can withdraw your funds. You were never in control of a key, so the account password is your only defense.
- Freezes and restrictions. The provider can suspend withdrawals for compliance reviews, legal orders or liquidity trouble.
- Delisting and service changes. An asset can be removed, or a region can lose access, with a limited window to withdraw.
- Unsupported assets and features. If the provider does not support a network upgrade, airdrop or token, you may not receive it, even though you "own" the asset in your account.
Verifying a custodian: proof of reserves and its limits
Some providers publish a proof of reserves, an attestation that they hold on-chain assets, often using a Merkle tree so each customer can check that their balance was included in the liabilities total.
This helps, but it has limits:
- It usually shows assets at one moment. A provider could borrow coins briefly to look solvent.
- It may cover only assets, not the provider's other debts.
- Customers must actually verify their inclusion for the check to mean anything.
- A standard audit by an independent firm, with liabilities covered, gives stronger evidence than a self-published snapshot.
Treat proof of reserves as one signal. Also look at the provider's regulatory status, how it separates customer assets from company funds, and its history of incidents.
Practical habits for custodial users
- Turn on app-based or hardware-key two-factor authentication. Avoid SMS codes where you can.
- Use a unique password and a dedicated email address for the account.
- Enable withdrawal address allowlists and anti-phishing codes if offered.
- Read the terms for lending, rehypothecation and bankruptcy treatment.
- Keep only what you need for trading or spending on the platform.
- Test withdrawals with a small amount before moving a large sum.
Exercise
You hold 2 BTC at an exchange. You sell 1 BTC to another customer of the same exchange, then withdraw the other 1 BTC to your own address. Which of these actions create an on-chain transaction, and why does the exchange sign the withdrawal rather than you?
Show answer
Only the withdrawal creates an on-chain transaction. The sale is an update to the exchange's internal ledger, so no blockchain record is made. The exchange signs the withdrawal because it holds the private keys for the addresses that contain the coins. You hold only a login and a balance in the exchange's database, so you can request a withdrawal but cannot sign one yourself.
Exercise
A provider publishes a proof of reserves showing it holds 10,000 BTC on-chain. Give two reasons this alone does not prove that your balance is safe.
Show answer
Any two of these: the snapshot covers one moment and coins could be borrowed briefly to appear solvent; it may not include the provider's liabilities or other debts, so assets might still be less than what customers are owed; the provider may have pledged or lent customer coins elsewhere; and the proof means little unless customers verify that their own balances were included.