45
#DevoxxCoin By BELLAJ Badr Twitter @badrbellaj The Age of Cryptocurrency Developers Let’s Discover A new opportunity [email protected] Linkedin.com/in/bellajbadr

the age of cryptocurrency at Devoxx Morocco

Embed Size (px)

Citation preview

Groovy en 2014 et au-del

The Age of Cryptocurrency

Developers Lets Discover A new opportunity

[email protected]/in/bellajbadr

#DevoxxCoin

By BELLAJ Badr

Twitter @badrbellaj

The Age of Cryptocurrency

Twitter @Badrbellaj#DevoxxCoin$ WhoamI?

Twitter @badrbellaj#DevoxxCoin

$ WhoamI?

Twitter @badrbellaj#DevoxxCoin

Money is

Twitter @badrbellaj#DevoxxCoin

Why Money ?

With money you could exchange goods in a market for a common medium of exchange.

Twitter @badrbellaj#DevoxxCoin

Currency Evolution

Twitter @badrbellaj#DevoxxCoin

Currency Evolution

Rai StoneThe Stone money

4Tons

Solution Anti-Pickpocket

Twitter @badrbellaj#DevoxxCoin

Paper money was introduced inChina during the 11th century.In the 13th century, paper money became known in Europe.

PAPER ..No Way????

