{
  "subject": "Bitcoin Puzzle #140 feasibility assessment — interval discrete-log operation counts and storage",
  "immutable_references": [
    {
      "id": "Pollard1978",
      "doi": "10.1090/S0025-5718-1978-0491431-9",
      "publication": "J. M. Pollard, Monte Carlo Methods for Index Computation (mod p), Mathematics of Computation 32(143), 918–924 (1978)",
      "locators": "§1 Shanks comparison and §3 lambda method, Example 4",
      "url": "https://www.ams.org/mcom/1978-32-143/S0025-5718-1978-0491431-9/S0025-5718-1978-0491431-9.pdf"
    },
    {
      "id": "GPR-revised",
      "publication": "Steven D. Galbraith, John M. Pollard and Raminder S. Ruprai, Computing Discrete Logarithms in an Interval",
      "edition": "IACR ePrint 2010/617, post-publication revision identified by its note about the corrected proof of Theorem 6",
      "published_edition_doi": "10.1090/S0025-5718-2012-02641-X",
      "locators": "Introduction, §§2, 3.2, 5.1 and Table 1",
      "url": "https://eprint.iacr.org/2010/617.pdf"
    }
  ],
  "method": {
    "input": "Use the supplied inclusive endpoints. N counts candidates: (2^140 - 1) - 2^139 + 1 = 2^139. Endpoint difference is N - 1 and gives the same asymptotic scales.",
    "candidate_count": "696898287454081973172991196020261297061888",
    "sqrt_N_expression": "2^69.5",
    "sqrt_N_approx": "8.34804e+20",
    "comparison_basis": "Compare aggregate group-law operations for a single interval instance and storage in group elements or records. Use high-level counts from the cited papers and derive the standard precompute-then-scan BSGS counts explicitly."
  },
  "observations": [
    {
      "method": "Two-walk distinguished-point kangaroo",
      "source": "GPR-revised §2",
      "work_expression": "Leading collision cost 2 sqrt(N); with distinguished-point density theta proportional to log(N)/sqrt(N), detection overhead is o(sqrt(N)), giving (2 + o(1)) sqrt(N).",
      "leading_operations_approx": "1.66961e+21",
      "storage": "O(log N) expected distinguished records with that density, plus walk state and the jump table. Expected record count scales as theta times the number of steps; for log base 2 its order is 139 times a parameter-dependent constant.",
      "assumptions": "Average over a uniform target location. The jump rule behaves sufficiently like a random walk, and the distinguished predicate is approximately uniform. Timing depends on the distance to overlap, the chance of merging after overlap, and the delay from merge to a reported point."
    },
    {
      "method": "Four-kangaroo variant",
      "source": "GPR-revised §§3.2 and 5.1",
      "work_expression": "(1.715 + o(1)) sqrt(N), using the constant in the revised edition",
      "leading_operations_approx": "1.43169e+21",
      "storage": "O(log N) expected distinguished records with density of order log(N)/sqrt(N), with four active walks and a jump table.",
      "assumptions": "Heuristic average over uniform target position, with suitably random-looking jumps and evenly distributed distinguished points. The low-storage scaling presumes the modeled density choice."
    },
    {
      "method": "Original trap-based lambda",
      "source": "Pollard1978 §3 and GPR-revised introduction",
      "storage": "Constant number of walk/trap group elements, plus precomputed jumps, which are constant-size if the jump-set size is fixed.",
      "assumptions": "A bounded attempt can fail. Its success and work depend on trap length and jump distribution. The 2 sqrt(N) estimate above describes the later distinguished-point scheme."
    },
    {
      "method": "Standard baby-step giant-step (BSGS)",
      "source": "Pollard1978 §1 and GPR-revised introduction, with counts derived for one stored table and sequential giant steps",
      "work_expression": "For m = ceil(sqrt(N)), store m baby entries. With zero-based target offset x, cost is m - 1 + floor(x/m) point additions, excluding setup. Worst case m - 1 + floor((N - 1)/m). For uniform x, let q = floor(N/m), r = N mod m; mean is m - 1 + (m q(q - 1)/2 + q r)/N, asymptotic to 1.5 sqrt(N).",
      "average_operations_approx": "1.25221e+21",
      "worst_operations_approx": "1.66961e+21",
      "storage": "Theta(sqrt(N)) entries at this table size. Each entry represents a point and its associated index.",
      "entries_exact": "834804340821298061591",
      "illustrative_point_payload_bytes_approx": "2.75485e+22",
      "payload_assumption": "Illustration assumes 33 bytes per point, before indices, table overhead and temporary data.",
      "assumptions": "The complete search is deterministic, given an exact lookup and a solution in the interval. Uniformity is only used for the mean position of the successful giant step. Lookup and table construction overhead beyond point addition are separate."
    },
    {
      "method": "Interleaved BSGS",
      "source": "GPR-revised introduction, citing Pollard (2000), §3",
      "work_expression": "Published average-case leading count (4/3) sqrt(N) for the cited variant.",
      "leading_operations_approx": "1.11307e+21",
      "storage": "Order sqrt(N) group elements."
    },
    {
      "method": "Meaning of a counted operation",
      "source": "Pollard1978 §§1, 3 and GPR-revised §§2, 5.1",
      "unit": "One application of the group law, i.e. one elliptic-curve point addition for a secp256k1 walk or table step after setup. In the papers it can instead mean an integer addition or a modular multiplication in the corresponding experimental group. It counts neither the scalar distance jumped nor an individual field operation.",
      "measurement": "Report the exact counted path and whether counts include setup, plus elapsed wall time, group and coordinate representation, batch size and device. Attribute throughput to the measured number of group-law updates divided by elapsed time. Field arithmetic, jump selection, table lookups, collision reporting and coordination contribute to elapsed time even where they add no counted group operations."
    },
    {
      "method": "Published four-kangaroo experiment",
      "source": "GPR-revised §5.1 and Table 1",
      "authors": "Steven D. Galbraith, John M. Pollard and Raminder S. Ruprai",
      "input": "N = 2^40 in additive integers, over 1000 experiments",
      "sample_mean": "1.733 sqrt(N)",
      "95_percent_confidence_interval_for_mean": "[1.689, 1.777] sqrt(N)",
      "unit": "Integer group operations, with setup omitted",
      "device": "unknown",
      "device_rate": "unknown"
    },
    {
      "method": "Published trap-based lambda illustration",
      "source": "Pollard1978 §3, Example 4",
      "authors": "J. M. Pollard",
      "input": "p = 99989; open interval (-5000, 0), 4999 candidate exponents",
      "device": "HP-25 programmable calculator",
      "unit": "Elapsed minutes for finite-field walks",
      "reported_result": "5 minutes for 100 tame bounds and 15 minutes for the wild walk to the trap."
    }
  ],
  "caveats": [
    "The computed scales are aggregate work models. The heuristic expectations do not give a deadline or a per-instance success guarantee. Table bytes and traffic depend on representation and design.",
    "The published experiments are in different groups from secp256k1. Device-specific secp256k1 throughput, available hardware and memory, effective parallel scaling and completion time for Puzzle #140 are unknown.",
    "This review conditions on the interval supplied in the assignment. Challenge and prize verification, implementation benchmarks, key recovery and payment are outside this item."
  ],
  "sources": [
    "https://www.ams.org/mcom/1978-32-143/S0025-5718-1978-0491431-9/S0025-5718-1978-0491431-9.pdf",
    "https://eprint.iacr.org/2010/617.pdf"
  ]
}
