SPB Git

Repository Public

README.md 2.3 KB 31 lines markdown

1# security/vectors/utxo-mainnet — public main-network transactions of Litecoin, Dogecoin and Bitcoin Cash23Public blockchain data (no licence applies to the transactions themselves), fetched read-only on 2026-12-05 by4`fetch_transactions.py` (SP Boucher script, in this directory) from keyless public Blockbook instances:56| Coin | Instance | Transactions | Inputs spend |7|---|---|---|---|8| Litecoin | `https://litecoin.atomicwallet.io/api/v2` | 12 | 6 × P2WPKH (`ltc1q…`), 6 × P2PKH |9| Dogecoin | `https://blockbook.doge.zelcore.io/api/v2` | 8 | P2PKH |10| Bitcoin Cash | `https://blockbook.bch.zelcore.io/api/v2` | 8 | P2PKH |1112`transactions.json`: for each coin, the list of `{txid, height, inputKind, raw, previous}` where `raw` is the13transaction in hexadecimal and `previous` maps the identifier of each transaction an input spends to its bytes14(35 previous transactions in all). `../MANIFEST.json` pins the SHA-256 of the file.1516The indexer is not trusted: `security/tests/Tests/ConformanceAuditTests/UTXOCoinsVectors.swift` recomputes every17identifier from the bytes (the transaction's and those of the transactions it spends), takes each spent amount and18script from the authenticated previous transaction, recomputes the signature hash of every input under the coin's19scheme and verifies the ECDSA signature found on chain. A transaction altered by the source would fail the test.20Bitcoin Cash also accepts Schnorr signatures (65 bytes), which the engine does not verify: the test counts them21apart and says so (1 of the 10 Bitcoin Cash inputs).2223One Litecoin transaction (`0aba22a7…`) spends a coin created by an MWEB integrating transaction, whose serialization24carries the flag 0x08 and extension data that the engine does not parse (finding QYV-SVC-067): its previous25transaction cannot be authenticated by the engine, so that transaction is parsed and its identifier checked, but its26signature is not verified — the test records the row as skipped. With the counts of 2026-12-05: 27 transactions27fully verified, 34 inputs, 33 ECDSA signatures verified, 1 Schnorr signature not verified, 1 transaction skipped.2829To refresh: `python3 -I fetch_transactions.py > transactions.json`, then update the manifest entry (SHA-256, size).30The instances answer HTTP 429 to bursts; the script waits between requests.31
Files main
Menu

Theme