Skip to content

Java implementation of Kademlia DHT using netty and abstraction layer

License

Notifications You must be signed in to change notification settings

ep2p/kademlia-netty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maven Central Github Releases Open Issues Liscence

kademlia netty

Status: [ready to use]. [active maintainance]. Playground (sample runnable project) available here.


Implementation of kademlia API DHT using:

This library uses BigInteger as Node IDs and NettyConnectionInfo as implementation of ConnectionInfo interafce.

However, it is still abstract, therefore you should implement some parts that are mentioned in kademlia API such as:


Examples

There are few working examples in tests directory.

Main example has everything for you to start understanding how this library works. It creates 2 nodes and stores data in DHT.

Custom DTO Example is on top of previous example, but this time we are serializing and storing a different DTO object called Person instead of a simple String.


Installation

Using maven:

<dependency>
    <groupId>io.ep2p</groupId>
    <artifactId>kademlia-netty</artifactId>
    <version>0.3.2-RELEASE</version>
</dependency>

Donations

Coffee has a cost 😄

Any sort of small or large donations can be a motivation in maintaining this repository and related repositories.

  • ETH: 0x5F120228C12e2C6923AfDeb0e811d74160166d90
  • TRC20: TJjw5n26KFBqkJQbs7eKdxkVuk4pvJdFzE
  • BTC: bc1qmtewrl7srjrkl8t4z5vantuqkz086srj4clzh3

Cheers