Ho lokolloa ha libtorrent 2.0 ka tšehetso ea protocol ea BitTorrent 2

Ho hlahisitsoe tokollo e kholo ea libtorrent 2.0 (eo hape e tsejoang e le libtorrent-rasterbar) e hlahisitsoe, e fana ka ts'ebetsong e sebetsang hantle ea memori le CPU ea protocol ea BitTorrent. Laeborari e sebelisoa ho bareki ba torrent joalo ka Moroallo, qBittorrent, Folx, Lince, Miro le Flush (ha ea lokela ho ferekanngoa le laeborari e 'ngoe ea libtorrent, e sebelisoang ho rTorrent). Khoutu ea libtorrent e ngotsoe ka C ++ mme e ajoa tlasa laesense ea BSD.

Ho lokolloa hoa hlokomeleha bakeng sa tlatsetso ea tšehetso bakeng sa protocol ea BitTorrent v2, e tlohang hole le ho sebelisa algorithm ea SHA-1, e nang le mathata a khetho ea ho thulana, molemong oa SHA2-256. SHA2-256 e sebelisoa ka bobeli ho laola botšepehi ba li-blocks tsa data le ho kenya li-index (info-dictionary), e khahlanong le ho lumellana le DHT le li-trackers. Bakeng sa likhokahano tsa makenete le melapo e phoroselang e nang le li-hashes tsa SHA2-256, ho hlahisoa sehlongoapele se secha "urn:btmh:" (bakeng sa SHA-1 le melapo e nyalisitsoeng, "urn:btih:" e sebelisoa).

Ho tloha ha ho nkela sebaka sa ts'ebetso ea hash ho senya ho lumellana ha protocol (sebaka sa hash ke 32 byte ho e-na le li-byte tse 20), tlhaloso ea BitTorrent v2 e ile ea qaptjoa ntle le ho lumellana ka morao kelellong 'me ho ile ha amoheloa liphetoho tse ling tsa bohlokoa, tse kang tšebeliso ea lifate tsa Merkle hash ka li-index. ho fokotsa boholo ba lifaele tsa torrent le ho hlahloba data e jarollotsoeng boemong ba block.

Liphetoho ho BitTorrent v2 li boetse li kenyelletsa phetoho ea ho abela lifate tse arohaneng tsa hash faeleng ka 'ngoe le ts'ebeliso ea ho loants'a lifaele ka likarolo (ntle le ho eketsa padding ka mor'a faele ka' ngoe), e felisang ho pheta-pheta ha data ha ho na le lifaele tse ts'oanang le ho etsa hore ho be bonolo ho li khetholla. mehloli e fapaneng ea lifaele. Ts'ebetso e ntlafalitsoeng ea khouto ea sebopeho sa torrent directory le lintlafatso tse ekelitsoeng bakeng sa ho sebetsana le lifaele tse nyane tse ngata.

Ho theola ho phela hammoho ha BitTorrent v1 le BitTorrent v2, bokhoni ba ho theha lifaele tsa hybrid torrent bo kentsoe ts'ebetsong, ho kenyelletsa, ho kenyelletsa le meaho e nang le li-hashes tsa SHA-1, li-index tse nang le SHA2-256. Linonyana tsena tse nyalisitsoeng li ka sebelisoa le bareki ba tšehetsang protocol ea BitTorrent v1 feela. Ka lebaka la mathata a botsitso a sa rarolloeng, tšehetso e lebeletsoeng ea protocol ea WebTorrent ho libtorrent 2.0 e liehile ho fihlela tokollo e kholo e latelang, e ke keng ea lokolloa ho fihlela qetellong ea selemo.

Source: linux.org.ru