Skip to content

TheophileWalter/MiniPythonLocalBlockChain

Repository files navigation

MiniPythonLocalBlockChain

Projet du cours Blockchain

Main informations

Node = Miner

TODO list

  • Class : Main.py lance soit un client soit un mineur

  • Class : Blocks.py Théophile

    • init(self, nodeName)
    • getBlock(self, id)
    • getList(self)
    • writeBlock(self, previous, miner, pow, date, nonce, transactions)
    • tests
  • Class : TransactionsParent.py (classe mère de Transactions et PendingTransactions, définit le dossier où chercher) Alice

    • init(self, b, node)
    • listTrans(self)
    • readTrans(self, trans)
    • writeTrans(self, src, dest, amount, fees)
    • tests
  • Class : Transactions.py (hérite de TransactionsParent) Alice

    • init(self, node)
  • Class : PendingTransactions.py (hérite de TransactionsParent) Alice

    • init(self, node)
    • transDelete(self,trans)
  • Class : Accounts.py Alexis

    • init(self, nodeName)
    • _get_new_hash(self)
    • _get_accounts_list(self)
    • modify_account(self, accountId, amount)
    • _check_if_account_already_exists(self, accountId)
    • create_account(self, amount)
    • get_account_amount(self, accountId)
    • tests
  • Class : Date.py Alexis

    • init(self)
    • get_date(self)
    • tests
  • Class : Node.py

    • get_attributes(self)
    • init(self, nodeName)
    • create(self)
    • copyFrom(self, nodeName)
  • Class : Client.py Alice

    • init(self, node, id)
    • createAccount(self, amount)
    • addTrans(self, dest, amount, fees)
    • getBalance(self)

About

Projet du cours Blockchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published