vishavsingla / Anti-Corrupto

This project leverages cutting-edge technologies like blockchain and machine learning to build trust and combat corruption in government systems. Secure Land Registry: Eliminates fraud with tamper-proof land ownership records. Automated Traffic & Challan System (using edge computing): Ensures transparency in traffic enforcement and reduces bribery
3 stars 6 forks source link

Improving security and gas efficiency of the smart contracts. #50

Open Vedantjn opened 1 month ago

Vedantjn commented 1 month ago

I made these changes in the smart contracts:

ChallanManagement.sol: 1). Replaced assembly parsing with a more gas-efficient method. 2). Used block.timestamp for issue dates instead of block.number. 3). Added visibility specifiers for all functions.

LandRegistry.sol: 1). Replaced assembly parsing with a more gas-efficient method. 2). Added checks to ensure land is registered before transferring. 3). Added visibility specifiers for all functions.

VehicleManagement.sol: 1). Replaced assembly parsing with a more gas-efficient method. 2). Added visibility specifiers for all functions.

vishavsingla commented 1 month ago

Hello @Vedantjn , Thanks for the contributions, but actually we are using these contracts in website frontend part, we will have to make changes in that also, I am assigning you the issue, to once setup frontend and check if everything is working fine with updated contracts.

Vedantjn commented 1 month ago

Sure.

samr874 commented 1 month ago

Is the contribution still active ?? are we looking towards more contributions in this project ??

vishavsingla commented 1 month ago

Yes. We are looking to improve frontend and bugs in blockchain, you can try setting it up.

samr874 commented 1 month ago

Sure

Vedantjn commented 1 month ago

It is working fine with the updated smart contracts with added security. You can review it. Btw, how to add the gssoc label to this?