iota-tangle-io / spamalot-coo Goto Github PK
View Code? Open in Web Editor NEWA coordinator SPA which allows controlling a swarm of slaves which in turn control spammers.
License: MIT License
A coordinator SPA which allows controlling a swarm of slaves which in turn control spammers.
License: MIT License
We have currently two ideas in order to handle the transport of data between the coordinator and slaves.
The current state is that there's no MAM library for Go implemented by the IOTA foundation. MAM also gives us much higher latency. However, to leverage IOTA's technology is still an interesting approach to the problem.
As far as I comprehend, sending data with MAM involves doing PoW. Since slaves and the coo communicate bidirectional, both parties would have to do PoW. In order to mitigate this problem, we could setup IRI fullnodes only for the spammer infrastructure, which then do the PoW on behalf of the coo and slaves. The PoW on the slave's host introduces another problem, since another PoW is maybe already in the works when a spammer is creating a new TX.
Apparently there's a functioning JavaScript library, however it only works in conjunction with a fullnode doing the PoW.
I am open for ideas on how to exactly implement this.
Instead of using MAM on the Tangle, we could also simply connect the two parties with Websockets which are secured via TLS. The hurdle here is to have the TLS connection being verified and all, but once that's overcome it's very easy to implement.
Please share your thoughts.
From @cwarner818 on January 26, 2018 19:17
From @luca-moser on January 26, 2018 18:50
As the the coordinator's job is to handle the entire configuration for its connected slaves (and their spammers), a set of commands has to be defined which a slave obeys to.
Commands indicating the desired action by the coordinator are handled as byte constants. A command has usually a payload with the argument data.
Note: In the entire setup, the coordinator is able to delegate commands directly to a spammer.
commands (byte constants):
single spammer:
CREATE_SP
; creates a new spammerREAD_SP
; re-polls data about a spammer's current stateUPDATE_SP
; stops the spammer and restarts it with a given configurationDELETE_SP
; removes a given spammer by idRESTART_SP
; restarts a spammer by given idgroup:
STOP_SPS
: stops all spammersRESTART_SPS
; restarts all spammersDELETE_SPS
: deletes all spammersA payload can be a spammer's configuration for example, consisting of depth, mwm...parameters.
Copied from original issue: iota-tangle-io/spamalot-project#3
Copied from original issue: iota-tangle-io/iota-spamalot.go#1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.