Skip to content

Instantly share code, notes, and snippets.

@djdarcy
djdarcy / clones.json
Last active November 12, 2026 03:06
[GTT] djdarcy/ck3-save-updater · badges
{
"schemaVersion": 1,
"label": "clones",
"message": "904",
"color": "blue"
}
@djdarcy
djdarcy / README.md
Last active October 23, 2026 05:45
opentimestamps-client PR #164: how a header archive can be forged, what stops it, and what it costs (POC, cost measurement, attack walkthrough)

Checkpoint-anchored header slices: a throwaway POC and one measurement

Context: review of opentimestamps/opentimestamps-client#164. The review showed that verify --headers did no read-time PoW and that the write-path validators check a header only against its own nBits, binding nothing to a height. Before deciding between a full-consensus check over the whole archive and something cheaper, I wanted two things measured rather than argued: whether two-sided checkpoint anchoring actually binds a slice to its period, and what a full-archive walk costs in Python.

Both scripts run against a dense archive in the PR's OTSH format (ots headers fetch output). Figures below are from a 949,589-header mainnet archive (heights 0..949588) on one desktop core; your numbers will differ, the ratios should not.

1. POC: poc_checkpoint_anchor.py

Ship a table of (height -> hash) at every 2016-block boundary (~470 entries, ~17 KB, reproducible by anyone from a node or a validated archive). A header file for t

@djdarcy
djdarcy / clones.json
Last active November 12, 2026 10:49
[GTT] DazzleML/dazzle-claude-code-patcher · badges
{
"schemaVersion": 1,
"label": "clones",
"message": "62",
"color": "blue"
}
@djdarcy
djdarcy / clones.json
Last active November 12, 2026 10:41
[GTT] DazzleML/dazzle-claude-config · badges
{
"schemaVersion": 1,
"label": "clones",
"message": "276",
"color": "blue"
}
@djdarcy
djdarcy / clones.json
Last active November 12, 2026 03:12
[GTT] djdarcy/wtf-rdp · badges
{
"schemaVersion": 1,
"label": "clones",
"message": "193",
"color": "blue"
}
@djdarcy
djdarcy / clones.json
Last active November 12, 2026 03:04
[GTT] djdarcy/stellaris-ironman-cheat · badges
{
"schemaVersion": 1,
"label": "clones",
"message": "130",
"color": "blue"
}
@djdarcy
djdarcy / clones.json
Last active November 12, 2026 03:12
[GTT] djdarcy/infinite-glyphs · badges
{
"schemaVersion": 1,
"label": "clones",
"message": "129",
"color": "blue"
}
@djdarcy
djdarcy / clones.json
Last active November 12, 2026 10:45
[GTT] DazzleLib/dazzle-lib · badges
{
"schemaVersion": 1,
"label": "clones",
"message": "233",
"color": "blue"
}
@djdarcy
djdarcy / test_msg_headers_wire_format.py
Created May 15, 2026 19:35
Regression tests for python-bitcoinlib msg_headers trailing tx-count varint (petertodd/python-bitcoinlib#320)
# Regression tests for the on-wire format of the P2P 'headers' message.
#
# These three tests were written alongside the msg_headers trailing-tx-count-
# varint fix (petertodd/python-bitcoinlib#320). They were deliberately held
# back from the PR's diff to keep the change minimal -- only the fix itself
# ships in the PR, not new test scaffolding.
#
# They are kept here so the test logic isn't lost. If Peter asks for an
# in-tree regression test during PR review, drop this class into
# bitcoin/tests/test_messages.py.
@djdarcy
djdarcy / clones.json
Last active April 28, 2026 23:41
[GTT] DazzleML/Claude-Code-Infinite-Perfect-Context · badges
{
"schemaVersion": 1,
"label": "clones",
"message": "0",
"color": "blue"
}