diericx / bevy

Self hosted software for distibuted video streaming using BitTorrent
74 stars 6 forks source link

Use and Store metainfo.Hash instead of strings #29

Closed diericx closed 3 years ago

diericx commented 3 years ago

Currently we are using and storing metainfo hash as a string which means there is a lot of weird conversions back and forth happening in our code.

metainfo.Hash is just a byte array, so let's just use that instead of messing with them both. The rest api should take in a string convert to metainfo.Hash then that will be input for the functions.