Skip to content

ssiloti/libtorrent-reputation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9a8c25a · Jun 11, 2017

History

17 Commits
Jun 11, 2017
Jan 3, 2016
Jun 11, 2017
Jun 11, 2017
Jan 3, 2016
Jan 3, 2016
Jan 19, 2016
Jan 3, 2016
Jan 3, 2016
Apr 21, 2016
Apr 21, 2016
Jan 3, 2016
Apr 20, 2016
Jan 3, 2016
Jan 3, 2016

Repository files navigation

Libtorrent-reputation is a plugin for libtorrent-rasterbar which implements tracking a peer's upload/download volume across multiple swarms. Reputation can be provided via a common intermediary so that even peers who have never directly connected before can establish standing with each other.

For details on the reputation scheme, see https://github.com/ssiloti/bep-persistent-credit/blob/master/one-hop-rep.rst

libtorrent-reputation requires the following dependencies to build:

libtorrent-rasterbar >= 1.1
sqlite 3
boost >= 1.47

Example usage:

namespace lt = libtorrent;

lt::session ses;
lt::reputation_handle reputation;
boost::shared_ptr<lt::lt_identify_plugin> identify_plugin = boost::make_shared<lt::lt_identify_plugin>();
ses.add_extension(boost::shared_ptr<lt::plugin>(identify_plugin));
reputation = create_reputation_plugin(*identify_plugin, <client_configuration_directory>, <user_password>);
ses.add_extension(reputation.reputation_plugin);

An sqlite databse will be created in the provided configuration directory with the private key encrypted by the given password. The password can be blank if the user has not configured one.

About

Persistent reputation plugin for libtorrent-rasterbar

Resources

License

Stars

Watchers

Forks

Packages

No packages published