PSU CSE 541 Project Idea

1,572 views
1,481 views

Published on

Bitcoin Importer in Neo4J.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,572
On SlideShare
0
From Embeds
0
Number of Embeds
980
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

PSU CSE 541 Project Idea

  1. 1. CSE 541 Importing & Processing BitCoin Blockchain with Neo4J Nitish Upreti MSCS
  2. 2. BitCoin 101 • BitCoin is a crypto currency where the creation and transfer of BitCoins is based on an open- source cryptographic protocol independent of any central authority. • Future of online currency? • Impact on Privacy, Criminal Activities & Taxation.
  3. 3. Challenges with P2P Currency • How to regulate the amount of minted currency? • How to prevent double spending? • How to enforce anonymity? • How to scale the currency?
  4. 4. Regulating the minted Currency • Mining, or generating, is the process of adding transaction records to BitCoins block chain of past transactions. • Computationally Difficult Problem. • Mining a block is difficult because the SHA-256 hash of a block's header must be lower than or equal to the current target ( agreed by the network) in order for the block to be accepted by the network.
  5. 5. Preventing Double Spending • BitCoin protects against double spending by verifying each transaction added to the block chain to ensure that the inputs for the transaction had not previously already been spent. • A block chain is a transaction database shared by all nodes participating in a system. A full copy of a currency's block chain contains every transaction ever executed in the currency. With this information, one can find out how much value belonged to each address at any point in history.
  6. 6. All Hail Neo4J ! • Neo4J is a NoSQL graph database. • The data is stored in a graph model. • Full ACID transactions with Graph Query language. • Perfect fit for associative data sets. • Scale easily and provide a way around expensive join operations.
  7. 7. Project Objectives • Building tools to import block chain data in Neo4J. ( 9.2 GB as of 15th September ) • Generating Charts & Stats : Total BitCoins in circulation. Market Capitalization. Total Transaction Fees & Number of Transactions. Hash Rate Block Chain size. And much more !
  8. 8. A reusable JRuby gem for Import • Building a JRuby gem (neobitcoin) : 1. Why JRuby over MRI ? ( Avoiding REST API Overhead ) 2. Using JSON RPC to connect to a BitCoin server running at localhost. 3. Importing Block Chain data and storing it appropriately in Neo4J.
  9. 9. Generating Charts & Statistics • Building a Ruby on Rails web application using this gem with HighCharts JS API to generate statistics & Charts. • Time Permitting : Working on a Visualization for BitCoin block chain based on Neo4J.
  10. 10. Thank You! Questions & Suggestions?

×