Skip to content

A secure and distributed ledger that resembles cryptocurrency written in Java

Notifications You must be signed in to change notification settings

GoncaloGarcia/SEC-HDSCoin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEC-HDSCoin

HDS Coin is a projet introduced by Highly Dependable Systems course at IST. The main goal is to implement a secure and distributed ledger that resembles cryptocurrency. This project can withstand collusion between one client and one server assuming a ring of 5 servers.

The 1st stage's description is defined at SEC-1718Project-stage1.pdf

HOW TO RUN

On the root folder run:

mvn clean package

First run the server:

java -jar Server/target/Server-1.0-SNAPSHOT-jar-with-dependencies.jar

Then you can run the client:

java -jar Client/target/Client-1.0-SNAPSHOT-jar-with-dependencies.jar

Both Client and Server will show a custom shell that let's you execute the commands from the project statement The server also has commands to crash and recover from a crash.

We have added three test users Alice, Bob and Charly, to skip the need to generate RSA Keys.

To run the tests first run the server, then execute

mvn test

Bugs: negative value, transaction signature, crash server may cause file corruption.

The 2nd stage's description is defined at SEC-1718Project-stage2.pdf

About

A secure and distributed ledger that resembles cryptocurrency written in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%