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
Statistics & Math
Software Engineer
BitGo
November 29, 2026
Software Engineer
Onsite
Statistics & Math
Medium

0

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
probability
random walks
Poisson process
double spend risk
risk-based policy
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. 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 Questions
Sample Answer
Clarify

Honest miners find the next block with probability pp, the attacker with q=1−pq = 1 - p. 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 dd blocks behind, the race is a biased random walk; the probability of ever catching up is (q/p)d(q/p)^d when q<pq < p, else 1. While the honest chain produced zz blocks the attacker's...


Submit Your Answer
Markdown supported

Related Questions