Git Product home page Git Product logo

kad3's Introduction

Kad3

This is an implementation of Kademlia/Mainline DHT Wikipedia Kademlia Link and Wikipedia Mainline Link this implementation was refrenced from Stanford Paper

What is a DHT

A DHT (Distributed Hash Table) is a distributed network that uses an XOR based routing system based off of user defined UIDs. UIDs are made using CRC32c hash of the users IP address and a random number. The random number allows multiple nodes on 1 NAT, while also limiting any person up to 100 nodes per NAT to stop 50% attacks.

Note

Decentralized networks work on a teir based system meaning that some nodes have more power or say than others do.

Important

This is a DHT implementation, NOT a torrent implementation, this can talk with BitTorrent but it can only do FIND_NODE, PING, GET, & PUT.

Features

  • PING
  • FIND_NODE
  • GET
  • PUT
  • Same protocol as BitTorrent (Easy Torrent Implementation)
  • No external Libraries
  • Option for MainLine or Kademlia
  • Teredo support
  • Consensus IP defining
  • Bogon detecting
  • Spam Throttling
  • Secure ID only option
BEP Title Status
BEP5 Bittorrent DHT Yes
BEP32 IPv6 Yes
BEP42 DHT Security Extension Yes

Examples

To join a node you can do

Kademlia k = new Kademlia();
k.join(6881, InetAddress.getByName("HOSENAME"), 6881);

To start a node without joining you can do

Kademlia k = new Kademlia();
k.bind(6881);

To set Kademlia to Mainline you can do:

Kademlia k = new Kademlia("MainLine");

Requirements

Java > 8

kad3's People

Contributors

drbrad avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.