Skip to content

Academic Project for an University work where is needed a Blockchain implementation to generate Smartcontracts

License

Notifications You must be signed in to change notification settings

Zeta-0x00/BlockChainPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlockChainPy

Academic project for the university. It consists of the creation of a blockchain network for the use of smart contracts in a work proposal.

How to use

Install the requirements and run the MeineAPI file which is the blockchain node.

pip3 install -r requirements.txt
python3 MeineAPI.py

I use the Thunder Client extension in VS Code for testing, you may find it useful for not having to use postman.

Transaction format

{
    "type":"Contract/Payment", //any of then, only are an example
    "company":"MDPM",
    "client":"Z",
    "taskcode":"MDPM-010",
    "deadline":"2022-05-26 00:00:00",  //recomend use datetime equivalent in the client
    "amountr":5000,
    "currency":"P"
}

Files

There are only 2 files, the Blockchain class and the API (Node) implementation

Blockchain.py

This is a simple implementation of a blockchain, the important things are:

  • Every method and argument of the class has their respective data type
  • The code are separated by region to make it easier to read
  • The hashing algorithm is SHA3-512

MeineAPI

  • Every method has their respective data type
  • The code are separated by region to make it easier to read
  • It needs to always have the Blockchain class in the path to be executed as it is its main dependency.

About

Academic Project for an University work where is needed a Blockchain implementation to generate Smartcontracts

Topics

Resources

License

Stars

Watchers

Forks

Languages