SPB Git

Repository Public

README.md 2.3 KB

# security/vectors/utxo-mainnet — public main-network transactions of Litecoin, Dogecoin and Bitcoin Cash

Public blockchain data (no licence applies to the transactions themselves), fetched read-only on 2026-12-05 by fetch_transactions.py (SP Boucher script, in this directory) from keyless public Blockbook instances:

Coin Instance Transactions Inputs spend
Litecoin https://litecoin.atomicwallet.io/api/v2 12 6 × P2WPKH (ltc1q…), 6 × P2PKH
Dogecoin https://blockbook.doge.zelcore.io/api/v2 8 P2PKH
Bitcoin Cash https://blockbook.bch.zelcore.io/api/v2 8 P2PKH

transactions.json: for each coin, the list of {txid, height, inputKind, raw, previous} where raw is the transaction in hexadecimal and previous maps the identifier of each transaction an input spends to its bytes (35 previous transactions in all). ../MANIFEST.json pins the SHA-256 of the file.

The indexer is not trusted: security/tests/Tests/ConformanceAuditTests/UTXOCoinsVectors.swift recomputes every identifier from the bytes (the transaction's and those of the transactions it spends), takes each spent amount and script from the authenticated previous transaction, recomputes the signature hash of every input under the coin's scheme and verifies the ECDSA signature found on chain. A transaction altered by the source would fail the test. Bitcoin Cash also accepts Schnorr signatures (65 bytes), which the engine does not verify: the test counts them apart and says so (1 of the 10 Bitcoin Cash inputs).

One Litecoin transaction (0aba22a7…) spends a coin created by an MWEB integrating transaction, whose serialization carries the flag 0x08 and extension data that the engine does not parse (finding QYV-SVC-067): its previous transaction cannot be authenticated by the engine, so that transaction is parsed and its identifier checked, but its signature is not verified — the test records the row as skipped. With the counts of 2026-12-05: 27 transactions fully verified, 34 inputs, 33 ECDSA signatures verified, 1 Schnorr signature not verified, 1 transaction skipped.

To refresh: python3 -I fetch_transactions.py > transactions.json, then update the manifest entry (SHA-256, size). The instances answer HTTP 429 to bursts; the script waits between requests.

Files main
Menu

Theme