Currency EvolutionThe problems begins :(

Twitter @badrbellaj#DevoxxCoin

Twitter @Badrbellaj#DevoxxCoin

A centralized system

Twitter @badrbellaj#DevoxxCoin

inflation/diflationthe Vietnam War and persistent balance of payments deficits, led U.S. President Richard Nixon to end international convertibility of the U.S. dollar to gold on August 15, 1971

Governments (banks) prints easily money to pay debts, pay more salaries without regard for a stable currency.

Twitter @badrbellaj#DevoxxCoin

Inflation/Hyper Inflation

Twitter @badrbellaj#DevoxxCoin

How money is cratedBased on credits !!

Twitter @badrbellaj#DevoxxCoin

In a centralized model, NO!!

Twitter @Badrbellaj#DevoxxCoin

In a god they trust

I have no trust in the god they trustInflationSlow transfers (2 business days)Expensive transfersEase of seizurelocal

Twitter @badrbellaj#DevoxxCoin

Twitter @Badrbellaj#DevoxxCoin

Wait After all, Everything is digital why not Money?Digital currencies are needed for a digital world

Twitter @Badrbellaj#DevoxxCoinBut there is a double spend problem to solve

The CryptocurrencyBitcoinDreams becomes reality

@Badrbellaj#DevoxxCoin

A digital currency in which encryption techniques are used to regulate the generation of units of currency and verify the transfer of funds, operating independently of a central bank within a peer to peer network.

We trust in Math/ Encryption

Twitter @badrbellaj#DevoxxCoin

Crypto CurrencyCrypto currencies use decentralized control as opposed to centralized electronic money/centralized banking systems.

Most crypto currencies are designed to gradually decrease production of currency, placing an ultimate cap on the total amount of currency that will ever be in circulation.Decentralized crypto currency is produced by the entire crypto currency system collectively, at a rate which is defined when the system is created and which is publicly known

Twitter @badrbellaj#DevoxxCoin

Cryptocurrencies use decentralized control as opposed to centralized electronic money/centralized banking systems.The decentralized control is related to the use of bitcoin's block chain transaction database in the role of a distributed ledger.

Decentralized cryptocurrency is produced by the entire cryptocurrency system collectively, at a rate which is defined when the system is created and which is publicly known

Most cryptocurrencies are designed to gradually decrease production of currency, placing an ultimate cap on the total amount of currency that will ever be in circulation.

In 2008 A whitepaper was posted on the internet by Satoshi Nakamoto titledBitcoin: A Peer-to-Peer Electronic Cash System. It described a sytem of cryptocurrency that was not backed by any government or any form of existing currency.

Bitcoin ("BTC") since 2008

Twitter @badrbellaj#DevoxxCoin

Bitcoin is an Open-Source project (software)The most successful & the first fully implemented crypto currency. Bitcoin is a peer to peer Network (over internet) and a Currency base.

Bitcoin

Twitter @badrbellaj#DevoxxCoin

Bitcoin

Twitter @badrbellaj#DevoxxCoin

No corporation or government controls it, and you dont have to trust any third party with your money. You completely control your money with Bitcoin, and can anonymously and securely send it to anyone else.

Public key cryptography was invented in the 1970s and is a mathematical foundation for computer and information security

In Math we trust

We trustsIn something (gold) we trusts

In someone (bankers) we trusts

Twitter @badrbellaj#DevoxxCoin

Les maths sont incorubtible

High transparencyHigh resilience / availabilityHigh Trust/securityHigh Efficiency/Low CoastHigh performanceuniversal

Bitcoin is a better form of money

Twitter @Badrbellaj#DevoxxCoinNO SPOF

Venture capitalists have invested more than $500 million (340m) into Bitcoin-related startups.

Twitter @Badrbellaj#DevoxxCoin

Bitcoin/$

Twitter @badrbellaj#DevoxxCoin

in October 2013, reaching over $1160 by early December. Note how the 2nd Bitcoin bubble on the left side of the price chart is absolutely dwarfed by the 3rd bubble. This is the highest price Bitcoin has ever reached to date

and slowly declined through May 2014 to $440. Alot of the decline can be explained by Mt. Gox collapsing, China trying to ban the Bitcoin trade, and the United States government taking an anti-Bitcoin stance. Currently the price is relatively stable despite all of these factors, and it appears the worst is over.

How it WorksThe Age of Cryptocurrency

@Badrbellaj#DevoxxCoin

@Badrbellaj#DevoxxCoin

A VIDEO that explain the notion Behind BTC

@Badrbellaj#DevoxxCoin

Transactions

Twitter @badrbellaj#DevoxxCoin

Proof of WorkTo get paid for their hash, a miner must find a hash that starts with a certain sequence. (for example, 000) This extends the amount of time the miner must spend on each block (avoid inflation)

Twitter @badrbellaj#DevoxxCoin

BlockchainA persistent, distributed database, put assets into a transparent ledger, everyone has a copy. It is Cryptographly secure.

Twitter @badrbellaj#DevoxxCoin

BlockchainBC resolves a complex problem : how to initiate trust without a centralized authority

Twitter @badrbellaj#DevoxxCoin

Inside Blockchain

Bitcoin/Blockchain is a transparent system

Twitter @badrbellaj#DevoxxCoin

Vous pouvez voir en temps reel les transactions en cours

DEMOBitcoin Core

@Badrbellaj#DevoxxCoin

>>bitcoind regtest>>bitcoin-cli regtest generate 101 //frst time>>bitcoin-cli regtest getbalance Bitocoin core is available at bitcoin.orgBitcoin core

Twitter @badrbellaj#DevoxxCoin

Talk is cheap, Show Me TheCode

@Badrbellaj#DevoxxCoin

Avez-vous des questions avant de passer au code?

Lets code for BitcoinBITCOINJIs Open source(Apache licensed) & Java

Twitter @Badrbellaj#DevoxxCoin bitcoinj is a library for working with the Bitcoin protocol. It can maintain a wallet, send/receive transactions without needing a local copy of Bitcoin Core and has many other advanced features

there are no situations in which you could sue any of the developers (it's as if you wrote the entire library yourself). If you can't handle that, don't use this library.

Get started with BitcoinJYou candownload the library as a JAR, oruse Maven, orget the code from github.

Documentation : https://bitcoinj.github.io/javadoc/0.13.3/

bitcoinj is a library for working with the Bitcoin protocol. It can maintain a wallet, send/receive transactions without needing a local copy of Bitcoin Core and has many other advanced features

Twitter @Badrbellaj#DevoxxCoin

BitcoinJ Samplefinal NetworkParameters params = RegTestParams.get();final DumpedPrivateKey dumpedPrivateKey = new DumpedPrivateKey(RegTestParams.get(), "cQWVW6Vj3E7qEH4DSxN5HGcE29YTPQhpKBzJGXEcQ7LtWtEZ9YGK");final ECKey key = dumpedPrivateKey.getKey();System.out.println("BTC address that will be added: " + key.toAddress(RegTestParams.get()));System.out.println("Private key that will be added: " + key.getPrivateKeyEncoded(RegTestParams.get()));Address addressFromKey = key.toAddress(params);System.out.println("On the network, we can use this address:\n" + addressFromKey);

final WalletAppKit kit = new WalletAppKit(RegTestParams.get(), new File("Doxx"), "Devoxx BTC") { protected void onSetupCompleted() {

}};

Twitter @Badrbellaj#DevoxxCoinDEMOBitcoinJ

Twitter @Badrbellaj#DevoxxCoinBTC is 42 000 lines of code only

As of June 30, there were6,109 Github repositories referencing Bitcoin.By comparison, there were 2,318 repositories referencing Paypal.

Twitter @badrbellaj#DevoxxCoin

A big opportunity for developers

Blockchain is here to stay

Twitter @badrbellaj#DevoxxCoin

Keep in mind that BC is here forever

Projects based on BCNamCoinBitMessageStoraj.IOZennet (super computer)LazoozEtherum (smartcontract)

Twitter @badrbellaj#DevoxxCoin

Q & AThe Age of Crypto currency

@YourTwitterHandle#DVXFR14{session hashtag}

Twitter @Badrbellaj#DevoxxCoin