Simple blockchain implementation in Java according to the tutorials from Kass with some improvement on parallelization.
- Allows users to create wallets with ‘new Wallet();’
- Provides wallets with public and private keys using Elliptic-Curve cryptography.
- Secures the transfer of funds, by using a digital signature algorithm to prove ownership.
- Allow users to make transactions on blockchain with
Block.addTransaction(walletA.sendFunds( walletB.publicKey, ${AMOUNT}));
configure java with sdkman
compile and run the application via this script package-app.sh
$ chmod +x package-app.sh
$ ./package-app.sh
How to run the application:
On terminal snapshot it simulates the basic use of the application, where two wallets are created and funds are sent from one to the other.
It uses single-threaded execution as it runs NoobChain.java
class.
ParallelNoobChain.java
is used for parallelization.