Computer Science project, 2nd semester AAU. Aims to create a framework for a distributed and public registry of persons based on Proof-of-Authority. This type of distributed concensus diverges from research by POA Network by a number of factors; no Master of Ceremony, however a genesis-authority based on governmental organ responsible for registration.
For using the IDE-environment to compile, debug and build artifacts, the following setup must be carried out:
- Clone or extract repository from archive to local filesystem. This directory will be referred to as
/
or root going forward. - Open IntelliJ and open project by going to
File -> Open...
and navigate to root. Select/datchain/
and pressOK
- Go to
Project Structure
by keyboard shortcutCtrl + Alt + Shift + S
- Go to
Project
and setProject SDK
to local Java 9 SDK or above. If your flavour of IntelliJ ships Java SDK 9 or above, this is compatible as well. - Go to
Libraries
and add librariesfuzzywuzzy-1.1.10.jar
andgson-2.8.4.jar
included in/datchain/lib/
by pressing the plus-icon.- If you wish to compile your own artifacts,
*.jar
s, go toArtifacts
and press the plus-icon, chooseJavaFx Application
and go to tabJava FX
in the new entry. SetApplication class
todk.aau.cs.a311c.datchain.gui.Wrapper
.
- If you wish to compile your own artifacts,
- Go to
Run/Debug Configurations
and add a newApplication
through the plus-icon. UnderMain class
choosedk.aau.cs.a311c.datchain.Datchain
and optionally specifyJRE
to either9
or10
. - Now project can be compiled and run within IntelliJ through choosing newly created run-configuration and using toolbar-icons.
To run JUnit5
tests on the project, the following setup must be carried out:
- Make sure your IntelliJ-environment is setup correctly according to guide above and if you are, at any point, prompted to download
JUnit5
from Maven-repositories, accept andJUnit5
will be added to project libraries. - Go to
Project Structure
by keyboard shortcutCtrl + Alt + Shift + S
. - Go to
Modules
and in tabSources
mark folderdatchain/test/
asTests
and apply changes. - Go to
Run/Debug Configurations
and add newJUnit
optionally setting newName
. - In new entry's
Configuration
tab, setTest kind
toAll in directory
from drop-down menu. - Set directory to
/datchain/test/
leaving default settings unchanged and apply changes. - Now tests and coverage can be run within IntelliJ through choosing newly created run-configuration and using toolbar-icons.
Documentation on means of Proof-of-Authority distributed concensus: Consensus.md