Skip to content

alimohammed1624/Bitcoin-Mini-Project-DSA-G18

Repository files navigation

DSA MiniProject - Group 18

DSA mini-project by Group 18 to simulate and understand the working of Bitcoin on a smaller scale

Bitcoin User Instructions

Step 1- Compile and Run the code

  • install the openssl library sudo apt-get install libssl-dev
  • cd into the directory and compile gcc main.c inquire.c blockchain.c blockhash.c src/hashtable.c -lssl -lcrypto
  • run the code /a.out

all these 3 commands are in bash file run.sh. So, running run.sh will be running all three steps at once

    ./run.sh 

or

    sudo apt install libssl-dev
    gcc main.c inquire.c blockchain.c blockhash.c src/hashtable.c -lssl -lcrypto
    ./a.out

Step 2- Select the operation to perform from the displayed list (0-8)

       LIST
        1 - Add a user
        2 - View balance
        3 - Make a transaction
        4 - Attack a random block
        5 - Validate the blockchain
        6 - View User's Transaction history
        7 - View Block chain
        8 - Display block by block number
        0 - Kill the blockchain

Step 3- Enter the required details for the respective funtion

       LIST
        1 - Add a user - No details to be entered
        2 - View balance - Enter the Unique ID (uID)
        3 - Make a transaction - Enter the Unique ID (uID) of sender and reciever and amount to be transfered
        4 - Attack a random block - No details to be entered
        5 - Validate the blockchain - No details to be entered
        6 - View User Transaction history - Enter the Unique ID (uID)
        7 - View Block chain - No details to be entered
        8 - Display block by block number - Enter the block number of block you want to view
        0 - Kill the blockchain - No details to be entered

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •