Digital Compliance — Bitcoin evidence kit, version 1.0, 18 October 2026

RU
Назначение: чтение публичных ответов Esplora по одной транзакции Bitcoin mainnet.
Не запрашивает ключи, не подписывает, не отправляет транзакции. Зависимости: Python 3.10+.

Сначала изучите collect_bitcoin.py. Пример запуска из распакованного каталога:
python3 collect_bitcoin.py --txid f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16 --out new-capture

Каталог new-capture должен отсутствовать. Не вставляйте ключи/учётные данные в URL.
По умолчанию запросы идут на https://blockstream.info/api. Провайдер видит IP/txid.
Для собственного совместимого API: --api-base https://your-host.example/api
Проверьте сеть и устройство API самостоятельно; название сети в файле заявленное.

Файлы: transaction.json/hex — исходные ответы, block.json и block-status.json —
метаданные подтверждённого блока; normalised.json — производная структура;
transaction.dot — граф UTXO, manifest.json — URL, время UTC, байты и SHA-256.
Неполный каталог после ошибки не является успешным сбором. Хеши доказывают
неизменность сохранённых байтов, не истинность ответа. Скрипт не декодирует raw hex
для вычисления txid и не проверяет консенсус или доказательство включения.
Сверьте сведения своим узлом или независимым источником перед доказательным выводом.

Граф: входы → транзакция → выходы. Общий адрес не объединяет UTXO. Нет назначения
конкретного входа конкретному выходу, эвристик сдачи, владельцев или меток риска.
DOT можно открыть совместимым просмотрщиком или локально преобразовать Graphviz:
dot -Tsvg new-capture/transaction.dot -o new-capture/transaction.svg
Graphviz — отдельная необязательная программа; скрипт её не устанавливает.
example-block-170/example.svg — статическая иллюстрация сохранённого примера,
а не отдельное доказательство. Это не кейс о преступлении и не атрибуция личности.

Тесты без сети: python3 test_evidence.py
Проверяют обработку txid, единиц, неизвестных данных и структуру графа. Не являются
аудитом провайдера или подтверждением допустимости доказательств в конкретном деле.

EN
Purpose: read public Esplora responses for one Bitcoin mainnet transaction.
No keys, signing or broadcasting. Requires Python 3.10+, no external libraries.
Review collect_bitcoin.py first. Run the exact command above from the extracted folder.
The output directory must not already exist. Never place credentials in an API URL.
The default provider sees your IP and requested txid. Check any alternative API's
network and deployment yourself; the stored network name is declared, not verified.

transaction.json/hex are original responses; block.json and block-status.json describe
a confirmed block. normalised.json and transaction.dot are derived artifacts.
manifest.json records URLs, UTC retrieval times, byte counts and SHA-256 checksums.
A partial directory after failure is not a successful capture. Hashes establish byte
integrity, not truth. Raw hex is archived but not decoded to calculate txid. Consensus
and inclusion proofs are not verified. Corroborate using an owned node or independent
source before drawing an evidential conclusion.

Graph: inputs → transaction → outputs. Identical addresses do not merge UTXOs.
No particular input is assigned to an output; no change, owner or risk heuristics.
An optional local Graphviz command is given above. example.svg is a static illustration
of the saved example, not additional evidence, a crime allegation or identity attribution.
Offline tests: python3 test_evidence.py. Tests do not audit the provider or establish
admissibility in any proceeding.

Sources / Источники:
https://github.com/Blockstream/esplora/blob/master/API.md
https://github.com/bitcoin/bitcoin/blob/master/doc/REST-interface.md
https://nvlpubs.nist.gov/nistpubs/ir/2018/NIST.IR.8202.pdf

Reuse: see https://digitalcompliance.pro/company/en/terms#materials
Использование: https://digitalcompliance.pro/terms#materials
Third-party responses retain their source provenance; no rights in third-party
material or other site articles are granted by this download.
