{
 "subject": "Source review of RetiredC/RCKangaroo (GPU Pollard Kangaroo, 'SOTA v2' method) for the Bitcoin Puzzle #140 feasibility assessment. Review of source only: nothing was built or run, and no hardware was measured.",
 "immutable_references": {
  "repository": "https://github.com/RetiredC/RCKangaroo",
  "reviewed_commit": {
   "sha": "618473acd7f5e696be5ec4f8377c18cc55c1361c",
   "date": "2026-07-28T14:10:02+04:00",
   "message": "Delete Makefile",
   "tree_url": "https://github.com/RetiredC/RCKangaroo/tree/618473acd7f5e696be5ec4f8377c18cc55c1361c"
  },
  "release_tag_v4_0": {
   "tag": "v4.0",
   "commit": "a93695a799944d4a5f00ebccc42130353b4f98be",
   "note": "HEAD differs from v4.0 only by deleting Makefile (git diff v4.0 HEAD: Makefile, 29 deletions)."
  },
  "other_tags": {
   "v1.0": "6a2ee857d9cca1364fbec4ec08f62506e2f19eea",
   "v1.1": "7b74eb23522a069230deffdfc2d85f71ff63e696",
   "v2.0": "da03c6b54efc78c0c4cdd67bb4d2a7406b4b739e",
   "v3.0": "1f91683e6e24951ba0b2bb3d751e127e35c066f1",
   "v3.1": "89ae821a34a4b102626c5fbf98590fd2f297cf7d"
  },
  "license_permalink": "https://github.com/RetiredC/RCKangaroo/blob/618473acd7f5e696be5ec4f8377c18cc55c1361c/LICENSE.TXT",
  "source_permalinks": [
   "https://github.com/RetiredC/RCKangaroo/blob/618473acd7f5e696be5ec4f8377c18cc55c1361c/RCKangaroo.cpp",
   "https://github.com/RetiredC/RCKangaroo/blob/618473acd7f5e696be5ec4f8377c18cc55c1361c/GpuKang.cpp",
   "https://github.com/RetiredC/RCKangaroo/blob/618473acd7f5e696be5ec4f8377c18cc55c1361c/Ec.cpp",
   "https://github.com/RetiredC/RCKangaroo/blob/618473acd7f5e696be5ec4f8377c18cc55c1361c/RCGpuCore.cu",
   "https://github.com/RetiredC/RCKangaroo/blob/618473acd7f5e696be5ec4f8377c18cc55c1361c/CallCubin.cpp",
   "https://github.com/RetiredC/RCKangaroo/blob/618473acd7f5e696be5ec4f8377c18cc55c1361c/CMakeLists.txt",
   "https://github.com/RetiredC/RCKangaroo/blob/618473acd7f5e696be5ec4f8377c18cc55c1361c/README.md",
   "https://github.com/RetiredC/RCKangaroo/blob/618473acd7f5e696be5ec4f8377c18cc55c1361c/main.asm",
   "https://github.com/RetiredC/RCKangaroo/blob/618473acd7f5e696be5ec4f8377c18cc55c1361c/RESULTS.TXT"
  ],
  "release_asset_v4_0": {
   "url": "https://github.com/RetiredC/RCKangaroo/releases/download/v4.0/RCKangaroo_v40.zip",
   "sha256": "7f3445030c02b5d2997f078025910efdda076e564bbee87c55c0af473fe360d8",
   "size_bytes": 1950882,
   "sha256_source": "GitHub releases API digest field, matching our own sha256 of the downloaded file"
  },
  "cubin_sha256": {
   "kernel_sm89.cubin": "10b536b3a2fd61d8c729ca91c3266cb4294e5f5ab1e20cecabad9c9736cc8c20",
   "kernel_sm120.cubin": "5eff0f700299ec57d1308267b83ac5f5126fdeff47b67ada18d66c40082aca4f"
  },
  "assembler_dependency": {
   "repository": "https://github.com/RetiredC/RCAsm",
   "commit": "b3b83de80ffeb13e67c018a34cf90bb032e3d070",
   "license": "GPL-3.0 per GitHub API"
  }
 },
 "method": [
  "git clone of the repository, then git log, tags and diffs; the reviewed commit is pinned above.",
  "Read README.md, LICENSE.TXT, CMakeLists.txt, defs.h, RCKangaroo.cpp, GpuKang.cpp, CallCubin.cpp, Ec.cpp, and the headers of the .asm files.",
  "Queried the GitHub REST API for the release list, asset digests, the repository license and the RCAsm repository.",
  "Downloaded RCKangaroo_v40.zip, parsed it with a local Node script, and compared the sha256 of each file against tag v4.0.",
  "Checked every quote in sources.json against the raw permalink it cites."
 ],
 "observations": {
  "license": "GPL-3.0. LICENSE.TXT is the GNU GPL v3 text (29 June 2007), each source file has a 'License: GPLv3' header, and the GitHub API reports spdx GPL-3.0. Copyright: RetiredCoder (RC), 2024-2026. The .asm files carry '(c) 2026, Retired Coder(RC)' but no explicit license line; the repository-wide GPLv3 presumably covers them, though no file states this.",
  "source_for_published_binaries": "Partial. The v4.0 release zip has Windows (RCKangaroo.exe, sha256 b1a016f2...0e75) and Linux (rckangaroo, sha256 d09f098b...36d) binaries, the two .cubin kernels, and a src/ folder. Every src/ file matches tag v4.0 byte for byte; the only extra is RCKangaroo.vcxproj.filters. The .cubin kernels in the zip are identical to those committed in the repository. Host C++/CUDA source exists, so the binaries could in principle be rebuilt, but I did not rebuild them, so it is unknown whether they reproduce. The 'turbo' kernels ship as prebuilt .cubin, made from the .asm sources with RCAsm, which needs CUDA 12.8 and a modified CuAssembler. RCAsm is public (GPL-3.0), but the repo has no build script that regenerates the .cubin files from the .asm. Whether those cubins can be reproduced from source is therefore unknown and unverified.",
  "backend_dependencies": [
   "NVIDIA CUDA only. CMakeLists pins CUDAToolkit_ROOT to /usr/local/cuda-12.8, links CUDA::cudart_static, CUDA::cuda_driver and Threads, and on Linux rt.",
   "Turbo path: the driver API cuModuleLoad loads kernel_sm89.cubin (compute capability 8.9, RTX 40xx) or kernel_sm120.cubin (12.0, RTX 50xx) from the current working directory.",
   "Other GPUs with compute capability >=6 use the CUDA C kernel RCGpuCore.cu (PTX for compute_61/75/86/89). The program prints a recommendation to use v3.x for best performance on these.",
   "No CPU solving backend, no OpenCL/ROCm, no networking or distributed mode. README: 'No advanced features like networking, saving/loading DPs'. Only tames can be saved/loaded (-tames). There is no checkpoint/resume of wild state."
  ],
  "published_benchmark": {
   "claims": [
    {
     "author": "RetiredCoder (RC), repository README",
     "figure": "about 14.5 GH/s",
     "device": "RTX 4090 (README says '4090')",
     "kernel": "turbo (asm)",
     "input_size": "not stated with the figure"
    },
    {
     "author": "RetiredCoder (RC), repository README",
     "figure": "about 19.3 GH/s",
     "device": "RTX 5090 (README says '5090')",
     "kernel": "turbo (asm)",
     "input_size": "not stated with the figure"
    },
    {
     "author": "RetiredCoder (RC), README",
     "figure": "K=1.15",
     "meaning": "average ops / sqrt(range) for the SOTA v2 method, versus K=2.1 for the classic method"
    }
   ],
   "what_is_counted": "Unit: kangaroo jumps, i.e. EC point additions per second. Not keys tested. GpuKang.cpp sets pnt_cnt = KangCnt * STEP_CNT (STEP_CNT=1000) per kernel round and speed = pnt_cnt/(ms*1000), i.e. millions of jumps per second, which the program prints as 'MKeys/s'. Wall time per round includes the DP copy and the kangaroo restarts. The speed is a moving average over STATS_WND_SIZE rounds per GPU, summed across GPUs. K is printed as total ops / 2^(range/2) and includes DP and GPU overheads.",
   "inputs_checkable": "Partly. With no -pubkey the program runs benchmark mode: by default range 78 and dp 16, keys drawn by mt19937_64 seeded with GetTickCount64(). The run cannot be repeated exactly, but anyone with the hardware can rerun it and check the output. The README does not publish the logs, driver, clocks, range, DP or kangaroo count behind the 14.5/19.3 GH/s figures, so those inputs are unknown. Without an RTX 4090/5090, no one can check the figures."
  },
  "range_support": "README says ranges up to 170 bits. The code accepts -range from 32 to 170, and SolvePoint accepts up to 180. DP distances are stored in 22 bytes. A 139-bit range (puzzle #140, start 2^139) is in range per the source; I did not test it.",
  "secret_exposure": [
   "On solve, the private key is printed to stdout in plaintext ('PRIVATE KEY: %s') and appended to RESULTS.TXT in the current directory. If RESULTS.TXT cannot be written, the program loops forever with the key left on screen. Console logs, CI logs and screen sharing would therefore expose the key.",
   "The repository itself commits RESULTS.TXT with two 'PRIVATE KEY:' lines (a previously solved public puzzle key; the same value appears twice). This shows the file is easy to commit by accident.",
   "DPs, including wild distances, stay in RAM and are never written to disk. The -tames file holds only tame data, generated with fixed seed 0. A leaked wild DP collision record together with the tame record would reveal the key, but the program does not persist them.",
   "No option exists to encrypt or suppress key output, or to redirect it to a private channel. Before any real-key run, the program needs a wrapper or patch."
  ],
  "puzzle140_implication_derived": "My arithmetic, not the author's claim and not measured. ops ~ 1.15*2^(139/2) ~ 9.6e20 for a 139-bit interval (1.15*2^70 ~ 1.36e21 if the range is taken as 140 bits). At the author-stated 14.5e9 jumps/s on one RTX 4090 that is ~2100-3000 years; at 19.3e9 on one RTX 5090, ~1600-2200 years. DP overhead and the lack of checkpointing make it worse."
 },
 "caveats": [
  "Nothing was compiled or executed. This machine has no NVIDIA GPU or CUDA. Throughput, memory use and correctness are unverified here.",
  "Whether the release binaries reproduce from source: unknown.",
  "Whether the .cubin files reproduce from the .asm via RCAsm: unknown.",
  "The machine and settings behind the README GH/s figures are unknown beyond the card name.",
  "Correctness of the SOTA v2 method and the K=1.15 claim was not independently analysed. They are the author's claims.",
  "Benchmark solving uses random keys and does not prove anything about #140; solved puzzle keys do not predict this key.",
  "The objective is NOT completed by this item. This is source review only."
 ],
 "sources": [
  "https://github.com/RetiredC/RCKangaroo",
  "https://raw.githubusercontent.com/RetiredC/RCKangaroo/618473acd7f5e696be5ec4f8377c18cc55c1361c/README.md",
  "https://raw.githubusercontent.com/RetiredC/RCKangaroo/618473acd7f5e696be5ec4f8377c18cc55c1361c/LICENSE.TXT",
  "https://raw.githubusercontent.com/RetiredC/RCKangaroo/618473acd7f5e696be5ec4f8377c18cc55c1361c/RCKangaroo.cpp",
  "https://raw.githubusercontent.com/RetiredC/RCKangaroo/618473acd7f5e696be5ec4f8377c18cc55c1361c/GpuKang.cpp",
  "https://raw.githubusercontent.com/RetiredC/RCKangaroo/618473acd7f5e696be5ec4f8377c18cc55c1361c/CMakeLists.txt",
  "https://raw.githubusercontent.com/RetiredC/RCKangaroo/618473acd7f5e696be5ec4f8377c18cc55c1361c/CallCubin.cpp",
  "https://raw.githubusercontent.com/RetiredC/RCKangaroo/618473acd7f5e696be5ec4f8377c18cc55c1361c/RESULTS.TXT",
  "https://api.github.com/repos/RetiredC/RCKangaroo/releases",
  "https://raw.githubusercontent.com/RetiredC/RCAsm/b3b83de80ffeb13e67c018a34cf90bb032e3d070/README.md"
 ]
}