Testing censorship resistance of bitcoin p2p network



Summary:

The email thread discusses the issue of censorship resistance in Bitcoin transactions. There is a concern about some projects censoring transactions, and how government agencies could take advantage of such practices. To ensure censorship resistance, it is important to test if transactions are getting relayed by the connected peers. Two tools are mentioned to test this: counting the number of INV messages and broadcasting transactions to specific nodes using libbtc. A Python script is shared that can be used to list peers, broadcast transactions to peers, and ban peers that did not relay transactions. The script's primary goal is for testing, but it can be used by anyone who wants to avoid wasting resources connecting to peers that do not relay transactions. It is noted that there could be some false positives, and the script mainly uses libbtc. The discussion moves on to the topic of storing arbitrary amounts of data on-chain and whether or not to use OP_RETURN. The writer believes that commitments should be stored only by nodes that explicitly enable them, so from that point of view, commitment is "a witness of a signature", and it is additional information that can be skipped if needed. They argue that using OP_RETURN means that all nodes will store such data, while using witness means that only witness nodes will keep it.The email also highlights some positives of inscriptions, including more users interested in running full nodes (non-pruned), trying bitcoin wallets, lightning, etc., increased Taproot usage, more developers interested in learning bitcoin development and looking for libraries, docs, etc., and demand for block space has increased. In conclusion, the writer seeks feedback on an ideal tool for testing censorship resistance, which includes allowing users to construct different types of transactions that might be considered "bad" by some people, broadcasting transactions to specific nodes, verifying if the transaction was relayed successfully or rejected, and banning such peers.


Updated on: 2023-06-16T15:30:39.044730+00:00