This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cvxpy as cp | |
import itertools | |
# Problem data | |
global_indices = list(range(4)) | |
# 0 = TOKEN-0 | |
# 1 = TOKEN-1 | |
# 2 = TOKEN-2 |