Skip to content

Commit 2af0e92

Browse files
committed
docs(satp-hermes): add network discovery WIP plan
Authored-by: joaoecsde Signed-off-by: Rafael Belchior <[email protected]>
1 parent 8d1d59a commit 2af0e92

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# SATP + Kademlia
2+
3+
Git of Kademlia implementation for gateway discovery
4+
5+
https://github.com/joaoecsde/kademlia_tese
6+
7+
Important files of this repository are the src/node where all the protocols for kademlia and gateway discovery/storage are located.
8+
9+
In the src/gateway it’s the gateway interface.
10+
11+
In the src/crypto it’s the encryption of the payloads (using RSA and AES).
12+
13+
In the src/http/routes it’s where it’s configured which calls can be done (if not mistaken not all calls work, but the important ones, meaning, the gateway operations one are working correctly).
14+
15+
In the src/http/controller it’s the controller.
16+
17+
In the src/simulation.ts, in the for loop it can be chosen how many nodes are deployed in a simulation (in the case of satp i would suggest i=5), and in the sec/node/constants.ts it's where you can choose the bit_size and k_buckets and more (the constants that are already in the file are prepared for a simple satp satup)
18+
19+
In this git it’s where a local implementation of the kademlia network and satp where deployed, using a older version of satp.
20+
https://github.com/joaoecsde/cacti/tree/kademlia-gateway
21+
22+
The test created satp-kademlia-e2e-transfer.test.ts included in line 112 unhealthy=true because during the tests, the gateways were not contactable by the kademlia nodes, and this filter allows kademlia to show all the gateways that are online and offline.
23+
24+
At the moment this implementation allows for satp to work with “static” gateways and with kademlia, meaning that it does not break the older tests.
25+
26+
joaoecsde

0 commit comments

Comments
 (0)