Skip to content

Proof of Work Cryptocurrency written in Python.

License

Notifications You must be signed in to change notification settings

STR-Coding-Club/RobCoin

Repository files navigation


Logo

STR Robcoin

A Proof of Work Cryptocurrency Written in Python
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

  1. About The Project
  2. Usage
  3. Forking
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgements

About The Project

'STR Coding Club 2021'

Developed by St. Robert CHS' Coding Club in 2021, RobCoin (Symbol: $TR) is a proof-of-work cryptocurrency written in Python. As a project, RobCoin's development was used to guide and educate club members about cryptocurrencies and provide real-world programming experience.

DISCLAIMER

This project is an independent project pursued by St. Robert Catholic High School's Coding Club. This project is not affiliated, sponsored, or supported by St. Robert Catholic High School or the York Catholic District School Board. St. Robert Catholic High School's Coding Club is not liable for any loss or damage of whatever nature (direct, indirect, consequential, or other) that may be incurred through the use of the project.

AS A PROJECT DESIGNED AROUND EDUCATION, ROBCOIN HAS NO MONETARY VALUE. THE USE OF THIS COIN SHOULD ONLY BE FOR EDUCATIVE/EXPLORATORY PURPOSES. ST. ROBERT CHS CODING CLUB HIGHLY DISCOURAGES THE USE OF ROBCOIN AS A MEDIUM OF TRANSACTION FOR MATTERS SUCH AS, BUT NOT LIMITED TO: (1)TRANSACTIONS OF MONETARY VALUE, (2)EXCHANGE FOR SERVICES AND/OR GOODS, (3)ILLEGAL/ILLICIT ACTIVITIES. ANY EVIDENCE OF SUCH ACTION WILL BE REPRIMANDED. ROBCOIN'S SOURCE CODE IS DISTRIBUTED UNDER THE MIT LICENSE. SEE LICENSE FOR MORE INFORMATION.

Built With

Usage

Prerequisites

  • Python 3.9, pip3

Windows

  1. Install the latest release of Python 3.9

Ubuntu

  1. Update before installing new packages

    sudo apt-get update
  2. Check Python version

    python3 --version
  3. If Python version < 3.9

    sudo apt install python3.9
  4. Validate

    python3.9 --version
  5. Install pip3

    sudo apt-get -y install python3-pip
  6. Validate

    pip3 --version

Initialization

Download and extract client.zip (NOT THE SOURCE CODE!) from the latest release.

  1. Install Required Libraries

    pip3 install -r requirements.txt

    In some cases, pip3 may be pip in PATH

    pip install -r requirements.txt
  2. Using your IDE of choice, open the extracted RobCoin folder.

  3. Run run_wallet.py to generate private & public keys; wallet address.

  4. Run run_miner.py to start mining to earn RobCoin!

miner

Wallet (Transactions)

After mining for a while, you should have some RobCoin to spend! run_wallet.py will allow you to send, recieve and check your balance through the use of commands.

wallet

Commands

  1. address

    • Returns your receiving address so that others can send you Robcoin
  2. balance

    • Returns your balance of Robcoin.

      • Pending refers to transactions that have yet to be mined onto the blockchain.
  3. balance <address>

    • Returns the balance of inputted address
  4. send <recipient> <amount>

    • recipient -> The recipient's address

    • amount -> The amount of Robcoin you wish to send

Forking

Using RobCoin's source code, you may choose to fork RobCoin by creating your own blockchain. To do so, you will need to run your own node

Prerequisites

  • Python 3.9, pip3
  1. Update before installing new packages

    sudo apt-get update
  2. Check Python version

    python3 --version
  3. If Python version < 3.9

    sudo apt install python3.9
  4. Validate

    python3.9 --version
  5. Install pip3

    sudo apt-get -y install python3-pip
  6. Validate

    pip3 --version

Installation

  1. Clone the repo
    git clone https://github.com/STR-Coding-Club/RobCoin
  2. cd into repo directory
    cd RobCoin
  3. Install Required Libraries
    pip3 install -r requirements.txt
  4. Open Port 5000 on host domain
  5. Add host domain to wallet.py, node.py
  6. Run node.py
    python3 node.py

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

St. Robert CHS Coding Club - @strcodingclub - str.codingclub@gmail.com

Project Link: https://github.com/STR-Coding-Club/RobCoin

Acknowledgements