Sub topic 2
Who Controls the Keys: Self-Custody and Third-Party Custody
This chapter assumes you know what a private key is and how a signature authorizes a blockchain transaction. It also assumes you have sent or received crypto from a wallet app or an exchange. The chapter covers who holds the keys that can spend your funds, what that choice gives you, and what it costs you. It comes before the hot and cold wallet chapters because those two terms describe where keys live. Custody describes who controls them.
Ownership means the ability to sign
A blockchain does not record names. It records rules: an output can be spent by whoever produces a valid signature for a given public key or script. Whoever can produce that signature controls the funds. No court order, password reset, or customer service call changes this at the protocol level.
This gives a practical definition of custody. A party has custody of funds if it can create a valid signature without anyone else's permission. Two questions follow:
- Can I move these funds without asking anyone?
- Can anyone else move these funds without asking me?
The answers place a setup on a spectrum from self-custody to third-party custody.
The test: who can sign alone?
The function below turns those questions into a rule. It does not inspect a real wallet. It makes you state the facts about your setup, which is often the hard part.
def classify_custody(user_signs_alone, provider_signs_alone, signs_together=False):
"""Classify a setup by who can produce a valid signature."""
if user_signs_alone and not provider_signs_alone:
return "self-custody"
if provider_signs_alone and not user_signs_alone:
return "third-party custody"
if user_signs_alone and provider_signs_alone:
return "shared control: the provider can also move your funds"
if signs_together:
return "collaborative custody: both parties must cooperate"
return "unspendable: nobody can sign"
# Hardware wallet with a seed only you hold
print(classify_custody(True, False))
# Exchange account with a username and password
print(classify_custody(False, True))
# "Non-custodial" app that also stores your seed on its servers
print(classify_custody(True, True))
# 2-of-3 multisig where you hold one key and a provider holds one key
print(classify_custody(False, False, signs_together=True))Running it prints:
self-custody
third-party custody
shared control: the provider can also move your funds
collaborative custody: both parties must cooperateThe third case catches a common mistake. Many apps describe themselves as non-custodial, yet the vendor holds a copy of the key or can reconstruct it. By the signing test, that is not self-custody.
Third-party custody
With third-party custody, an exchange, broker, or payment app holds the private keys. You log in with a username and password, and the provider keeps an internal ledger saying how much it owes you.
What you actually hold
Your balance on a custodial platform is a database entry and a legal claim against the provider. It is not an output on the blockchain that you can spend. When you "withdraw", you ask the provider to create and sign a real transaction on your behalf. The provider can decline.
Many exchanges keep customer funds in pooled addresses. This is sometimes called an omnibus structure. The blockchain shows one large balance, and the provider's own records show who owns what share. You cannot verify your share by looking at the chain.
What you gain
- Recovery. A forgotten password can be reset through identity checks. A lost seed phrase cannot be reset.
- Low effort. There are no backups to make, no devices to protect, and no fee estimation to do.
- Professional security. A well-run custodian uses hardware security modules, staff controls, and insurance that an individual cannot easily match.
- Reversibility of some mistakes. Support staff can sometimes help if you lose a login, though they usually cannot reverse a blockchain transfer.
- Services. Trading, lending, fiat on and off ramps, and tax reports come bundled.
What you give up and risk
Counterparty risk is the risk that the other party fails or acts against you. For custodians it takes several forms:
- Insolvency. If the provider fails, customers may become unsecured creditors. Several exchange collapses showed customer balances could not be fully paid out.
- Misuse of deposits. A provider may lend or invest customer assets without clear disclosure. The funds you see in the app may then not exist in full on the chain.
- Hacks and insider theft. A concentrated store of keys is an attractive target. Your own good habits do not protect you if the provider is breached.
- Freezes and limits. The provider can suspend withdrawals during an outage, a legal dispute, or a compliance review. Your account can also be closed.
- Jurisdiction. The provider's legal status and the law of its country determine your rights.
- Account takeover. Attackers who take over your login, often by SIM swapping or phishing, can instruct the provider to send your funds out. Strong two-factor authentication matters here, but the provider's own controls decide the outcome.
Proof-of-reserves reports offer some assurance, but they have limits. A report may show assets at one moment without showing liabilities or loans against them. Treat it as one signal, not a guarantee.
Self-custody
With self-custody, you generate and hold the private keys, usually through a seed phrase in a software wallet or a hardware wallet. Later chapters cover seed phrases and hardware wallets in detail.
What you gain
- Permissionless spending. Nobody can freeze or block a transaction you sign, as long as the network accepts it.
- No counterparty. A company failure does not reach your funds. The wallet vendor can disappear, and your keys still work because the seed follows an open standard.
- Verifiability. You can see your balance and your outputs on the chain yourself.
- A smaller target. A thief must attack you specifically, not a platform holding thousands of accounts.
What you take on
- Sole responsibility. There is no password reset. A lost or destroyed seed phrase with no backup means permanent loss.
- Irreversible mistakes. A wrong address, a malicious signing request, or a phishing page that captures your seed cannot be undone.
- Backup and inheritance duties. You must plan how funds survive your own death or incapacity.
- Operational skill. You must verify addresses, update software, and handle devices carefully. A later chapter covers these habits.
The trade is simple. Self-custody replaces counterparty risk with personal operational risk. Neither is zero. The right choice depends on which risk you manage better.
Comparing the two at the moment of spending
The diagram shows where permission sits in each model.
In the first flow, the custodian can stop the process at the checking step. In the second flow, no one sits between your signature and the network.
Custody is separate from hot and cold
Beginners often treat "exchange" as meaning hot and "hardware wallet" as meaning cold. Custody and temperature are two independent questions.
| Row | Hot (keys on an online device) | Cold (keys offline) |
|---|---|---|
| **Self-custody** | Mobile or browser wallet you control | Hardware wallet or air-gapped signer you control |
| **Third-party custody** | Exchange account with funds in its online systems | Exchange or custodian vault with offline keys |
Two consequences follow:
- A custodian can keep most customer funds in cold storage. This protects the platform from some hacks but does nothing about insolvency, freezes, or misuse, because you still do not control the keys.
- A self-custody hot wallet exposes you to malware and phishing on your own devices. Your reduced counterparty risk is paid for with local exposure.
The next two chapters examine the hot and cold columns in depth. Remember that each row carries a different set of risks.
Hybrid models
Real setups often sit between the two extremes.
- Collaborative custody. A multisignature wallet uses several keys, and you hold some while a provider holds one or more. Neither side can spend alone. You get protection against your own loss and against the provider's failure. The multisignature chapter covers this.
- Split holdings. You keep a trading balance on an exchange for convenience and move savings to self-custody. This foreshadows the tiered strategy chapter.
- Multi-provider custody. You divide funds among several custodians so one failure affects only part of your holdings.
- Threshold signing (MPC). Key shares are spread across parties, and a signature is produced without any single party holding the whole key. Check who holds the shares and whether the provider alone can reach the threshold.
For each hybrid, run the signing test again: who can sign alone, and who must cooperate?
Common mistakes
- Trusting the label. "Non-custodial" in marketing is not proof. Ask whether the vendor has any copy of your seed or any way to sign without you.
- Cloud-syncing the seed phrase. If a seed is photographed or stored in a cloud notes app, anyone who breaches that account can sign. You have created shared control.
- Leaving savings on an exchange for years. The platform was meant to be a place for trading. Long-term holdings there carry the counterparty risk the whole time.
- Moving to self-custody without a backup. Self-custody with a single unbacked seed is often riskier than a reputable custodian.
- Sharing a seed with "support". No legitimate wallet vendor or exchange asks for your seed phrase. Anyone who does is attempting theft.
Summary
Custody is defined by signing ability, not by branding or by whose app you use. Third-party custody trades control for convenience and recovery, and it adds counterparty risk. Self-custody gives you control and removes the counterparty, and it makes you responsible for backups, mistakes, and security. Custody is independent of whether keys are hot or cold, and hybrid designs let you share control deliberately.
Exercise
A wallet app says it is "non-custodial". Its documentation says your encrypted seed is backed up to the company's servers, and the company can restore your wallet on a new phone if you pass an email check. Using the signing test, classify this setup and explain why.
Show answer
This is shared control, not self-custody. If the company can restore your wallet after only an email check, then the company (or anyone who breaches the email account and passes the check) can regain the ability to sign without your seed. So the provider can effectively sign alone, and so can you. The "non-custodial" label describes the intent, but the signing test shows the vendor can also move your funds.
Exercise
An exchange tells you "98% of customer funds are held in cold storage." Which risks does this reduce, and which does it leave unchanged?
Show answer
It reduces the risk of an online attack draining the platform's keys, because most keys are offline. It does not reduce counterparty risks: insolvency, misuse or lending of deposits, withdrawal freezes, account closure, or account takeover. You still hold only a claim against the exchange, so custody is third-party even though the storage is cold.