Skip to content

Digital Compliance editorial team

Preparing a reproducible evidence dossier from blockchain data

A blockchain evidence dossier should let another specialist repeat the calculations and understand which conclusions follow. A historical Bitcoin transaction shows how to preserve source responses, check transaction bytes, block inclusion and the header, then document a reproducible result. Verification is limited to this example and does not validate the full chain. Attribution data and legal assessment are kept separately because the technical result does not establish a participant’s identity or the transfer’s legality.

Published · Listed sources checked:

Data and scope of verification

A blockchain evidence dossier should enable another specialist to repeat the calculations and understand the conclusions they support. Saving JSON is not enough. A matching transaction identifier (txid) in an application programming interface (API) response does not by itself confirm that the transaction was serialized correctly. The original data collection kit has therefore been supplemented with an offline check of the transaction bytes, Merkle proof and block header. This check was performed for one historical Bitcoin example and does not establish the identities of the participants or the legality of the transfer. [1; 2]

The technical/bitcoin directory contains the original evidence-kit.zip, raw responses, the verify_bitcoin.py script, a URL log and the execution result. The original collector has been preserved unchanged. The separate verification script runs on Python 3 without third-party libraries or a network connection.

Section sources: [1], [2]

Preserving original responses

For each request, preserve the full URL, method, retrieval time in UTC, original bytes, their size and SHA-256. Create a human-readable JSON version separately, because reserialization changes the bytes and hash. Record the data retrieval time precisely, even if the response already contains the block time. Explicitly identify the network and selected API in the manifest, but the label mainnet alone is insufficient to confirm which chain the source serves. [1]

The collector uses only public read methods. However, the public API receives the IP address and the requested identifier. Private keys, seed phrases and signatures are not needed for this check. If a download fails, collection should end with an explicit incomplete status, even if some files have already been saved in the directory.

Section sources: [1]

Verified example from block 170

Transaction f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16 in block 170 was verified. Its bytes in hexadecimal form (raw hex) were obtained through mempool.space and compared with the example preserved in the original kit. For this non-SegWit transaction, the txid was calculated by applying SHA-256 twice to the serialized bytes and reversing the byte order for display. This formula cannot be applied to the full SegWit serialization, for which txid and wtxid must be distinguished. [1; 2]

The mempool.space Merkle branch was reduced using the transaction position. The resulting root matched the root in the 80-byte header, from which the block hash was independently recalculated. The Merkle proof obtained through Blockstream matched the first proof. The responses from the two public APIs matched. The independence of their infrastructure was not investigated. [4; 5]

Verified example from block 170
CheckActual result
Raw transaction275 bytes; matched the archived hex
Txid from raw bytesMatched the expected txid
InclusionPosition 1; Merkle root matched the header
Block hash00000000d1145790a8694403d4063f323d499e655c83426834d4ce2f8dd4a2ee
Structure reported by the API1 input; 2 outputs of 10 and 40 BTC; fee of 0 satoshis

Section sources: [1], [2], [4], [5]

Limits of technical verification

The result links specific transaction bytes to a specific header, assuming the hashing algorithm is sound. Checking the entire header chain, accumulated work, the current best chain, consensus rules and the absence of a reorganization requires a separate stage using a self-operated validating node. That stage was not performed for this supplement, which should be stated explicitly in the dossier. When preparing it, account for the differences between the Bitcoin Core REST and Esplora interfaces. [2]

The verification script checks the specified txid and header hash, the Merkle branch and the response from the second API. JSON content alone is not treated as confirmation. In the negative control test, one byte of the original transaction was changed, after which verification failed. The script is designed for this historical example; the supplement does not include a universal parser for all Bitcoin transactions.

Section sources: [2]

Graph and attribution

The graph is read as “previous output → transaction → new output.” Unspent transaction outputs (UTXOs) remain separate even when the address is the same. Mark a missing prevout as unknown. The transaction structure does not provide a unique way to allocate each input to the outputs, and outputs of 10 and 40 BTC do not establish that there are two owners. [3]

Store attribution information separately, recording the label source, date, grounds, alternative explanations and confirmation status. An exchange document concerning a specific internal ledger entry can help investigate circumstances that the public graph does not reveal. When applying clustering, change identification or common-input ownership methods, describe the method and its limitations. If these methods were not applied, the report has no basis for implying that an identity has been established.

Section sources: [3]

Reproducing and documenting the result

After unpacking the kit, run python3 technical/bitcoin/verify_bitcoin.py from its root directory. The script reads only the bundled files and outputs a JSON result. For a new collection, use the original evidence-kit.zip and record the new observation date. The JSON format may change on the next API request even if the substantive fields remain the same. Such a difference does not by itself mean that the transaction has changed. [1]

An appropriate statement for this example is: “The txid and header hash of block 170 were recalculated, and Merkle inclusion was checked using preserved responses from two APIs; full consensus verification and attribution were not performed.” When handing over the materials, identify the person who performed the work, script version, file list and hashes, storage arrangements and applicable procedural basis. A hash allows file integrity to be checked. The legal admissibility of the file requires a separate assessment.

Section sources: [1]

Download and repeat the example

Bitcoin evidence kit (ZIP) · Instructions and limits · Capture manifest

Open the example graph

Python 3.10+, no external libraries. The public API receives your IP address and txid. The tool makes no ownership or legality determination.

Verification appendices

Saved data, verification scripts and training cases (ZIP)

The archive includes the technical folder referenced in this article and instructions for running the checks. The Bitcoin example covers a fixed historical transaction.

Sources and verification scope

  1. [1] Esplora HTTP API

    Describes the fields and methods for tx, hex, merkle-proof and block header. The original collector is provided separately.

    Listed sources checked:

  2. [2] Bitcoin Core REST interface

    Interface for a self-operated node. Running it and performing full validation were outside the scope of this work.

    Listed sources checked:

  3. [3] NISTIR 8202 Blockchain Technology Overview

    A technical overview from 2018 that does not attribute the address under investigation.

    Listed sources checked:

  4. [4] mempool.space, Merkle proof for the example

    The raw response and associated hex/header data have been preserved. The retrieval date appears in the log.

    Listed sources checked:

  5. [5] Blockstream, Merkle proof for the example

    The second API response contains a matching proof. Infrastructure independence has not been established.

    Listed sources checked:

Editorial information

The Digital Compliance editorial team is credited as the collective author. Individual authorship and independent legal review of this edition by a human have not been confirmed.

The substantive check was carried out on 20 October 2026 within the scope described in the article and its source notes. The next place in the editorial review queue is scheduled for 19 November 2026, after 30 days. This date does not guarantee that the review will be completed that day. Changes to applicable acts or a provider’s status, and reports of a material error, receive priority.

Digital Compliance develops the commercial product Compliance Workstation. Its commercial interest should be considered when assessing its tools. Mentioning the product in an article does not establish its advantages or an independent review.

Edition update

. Added a recalculation of the txid, verification of the Merkle proof and the block header hash, a negative test and a standalone verification script.

Editorial methodology and corrections · Reusing these materials

This material is informational and does not replace advice on the facts of a particular case.

Русская версия