Academic project for the university. It consists of the creation of a blockchain network for the use of smart contracts in a work proposal.
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.
{
"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"
}
There are only 2 files, the Blockchain class and the API (Node) implementation
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
- 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.