Skip to content

Instantly share code, notes, and snippets.

@Barabazs
Forked from zhuowei/t.py
Created July 4, 2022 06:52
Show Gist options
  • Save Barabazs/bc945eda2cf382548229590760ca5281 to your computer and use it in GitHub Desktop.
Save Barabazs/bc945eda2cf382548229590760ca5281 to your computer and use it in GitHub Desktop.
Proof that the NFT Bay's torrent is mostly zeroes
import libtorrent as lt
# usage:
# sudo apt install python3-libtorrent
# wget https://thenftbay.org/billion-dollar-nft-torrent.torrent
# python3 t.py
info = lt.torrent_info("billion-dollar-nft-torrent.torrent")
print("Number of pieces: ", info.num_pieces())
print("dumping piece hashes:")
for i in range(info.num_pieces()):
print("piece ", i, "=", info.hash_for_piece(i).hex())
# Almost all the pieces are
# 57b587e1bf2d09335bdac6db18902d43dfe76449
# which is the sha1 of 32MB of zeroes
# so most of the 18TB torrent is zeroes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment