In a .torrent file, the hashes of the pieces are saved as a string. However, this string does not match Rust's String type, because it contains incorrect UTF8. What we actually want is to save the hashes in a Vec<u8>, but then the library will try to parse a list and produce an error.
Is there a work-around for this?
In a
.torrentfile, the hashes of the pieces are saved as a string. However, this string does not match Rust'sStringtype, because it contains incorrect UTF8. What we actually want is to save the hashes in aVec<u8>, but then the library will try to parse a list and produce an error.Is there a work-around for this?