Code Monkey home page Code Monkey logo

mit-bitcoin-expo-hackathon-2022's Introduction

Bitcoin Choices

Bitcoin Choices is a project built as part of the 2022 MIT Bitcoin Expo Hackathon 2022. MIT Bitcoin Expo Website: https://www.mitbitcoinexpo.org/

Summary

Bitcoin Choices is a scalable voting solution for Bitcoin built by a team of developers from the Choice Coin DAO for the 2022 MIT Bitcoin Expo Hackathon. DevPost Submission: https://devpost.com/software/choice-coin-bitcoin-choices

Video Demo

YouTube: https://www.youtube.com/watch?v=bRQe6bZcgT0

Problem

Bitcoin transactions take a long time and often cost hundreds or thousands of dollars to facilitate because of the high cost of energy required to validate blocks. There exists a need for a way to securely vote with Bitcoin in a cost-efficient and timely manner to facilitate governance for the Bitcoin network. Defined, the Bitcoin governance problem is how can Bitcoin be used for fast, scalable, and secure voting with instantaneous results?

Solution

The solution is Bitcoin Choices, a scalable, secure, and systemic methodology for voting with collateralized Bitcoin on the Algorand blockchain. We launched a new web application to facilitate a DAO vote. You can read more about the Issue and options for the vote in our blog here: https://medium.com/@ChoiceCoin/choice-coin-bitcoin-choices-6218ee5993d7

How we built it

We built Bitcoin Choices using the Algorand blockchain as a scaling solution. The software also leverages AlgoMint, which is a software for creating collateralized Bitcoin on Algorand. By collateralizing Bitcoin on Algorand, BTC transactions become faster and less expensive.

We then developed a voting infrastructure using React and the Algorand JavaScript-SDK to create a voting interface that allows users to connect their wallets and vote. The votes are then aggregated on the blockchain and recorded in real time. After the voting period concludes, we wrote a smart contract that reads all the voting data from the blockchain and returns any Bitcoin used for voting, plus a proportional reward from a pool.

Challenges we faced

One of the main challenges we ran into was the mathematics for voting and ensuring the software could adequately handle unit measurements in Satoshis, the smallest BTC unit. For reference, one Bitcoin is equal to 100,000,000.00 Satoshis and one Satoshi is equal to 0.00000001 BTC. But, calculating such small numbers to allow for one Satoshi to equal one vote and to coordinate those calculations with the Algorand blockchain was our key challenge in both front-end and back-end development.

Decentralized Web Application

Screen Shot 2022-05-07 at 12 38 34 PM

Vote Results

Screen Shot 2022-05-07 at 3 37 20 PM

Contrbutors

White Paper

SSRN: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4103448

MIT License

Copyright Choice Coin 2022

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

mit-bitcoin-expo-hackathon-2022's People

Contributors

samuellyworld avatar bhaney44 avatar davonjagah avatar choicecoin avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.