Skip to content

Instantly share code, notes, and snippets.

@zhuowei
Created November 19, 2021 06:03
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zhuowei/ebd5601f7dd8e5ee186bf302874e0a4c to your computer and use it in GitHub Desktop.
Save zhuowei/ebd5601f7dd8e5ee186bf302874e0a4c 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
@vrde
Copy link

vrde commented Nov 19, 2021

Great find. That's pretty embarrassing.

@zhuowei
Copy link
Author

zhuowei commented Nov 19, 2021

@vrde I think the most embarrassing part is that this implies that all the NFTs ever minted adds up to just 10GB of data. Meanwhile I spent $60 and received 200GB of CODBLOPS

@vrde
Copy link

vrde commented Nov 19, 2021

btw the guy disabled the "issues" tab in the repo, so our issues are gone.

@DavidBuchanan314
Copy link

For a quick proof of the hash:

import hashlib

print(hashlib.sha1(bytes(32*1024*1024)).hexdigest())
# 57b587e1bf2d09335bdac6db18902d43dfe76449

@hedgehog1029
Copy link

cackling

  1. shot: announce torrent of all NFTs
  2. chaser: still claim in the README that the blockchain is good actually
  3. second chaser: the torrent is 17TB of null

@Beyarz
Copy link

Beyarz commented Nov 20, 2021

Wow

@cvk-nft
Copy link

cvk-nft commented Nov 20, 2021

@stortzm
Copy link

stortzm commented Jun 1, 2022

what an absolute embarrassment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment