Sub topic 2
Custody means control of the keys
This chapter assumes you know what a private key, a public key, and an address are, and that a wallet signs transactions instead of holding coins. If those ideas are new, review the previous chapter first. Here we define custody precisely, test the definition on edge cases, and set up the comparison of custodial and self-custody wallets in the chapters that follow.
The working definition
Custody means control of the signing keys. Whoever can produce a valid signature for an output can spend it, and whoever cannot sign cannot spend it. The blockchain checks signatures and nothing else. It has no concept of an owner, an account holder, or a legal claim.
This gives a practical test for any wallet product. Ask one question: if the company disappeared tonight, could you still move your funds using only what you hold?
- If yes, you have self-custody. You control the keys, or enough of them to meet the signing rule.
- If no, you have custody by a third party. The company controls the keys, and you hold a claim against the company.
The two cases look similar in an app. Both show a balance and a Send button. The difference is what happens behind the button.
What you actually hold in each model
In a custodial service, the company holds the keys. Your balance is a row in the company's internal database. A deposit moves coins on-chain to an address the company controls, and the company then credits your row. Many customers' funds are usually pooled in shared addresses. A withdrawal is the reverse: the company debits your row and signs a fresh on-chain transaction from its own keys.
In self-custody, the keys are in your hands, in a software app, a hardware device, or a written backup. The balance is whatever the chain says the addresses derived from your keys hold. No company ledger sits between you and the chain.
| Question | Custodial | Self-custody |
|---|---|---|
| Who can produce the signature? | The company | You |
| What is your balance? | A database entry the company maintains | Unspent outputs or an account balance on-chain |
| What do you own? | A contractual claim against the company | The coins themselves, in the sense that you can spend them |
| Can the company block a withdrawal? | Yes | No, though network rules and fees still apply |
| What if you forget your password? | The company can usually reset it | A lost key or seed phrase cannot be reset |
In the custodial path, two extra steps appear before anything reaches the chain: a request and a rule check. Those steps are where limits, delays, freezes, and mistakes can enter.
Ownership is not the same as control
Legal ownership and technical control are separate things, and the difference is easy to miss.
- Technical control is a fact about who can sign. It is enforced by mathematics.
- Legal ownership is a claim recognized by a court or a contract. It is enforced by institutions.
A custodial customer has technical non-control but may have legal rights. Those rights depend on the jurisdiction, the terms of service, and how the company is structured. Some terms treat deposits as the customer's property held in trust. Others treat them as an unsecured loan to the company. In an insolvency, that difference decides whether you get your coins back or become one creditor among many. The chapter on counterparty risk returns to this.
A self-custody user has technical control, and legal ownership usually follows. But control alone does not protect you from a court order, a stolen device, or someone forcing you to sign. Control is necessary for self-sovereign use of the funds, and it is not sufficient for safety.
Edge cases that test the definition
The simple rule, "whoever can sign controls the funds," is clear in the extreme cases. Real products sit in between, so apply the rule and ask how many parties can sign, and under what conditions.
Multiple keys with a threshold
In a 2-of-3 multisignature wallet, any two of three keys must sign. No single key holder has full control. If you hold one key and a co-signer service holds another, neither of you can spend alone. The service has partial control, and you have partial control. Whether you count as self-custodial depends on whether you can still spend if the service vanishes, which depends on how the third key is held.
Keys split by cryptography
MPC (multi-party computation) wallets split signing power into shares. No complete private key ever exists in one place. A provider may hold one share and you hold another. Because custody is defined by who can authorize a spend, the question is the same: can you sign without the provider? If the scheme needs the provider's share every time, the provider has a veto. If you can recover or rotate without them, you have more control.
Smart contract wallets
On chains like Ethereum, a wallet can be a contract with its own rules, such as spending limits, a recovery contact, or a delay. The signing key may be yours, but the contract decides which signatures count. Control then depends on who can change those rules. If a company can upgrade the contract or override your guardians, the company has a form of control.
Key held, but access restricted
Some services hand you your keys but only work with their software. You hold the keys, so you hold custody in the technical sense. But if the software is the only way to use them, you may depend on the vendor in practice. Check whether you can export the seed phrase and import it into independent software.
The "not your keys, not your coins" slogan
The slogan compresses the definition above. It is a useful reminder, but it is blunt in three ways.
- It ignores legal rights. A regulated custodian may owe you assets under law, which has value. The slogan treats that as worth nothing.
- It assumes self-custody is safe. Holding keys moves risk onto you. Lost seed phrases, phishing, and malware cause permanent losses, and no one can reverse them.
- It treats custody as all or nothing. Multisig, MPC, and smart contract wallets divide control in ways the slogan does not describe.
A better framing is that custody decides who bears which risk. The next chapters take the two main models in turn.
A small check you can run
You can see custody at the protocol level by checking who can sign. In Bitcoin, a standard output is locked to a script, and spending it requires a signature matching that script. The sketch below builds a toy rule that mirrors this idea: funds can be spent only by someone who presents a valid secret.
import hashlib
import secrets
# Toy model: an "output" is locked to the hash of a secret.
# Whoever can present the secret controls the funds.
# This is NOT how Bitcoin signatures work. It only shows the principle
# that control equals the ability to produce the right proof.
secret = secrets.token_bytes(32)
lock = hashlib.sha256(secret).hexdigest()
def can_spend(proof: bytes, lock: str) -> bool:
return hashlib.sha256(proof).hexdigest() == lock
print(can_spend(secret, lock)) # True: the key holder
print(can_spend(secrets.token_bytes(32), lock)) # False: anyone elseThe company or person that holds secret controls the funds. A database row that says "this user owns the output" changes nothing about who can pass can_spend. A custodial balance works like that row: it records a claim but does not give you the proof.
Common mistakes
- Treating an exchange balance as "my wallet". It is an IOU recorded by the exchange.
- Assuming a mobile app is self-custodial because it is called a wallet. Check where the keys are generated and stored.
- Believing that holding the keys means you cannot be affected by anyone else. Laws, taxes, and coercion still apply to you.
- Mixing up a watch-only setup with custody. Seeing a balance gives no power to spend.
- Assuming a hardware wallet equals self-custody regardless of how its seed was created. If someone else generated or saw the seed, they have control.
Exercise
You use an app with a 2-of-2 setup: one key is on your phone and one is held by the app's company. Both must sign every transaction. The company says the wallet is "non-custodial". Using the definition from this chapter, who controls the funds, and what single question would you ask to decide whether you have real self-custody?
Show answer
Both parties share control, because neither can spend alone. The company can block any spend by refusing to sign, so you do not have full control. The deciding question is whether you can still spend if the company disappears or refuses to cooperate, for example through a recovery path that uses only keys you hold. If you cannot, the company effectively has a veto and the "non-custodial" label is only partly true.
Exercise
An exchange shows you a balance of 0.5 BTC. A friend says that because the number is on your screen, you own 0.5 BTC on the blockchain. Explain what the balance really represents and where the 0.5 BTC actually is.
Show answer
The balance is a row in the exchange's database that records a claim against the exchange. The actual coins sit in outputs locked to addresses whose keys the exchange controls, often pooled with other customers' funds. You can only get them out if the exchange signs a withdrawal.