- https://anders.com/blockchain/blockchain
- Hashing function
- coinbase transaction
- the ledger is all of the transactions
- How many confirmations required?
- blocktime
- 10 minutes bitcoin
- guessing game for nonce
- Verify not trust
- you can get a copy of the full ledger (record of account) for 400 gb
- make an address
- choose a random number in a large enough space, the probability of collision is near-zero
- make a random number, generate a private and public key pair from that number
- no one can guess the private key from the public key
- no central authority for addresses
- with mouse entropy
- with javascript
- 2^256 feels like infinity (more numbers than atoms in the universe)
- 2^160 (10^48) is the order of the private keys (number of possible addresses)
- number of atoms in the universe is 10^80
- control of the private key is the ownership of the funds (control of the funds)
- transactions have inputs and outputs
- first bitcoin transaction. Was between Finney and satoshi https://www.blockchain.com/btc/tx/f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16
- sweeping large number of utxos to make a payment https://www.blockchain.com/btc/tx/1c12443203a48f42cdf7b1acee5b4b1c1fedc144cb909a3bf5edbffafb0cd204
- this was likely a large miner moving their funds to an offline wallet
- same thing happens in your wallet software with dust (change)
- https://www.blockchain.com/btc/tx/9e95c3c3c96f57527cdc649550bf8e92892f7651f718d846033798aee333b0c3 July 1, 2014: The U.S. Marshal’s Auction When the online black market Silk Road was shut down, the U.S. government seized roughly 144,000 bitcoins. In what was a three-part auction, the first auction of coins was sold to venture capitalist and entrepreneur Tim Draper which was for 30,000 bitcoins, worth $19 million USD at the time.
- The "Balance" of an address is the number of unspent transaction outputs UTXOs associated with that address
- fees overview https://bitcoinfees.earn.com
- artificial scarcity - halving and 21 million supply
https://bashco.github.io
- If the mining power had remained constant since the first Bitcoin was mined, the last Bitcoin would have been mined somewhere near October 8th, 2140. Due to the mining power having increased overall over time, as of block 367,500 - assuming mining power remained constant from that block forward - the last Bitcoin will be mined on May 7th, 2140. https://en.bitcoin.it/wiki/Controlled_supply#Projected_Bitcoins_Long_Term
- _ block space is a scarce commodity, getting a transaction mined can be seen as purchasing a portion of it. By analogy, on average every 10 minutes a fixed amount of land is created and no more, people wanting to make transactions bid for parcels of this land. The sale of this land is what supports the miners even in a zero-inflation regime. The price of this land is set by demand for transactions (because the supply is fixed and known) and the mining difficulty readjusts around this to keep the average interval at 10 minutes._
- https://digiconomist.net/bitcoin-energy-consumption total cost of network in 2019 is ~$3.6 billion usd per year
- highlevel - blocksize, price, txns/day https://www.blockchain.com/charts
- btc issued so far https://www.blockchain.com/charts/total-bitcoins?timespan=all (resize to match 2140 chart)
- power spent on the game over time (in exahashes) https://www.blockchain.com/charts/difficulty?timespan=all
- txns/block https://www.blockchain.com/charts/n-transactions-per-block?timespan=all
- unique addresses over time https://www.blockchain.com/charts/n-unique-addresses?timespan=all
- transactions over time https://www.blockchain.com/charts/n-transactions-total?timespan=all
- mempool size https://www.blockchain.com/charts/mempool-size?timespan=all
- generate qr code
- https://www.btcfrog.com/ - generates qr codes from btc addresses
- place png on website to let people send you btc
- use bitpay on mobile https://support.bitpay.com/hc/en-us/articles/360015463612-How-to-Create-a-Testnet-Bitcoin-or-Bitcoin-Cash-Wallet
- make btc bitpay account, then when generating a new wallet set "test net" under advanced settings
- Testnet faucets for getting fake bitcoin for experimenting
- https://tbtc.bitaps.com (lots of graphs)
- 2nd faucet https://coinfaucet.eu/en/btc-testnet/ (if throttled by get students to send to each other (lower confirmations required in bitpay wallet software advanced settings))
- faucet to mobile
- Send test btc to each other,
- mobile to mobile (p2p)
- mobile to desktop
- desktop to mobile
- review transaction
- sending address
- receiving address
- alice's transaction
- https://blockchain.info/tx/0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2
- https://blockexplorer.com/tx/0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2
- https://live.blockcypher.com/btc/tx/0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2/
- https://blockchair.com/bitcoin/transaction/0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2
- https://blockstream.info/tx/0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2
- 1 input
- 2 outputs (spare change occurs)
- Unspent Transaction Outputs (UTXOs) are tracked by wallet software
curl https://blockchain.info/unspent?active=1Cdid9KFAaatwczBwBttQcwXYCpvK8h7FK
look up all the unspent outputs for Alice's bitcoin address
- review address https://www.blockchain.com/btc/address/1MoonKQMvcajtaZB14Qfr8vCv9dr6Q8WEW
- review block https://www.blockchain.com/btc/block/497851
- download electrum https://electrum.org/#download
- generate legacy wallet
- go over security practices
- mycelium gear
- https://gear.mycelium.com
- can generate a button you can copy paste into website to accept btc payments
- first make address in a wallet (Note: must be legacy non-segwit address)
- then gateway
- then button
- then serve on local webpage
- open up https://repl.it/@morenoh149/Bitcoin-examples
- go over exercises one by one
- get test btc
- docs https://www.blockcypher.com/dev/bitcoin/#introduction (test3 is the bitcoin testnet we used at bitaps.com)
- blockchain data api https://www.blockchain.com/api/blockchain_api TODO
- https://bcoin.io/guides/generate-address.html
- https://bcoin.io/guides/working-with-txs.html
- do not send btc to people acting like your friends, on the internet it is easy to impersonate people
- Harry Morano is requesting $100 on venmo
- check the name for misspellings!
- wiki
- main page - https://en.bitcoin.it/wiki/Main_Page
- brain wallet https://en.bitcoin.it/wiki/Brainwallet
- Script language - https://en.bitcoin.it/wiki/Script
- Script language
- OP_RETURN - allows you store arbitrary data, could be used to track proof of priorart
- tx.addData in bitcore api
- OP_RETURN - allows you store arbitrary data, could be used to track proof of priorart
- https://test-insight.bitpay.com - for broadcasting a transaction without running a full node
- https://insight.bitpay.com
- bitpay
- https://bitpay.com/docs/
- offers many services
- can give you a button that you can copy paste into your site and allows visitors to pay you bitcoin
- optionally converts btc into fiat for business cash flow
- mobile wallets
- https://blockchain.info - wallet (desktop/mobile) and free blockchain info api
- Edge - https://edge.app
- https://coinatmradar.com for finding btc atms to buy btc
- jimmy song's lowlevel blockchain lecture https://www.youtube.com/watch?v=e6voIwB-An4&list=WL&index=26
- Ch5 programming bitcoin covers transactions https://github.com/jimmysong/programmingbitcoin/tree/master/code-ch05
- old bitcoin crowdfunder https://github.com/huwei0315/bitstarter-leaderboard/blob/patch-1/models/coinbase.js
- coinbase apis https://developers.coinbase.com
Thread with more info for programming a txn bitsnaps/bitcoin-generator#1