refactor PeerID and associated functions.
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 21 Feb 2015 02:41:42 +0000 (08:11 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 21 Feb 2015 02:41:42 +0000 (08:11 +0530)
commit1cc8e5407ac77fed52b8237f42fe2bf5cba61611
tree92828c3715d6865901616e63a21851d335e5b8b3
parent45a85ef9d7fc0f766bf05601bc6781305aed98d8
refactor PeerID and associated functions.

Until now we were hashing peer id string to get a 20-byte hash. But
that's not needed. Peer ID is just a 20-byte string that needs to be
unique per client and sent to the tracker (and peers).
functorrent.cabal
src/Main.hs
src/Peer.hs
src/Tracker.hs