How Many Confirmations Before Crediting a Large Deposit
Last updated: November 29, 2026
Quick Overview
An exchange client asks how many Bitcoin confirmations they should wait before crediting a 500 BTC deposit. Model the probability that an attacker controlling a fraction q of hash power reverses a payment after z confirmations, and use it to recommend a per-amount confirmation policy.
BitGo
November 29, 20260
0
0 solved
An exchange client asks how many Bitcoin confirmations they should wait before crediting a 500 BTC deposit. Model the probability that an attacker controlling a fraction q of hash power reverses a payment after z confirmations, and use it to recommend a per-amount confirmation policy.
BitGo sets confirmation thresholds per coin and lets clients configure their own, trading deposit speed against double-spend risk. The interviewer checks whether a candidate can derive the risk model, compute numbers, and turn them into a policy that scales with the value at risk.
What the Interviewer Expects
- Frames the attack as a race between honest and attacker chains
- Uses the gambler's ruin result $(q/p)^z$ for catching up from z behind
- Accounts for attacker progress during the z blocks with a Poisson model
- Produces concrete numbers and a threshold for a target risk
- Ties the threshold to amount and attack cost, and to smaller chains
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- How does the answer change for a small proof-of-work chain where hash power can be rented?
- Why do proof-of-stake chains change the question entirely?
- How would you set thresholds per amount tier?
- What does the model ignore?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Honest miners find the next block with probability , the attacker with . The attacker mines a private chain from the moment the deposit is broadcast and releases it if it becomes longer....
Approach
If the attacker is blocks behind, the race is a biased random walk; the probability of ever catching up is when , else 1. While the honest chain produced blocks the attacker's...