setHash

Sets the SHA-1 hash for piece index (v1, BEP 3). You must set every piece before generate. An all-zero hash is treated as "unset".

Throws

if this torrent was constructed v2Only.