From b26fa7cf808443af7276f7ec89e7b791d3b1af4d Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 15 Nov 2021 22:18:18 -0800 Subject: [PATCH] updated using git-extra --- todo | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/todo b/todo index 425cb5e..de5a97c 100644 --- a/todo +++ b/todo @@ -53,6 +53,21 @@ Stage 0: -verify correctness of file_hash w/ bep0052.py script *works for short files (TEST_FILE_1-4) -failing for extended files - HERE + -options: + -add complexity to piece layer generation to bring in like w/ bep0052 file + -modify block_merkle_layer to correctly pad to power of 2 (for a balanced tree) + -doesn't work, padding depends of piece_layer size... + -bring back block_pad? + -can't pad to pow 2, have to pad to piece layer size (to balance tree) + -pass pointer to last block, to pad to piece layer size? + -after creating piece layers, have to pad to pow of 2 (to balance tree) + -count block count while adding to piece_layers + -add pad (to next pow 2 if smaller than piece layer size) before doing merkle layer + -figure out how to do merkle root non-destructively + -isomorphism? + -not a big fan of the duplicate -> root strategy + -could block_length -> malloc all at once? + -piece layers calculations need merkle root destructively -watch -- SKIP *start watching thread *figure out flags @@ -80,6 +95,9 @@ Stage 0: -daemonize -tests -file_hash + -add test to verify that piece size has no effect on small files + -pad to pow of 2 (could be smaller than piece size) + -i.e. BLOCK_SIZE*8 = piece size, but only BLOCK_SIZE+negligible worth of content = 2 blocks != 8 -fs -concat tests -tree creation tests @@ -90,6 +108,7 @@ Stage 1: -basic bittorrent functionality -BEP_0003 -BEP_0052 + -http://bittorrent.org/beps/bep_0052.html -magnet link functionality -BEP_0009 -BEP_0010 -- 2.39.5