Sign inSign up

larsid/reputation-system

By larsid

Updated about 2 years ago

Image to run a decentralized reputation system using Tangle Hornet

Image
Networking
Internet of things
0

5.4K

larsid/reputation-system repository overview

Reputation System

Image to run a decentralized reputation system using Tangle Hornet.

Create and run Docker container

docker run -i -t -p 1883:1883 -p 8181:8181 -p 1099:1099 -p 8101:8101 -p 61616:61616 -p 44444:44444 larsid/reputation-system:<tagname>
Run the image overriding some parameters:

You can also override some parameters using the -e parameter, to set environment variables, the parameters you can override are listed below:

ParameterDescriptionDefault value
BUFFER_MAX_LENThe maximum length of the transaction buffer128
ZMQ_SOCKET_PROTOCOLDefines which messaging system protocol is used by the network to notify the status of transactions.tcp
ZMQ_SOCKET_URLDefines the URL of the messaging system used by the network to notify the status of transactions.zmq.devnet.iota.org
ZMQ_SOCKET_PORTDefines which messaging system port is used by the network to notify the status of transactions.5556
GROUPThe gateway group.cloud/c1
COLLECT_TIMEDevice collect time.200
PUBLISH_TIMEDevice publish time.2000
NODE_TYPEType of the node [1 -> Honest, 2 -> Malicious, 3 -> Selfish, 4 -> Corrupt, 5 -> Disturbing].1
HONESTY_RATENode's honesty percentage, the higher the more honest.50
CHECK_DEVICETime in seconds to check if a new device has been connected.5
REQUEST_DATATime in seconds to request data from a randomly connected device.30
WAIT_DEVICE_RESPONSETime in seconds to wait for the requested device to respond.10
CHECK_NODES_SERVICETime in seconds to check if a node has a service.45
WAIT_NODES_RESPONSETime in seconds to wait for the requested node to respond.15
CHANGE_DISTURBING_NODE_BEHAVIORTime in seconds to check the reputation and change the behavior of the Disturbing node.30
USE_CREDIBILITYAllows credibility in the system.true
USE_LATEST_CREDIBILITYAllows to use the latest credibility for the reputation.true
API_PORTPort on which the API will run3000
TANGLE_NODE_URLURL of the Tangle Hornet Node127.0.0.1
TANGLE_NODE_PORTPort of the Tangle Hornet Node14265
KMEANS_SCRIPT_PATHThe path where the KMeans script is located/opt/karaf/etc/python_scripts/kmeans.py
docker run -i -t -p 1883:1883 -p 8181:8181 -p 1099:1099 -p 8101:8101 -p 61616:61616 -p 44444:44444 -e NODE_TYPE=1 -e HONESTY_RATE=50 -e CHECK_DEVICE=5 -e REQUEST_DATA=10 -e WAIT_DEVICE_RESPONSE=3 -e TANGLE_NODE_URL=172.18.0.5 larsid/reputation-system:<tagname>

Changelog

Tag summary

Content type

Image

Digest

sha256:ec04d85b9

Size

311.5 MB

Last updated

about 2 years ago

docker pull larsid/reputation-system