-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
+ -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