{
 "subject": "Source review of JeanLucPons/Kangaroo (Pollard kangaroo interval ECDLP solver for secp256k1) as comparison implementation for the Bitcoin Puzzle #140 feasibility assessment",
 "status": "READING_ONLY: no code was built or run; no search of #140 was performed; objective (solve #140) is NOT advanced to completion by this item",
 "immutable_references": {
  "repository": "https://github.com/JeanLucPons/Kangaroo",
  "pinned_commit": "37576c82d198c20fca65b14da74138ae6153a446",
  "pinned_commit_meta": "origin/master HEAD when cloned on 2026-11-24; author Jean-Luc PONS, 2024-03-25 07:18:43 +0100, subject 'Update README.md'",
  "last_code_commit_before_readme_edits": "354bb80491752262eaca3613557e1bd306b5414d (2020-09-11, 'Perf'); the two later commits are README-only by subject line",
  "tags": {
   "2.2": "1739515c09b296ecf4a2ee7c414e1da027a907ed",
   "2.1": "f6ad13e3b4adde1fcb28755e72e5c14b84c9703f",
   "2.0": "0c7635969a2d90c5d529dc48c89a0baaf668ccd2"
  },
  "release_constant": "Constants.h:22 '#define RELEASE \"2.2\"'",
  "permalink_base": "https://github.com/JeanLucPons/Kangaroo/blob/37576c82d198c20fca65b14da74138ae6153a446/",
  "license": {
   "spdx": "GPL-3.0 (GitHub API spdx_id); per-file headers say 'version 3' only (no 'or later' wording)",
   "lines": [
    "LICENSE.txt:1-2 (GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007)",
    "Kangaroo.cpp:2-7 (Copyright (c) 2020 Jean Luc PONS; GPL version 3)",
    "GPU/GPUEngine.cu:3-6",
    "SECPK1/Int.cpp:3-6"
   ],
   "implication": "copyleft: a modified/derived runner that is distributed must be GPLv3; compatibility with other reviewed implementations' licenses must be checked by the merger"
  }
 },
 "method": "Shallow-independent full git clone of the public repository on 2026-11-24; read README.md, LICENSE.txt, Makefile, Constants.h, Kangaroo.cpp, Thread.cpp, HashTable.h, GPU/ at the pinned commit; listed tags (git ls-remote) and releases (GitHub REST API). Every quote in sources.json was re-fetched from raw.githubusercontent.com at the pinned commit and string-matched. Nothing was compiled or executed, so no throughput in this file is measured by this worker.",
 "observations": {
  "algorithm": "Pollard kangaroo (tame/wild herds) with distinguished points (DP) stored in a central hash table; README.md:3. Optional symmetry (negation map) exists in source but is compiled out by default: Constants.h:25 '//#define USE_SYMMETRY'. Expected-operations model in Kangaroo.cpp:836-862: Z0 = 2*(2-sqrt(2))*sqrt(pi) ~= 2.08, i.e. ~2.08*sqrt(N) at DP=0 without symmetry, times a DP-overhead cubic-root term (README.md:84-91 table).",
  "hard_range_limit": "README.md:4 states the program is limited to a 125-bit interval. Source basis: HashTable.h:54 packs the travelled distance into 128 bits with b127=sign, b126=kangaroo type, b125..b0 distance. Puzzle #140 has interval width 2^139, so this program cannot run #140 unmodified; the author says the same about #130 (README.md:427).",
  "backend_classes": {
   "cpu": "Yes. Multi-threaded C++ (-t nbThread), 1024 kangaroos per thread (Kangaroo.cpp:68 CPU_GRP_SIZE = 1024), batched modular inversion (IntGroup). Build flags -m64 -mssse3 -O2 (Makefile:61); x86-64 with SSSE3 assumed.",
   "gpu_cuda": "Yes, NVIDIA CUDA only; enabled by 'make gpu=1 ccap=NN' -> -DWITHGPU (Makefile:52) and nvcc (Makefile:75). README.md:13 'CUDA optimisation via inline PTX assembly'; multi-GPU via -gpuId. Windows projects VC_CUDA8/VC_CUDA10/VC_CUDA102.",
   "opencl_metal_rocm_other": "None found (grep for 'opencl' over *.cpp/*.h/*.md/Makefile returned nothing). AMD/Intel/Apple GPUs unsupported.",
   "distributed": "TCP client/server mode (-s / -c, default port 17403) with central DP table, work-file save/merge/split (-w -wi -ws -wss -wsplit -wm -wmdir). README.md:216 warns the server has no authentication. README.md:234 says the kangaroo count should be constant during a run."
  },
  "unit_of_work": {
   "definition": "One kangaroo jump = one elliptic-curve group operation (affine point addition with a precomputed jump point). Display unit string is 'MK/s' (Kangaroo.cpp:1053 Process(params,\"MK/s\")); older README output (v1.2) prints 'MKey/s' for the same counter. It is NOT keys tested: a kangaroo solve needs ~2.08*sqrt(N) of these units, so the unit cannot be compared directly with brute-force 'keys/s'.",
   "how_counted": "CPU: counters[thId] += CPU_GRP_SIZE per batch (Kangaroo.cpp:456). GPU: counters[thId] += nbKangaroo * NB_RUN per kernel launch (Kangaroo.cpp:575), NB_RUN = 64 (Constants.h:35), GPU_GRP_SIZE = 128 (Constants.h:32), NB_JUMP = 32 jump-table entries (Constants.h:29). The GPU figure is therefore computed from launches, not from verified per-jump output. Displayed rate is an 8-sample moving average (Thread.cpp:255 FILTER_SIZE 8).",
   "symmetry_note": "With USE_SYMMETRY the same unit covers ~sqrt(2) more search per expected-ops model (gainS = 1/sqrt(2)), so rates from symmetry and non-symmetry builds are not equivalent work."
  },
  "published_performance": [
   {
    "author": "Jean-Luc Pons (repository README)",
    "where": "README.md:375-402",
    "device": "Xeon E5-2690 V4 host with 4x Tesla V100-PCIE-16GB, GPU only (0 CPU threads)",
    "input_size": "range width 2^84 (puzzle #85), 2^23.32 kangaroos, DP 16",
    "reported": "7828.45 MK/s total; Count 2^43.22 at 24:56; expected operations 2^43.12",
    "unit": "MK/s = 10^6 kangaroo jumps (group operations) per second",
    "program_version": "Kangaroo v2.1",
    "derived_by_this_worker": "~1957 MK/s per V100 (7828.45/4), assuming equal split; not stated by the author. Also 2^43.22 ops / 1496 s ~= 6848 MK/s, lower than the displayed 7828 MK/s; cause unknown (the elapsed clock may include kangaroo creation/ramp-up).",
    "driver_cuda_versions": "unknown",
    "date_of_run": "unknown"
   },
   {
    "author": "Jean-Luc Pons (repository README)",
    "where": "README.md:328-358",
    "device": "Intel Xeon 8 cores @ 2.93GHz (exact model unknown), 2x Quadro 600; run with -t 4 -gpu -gpuId 0,1",
    "input_size": "range width 2^56, 2^16.64 random walks, DP 9",
    "reported": "22.67 MKey/s total, of which GPU 13.04 MKey/s; solved in 29 s at Count ~2^29.06",
    "unit": "MKey/s = 10^6 kangaroo jumps per second (same counter)",
    "program_version": "Kangaroo v1.2",
    "derived_by_this_worker": "CPU part ~9.63 MKey/s over 4 threads (~2.4 per thread) by subtraction; not stated by the author"
   },
   {
    "author": "Jean-Luc Pons (repository README)",
    "where": "README.md:236",
    "device": "256 Tesla V100, client/server architecture",
    "input_size": "puzzle #110, 109-bit key (interval width 2^109), DP25",
    "reported": "solved in 2.1 days; 2^55.55 group operations",
    "unit": "group operations (total), wall-clock days",
    "rate": "not published; implied average ~2^55.55/(2.1*86400 s) ~= 2.9e11 ops/s (~1.1e9 per GPU) is this worker's arithmetic",
    "logs_or_work_files": "unknown / not in repository"
   },
   {
    "author": "Jean-Luc Pons (repository README)",
    "where": "README.md:237",
    "device": "unknown (README does not state the hardware for #115)",
    "input_size": "puzzle #115, 114-bit key (interval width 2^114), DP25",
    "reported": "solved in 13 days; 2^58.36 group operations",
    "unit": "group operations (total), wall-clock days"
   },
   {
    "author": "Jean-Luc Pons (repository README)",
    "where": "README.md:427",
    "device": "256 Tesla V100",
    "input_size": "puzzle #130 (interval width 2^129)",
    "reported": "'several years' and 'Not possible with this program without modification'",
    "unit": "qualitative estimate, no number"
   }
  ],
  "benchmark_provenance": {
   "assessment": "NOT reproducible as published. The figures are console transcripts pasted into README.md. There is no benchmark script, no raw log file, no CI, no recorded driver/CUDA/compiler version, no commit hash tied to a run, and no hash of the binary used. Transcript versions (v1.2, v2.1) differ from the current source (RELEASE 2.2 plus a later 'Perf' commit).",
   "what_is_reproducible": "The inputs are given exactly (range and public key for the 2^56 and 2^84 examples), so anyone with comparable hardware could re-run them; run time is random (collision time is a distribution; the README plots success probability) so one transcript is one sample.",
   "release_artifacts": "GitHub releases 1.10, 2.0, 2.1, 2.2 each ship a Windows 'Kangaroo.exe' (2.2 published 2020-08-10). No checksums, signatures or build recipes accompany them; no Linux binary. Treat as unverifiable binaries; build from pinned source instead.",
   "puzzle_110_115_claims": "Author-asserted in README; operation counts and durations cannot be audited from the repository (no work files or logs). The on-chain spends of those puzzle addresses were not checked in this item."
  },
  "relevance_to_puzzle_140": {
   "can_run_unmodified": "No: width 2^139 exceeds the 125-bit limit.",
   "scale_arithmetic_by_this_worker": "Using the repository's own model (~2.08*sqrt(N), no symmetry, DP overhead ignored): N = 2^139 -> ~2^70.55 ~= 1.7e21 group operations. At the author's 4x V100 figure (7828.45 MK/s) that is ~2.2e11 s ~= 7000 years; at the implied #110 fleet rate (~2.9e11 ops/s on 256 V100) ~190 years. This is hypothetical extrapolation of author-published rates to an input the program does not support, not a measurement.",
   "no_gpu_assumption": "This worker had no GPU and ran nothing; CPU-only rates from the README (~2.4 MKey/s per thread on a 2.93GHz Xeon, v1.2) make #140 many orders of magnitude out of reach."
  }
 },
 "missing_for_like_for_like_comparison": [
  "Per-device rate on current GPUs (RTX 30/40/50 series): unknown; README only reports Quadro 600 and Tesla V100.",
  "CUDA SDK, driver, compiler versions and ccap used for the V100 runs: unknown (README build text mentions CUDA 8.0 / 10.2 generally).",
  "Whether the V100 transcript used USE_SYMMETRY: not stated; banner 'Kangaroo v2.1' lacks '(with symmetry)', which main.cpp:170-172 prints only for symmetry builds, so probably not; treat as inferred.",
  "K factor actually achieved (operations / sqrt(N)) over many runs: only single transcripts published; variance unknown.",
  "DP overhead, hash-table RAM and network cost at 2^139 width: unknown; program cannot run it.",
  "Power draw, cost, GPU utilisation, kernel launch size (grid) effects: unknown except Grid(160x128) for V100.",
  "Comparable definition of unit in the other implementation (e.g. RCKangaroo): must be confirmed by that item's reviewer; RCKangaroo was not read here. A fair comparison needs expected-ops constant K AND ops/s on the same device and range, i.e. time-to-solve = K*sqrt(N)/rate.",
  "CPU model for the 2^56 example beyond '8 cores @ 2.93GHz': unknown."
 ],
 "caveats": [
  "All performance numbers are the upstream author's README claims, not measured here. Fields marked derived_by_this_worker are arithmetic on those claims.",
  "The repository HEAD may move; use the pinned commit. Code content last changed 2020-09-11 by commit subject (file-level diff of the two later commits was not inspected beyond their subjects).",
  "Past solutions of #110/#115 say nothing about #140's key; no pattern is assumed.",
  "The built-in server has no authentication (author's warning); do not expose it for a real search, and it prints the private key to stdout on success, which conflicts with the goal's secret-handling rule unless wrapped by a private runner.",
  "GPLv3 obligations apply to any distributed modification (e.g. widening the 125-bit distance field).",
  "Bitcointalk discussion thread linked from README (topic 5244940) was not read."
 ],
 "sources": [
  "https://raw.githubusercontent.com/JeanLucPons/Kangaroo/37576c82d198c20fca65b14da74138ae6153a446/README.md",
  "https://raw.githubusercontent.com/JeanLucPons/Kangaroo/37576c82d198c20fca65b14da74138ae6153a446/LICENSE.txt",
  "https://raw.githubusercontent.com/JeanLucPons/Kangaroo/37576c82d198c20fca65b14da74138ae6153a446/Kangaroo.cpp",
  "https://raw.githubusercontent.com/JeanLucPons/Kangaroo/37576c82d198c20fca65b14da74138ae6153a446/HashTable.h",
  "https://raw.githubusercontent.com/JeanLucPons/Kangaroo/37576c82d198c20fca65b14da74138ae6153a446/Constants.h",
  "https://raw.githubusercontent.com/JeanLucPons/Kangaroo/37576c82d198c20fca65b14da74138ae6153a446/Makefile",
  "https://api.github.com/repos/JeanLucPons/Kangaroo/releases (release list; not quoted in sources.json)",
  "https://api.github.com/repos/JeanLucPons/Kangaroo (spdx_id GPL-3.0; not quoted in sources.json)"
 ]
}