-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
29 lines (19 loc) · 1.46 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description:
In ScroogeCoin, the central authority Scrooge receives transactions from users.
In this project we implemented the logic used by Scrooge to process transactions and produce the ledger.
Scrooge organizes transactions into time periods or blocks.
In each block, Scrooge will receive a list of transactions, validate the transactions he receives, and publish a list of validated transactions.
Instructions:
Paste your code i.e. TxHandler.java and MaxFeeTxHandler.java in this directory and run using the following set of commands
1) Testing TxHandler.java: Enter the following commands in your terminal from the current working directory.
$javac -cp scroogeCoinGrader.jar;rsa.jar;algs4.jar;. TestTxHandler.java
$java -cp scroogeCoinGrader.jar;rsa.jar;algs4.jar;. TestTxHandler
2) Testing MaxFeeTxHandler.java: Enter the following commands in your terminal from the current working directory.
$javac -cp scroogeCoinGrader.jar;rsa.jar;algs4.jar;. TestMaxFeeTxHandler.java
$java -cp scroogeCoinGrader.jar;rsa.jar;algs4.jar;. TestMaxFeeTxHandler
Note: If you are using IDE like eclipse, just add jar files to your build path and create a folder for all text files within the working directory of your code.
Replace ; with : when working on MacOS
Jar Files:
1) rsa.jar: Contains classes for using RSAKeys
2) algs4.jar: Contains some useful classes like defining priority queues, stacks, etc.
3) scroogeCoinGrader.java: Contains classes used for grading the submitted files.