Building with HashGraph Part 2: Technical Workthrough

A diagram illustrating a gossip based protocol. Each node represents a gossip event being sent/received.

Look at index.html of docs

Config.txt

swirld, 123
# app, HashgraphDemo.jar, 1,0,0,0,0,0,0,0,0,0, all
# app, GameDemo.jar, 9000, 9000
app, HelloSwirldDemo.jar
# app, CryptocurrencyDemo.jar
# app, StatsDemo.jar, 0, 3000, 0, 100, 1024, -1
# app, FilesystemDemo.jar
address,  A, Alice,    1, 127.0.0.1, 50204, 127.0.0.1, 50204
address, B, Bob, 1, 127.0.0.1, 50205, 127.0.0.1, 50205
address, C, Carol, 1, 127.0.0.1, 50206, 127.0.0.1, 50206
address, D, Dave, 1, 127.0.0.1, 50207, 127.0.0.1, 50207

Running a Demo

cd sdk
java -jar swirlds.jar
mvn deploy 
cd ../../
java -jar swirlds.jar

HelloSwirld Demo

if (consensus) {
strings.add(new String(transaction, StandardCharsets.UTF_8));
}

Summary

--

--

We are a student-run technology society, promoting a culture of creators and innovators by organising workshops and events for any student who wants to take part. This blog is a platform to spread the thoughts, opinions and projects of the tech-enthusiasts who write for it.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Charlie Crisp

I’m a Software Engineer working in Modelling and Simulation. I’m interested in performance, networking and distributed systems — www.charliecrisp.com