when calculating the hash of the sample.torrent, I get the correct result.
I wanted to try to do my own encoding and decoding, but when I upload I get the wrong hash
here is a repo with the code
I suspect its the bencode encode function thats doing something strange, but then I shouldnt get the sample.torrent correctly..
Thanks, I got it working, I was trying to parse it into a serde_json value and then pick out the values from that, that caused an issue with the pieces part, so i just made a more strict decoding straight into the Torrent struct