Inspiration

A platform for gamers, by gamers. CodeShop aims to allow under-aged individuals to legally buy games by mining cryptocurrency tokens and then using the same to buy games, essentially free of cost.

What it does

Codeshop accepts bitcoin payments in exchange for granting customers the ability to buy and keep games in their library permanently.

How we built it

The front-end of the website was implemented in react.js and back-end was implemented in node.js. The user account was structured in a way that the user account could track the following: user name user library private key public key user transactions user balance(in tokens) In order to curb double-spending, it was also decided that the system arranges transaction details in the following manner: transaction reference array(array of all previous transactions with enough value to sum up to a value greater than amount sent hashed ) public key of sender public key of receiver amount private key Since the system is not decentralized, a balance check was enough to curb double-spending.

Challenges we ran into

The biggest challenge I faced was time constraints due to being the only person in my team. As a result, a proper decentralized implementation was not feasible within the given time constraints. As far as a centralized implementation is concerned, it did not face double-spending and consensus problems since a central database is making all the decisions.

Accomplishments that we're proud of

I have successfully implemented a functioning e-commerce site within 20 hours, which also contains the ability to receive and send crypto between the user and the server and has future support for mining and decentralization, which in itself is reason enough to be proud.

What we learned

It was a humbling experience to push myself to my limits and learn how much I can accomplish within such a short time span. I learned how blockchains work and set up a basic framework for implementing a block-chain as well as learned to cope with pressure.

Built With

Share this project:

Updates

Submission history