====== Bitcoin ====== {{template>:project:infobox| name=Bitcoin| image=bc_logo_135.png?200| sw=-| hw=-| founder=[[user:stick]]| interested=[[user:nephirus]]\\ [[user:ruza]]\\ [[user:pasky]]\\ [[user:kiki]]| status=active}} ~~META: status = active &relation firstimage = :project:bc_logo_135.png ~~ {{:project:welovebitcoin.png}} Our Bitcoin account addresses are:\\ [[https://blockchain.info/address/1BRMLAB7nryYgFGrG8x9SYaokb8r2ZwAsX|1BRMLAB7nryYgFGrG8x9SYaokb8r2ZwAsX]] (hot wallet)\\ [[https://blockchain.info/address/1BRMCWpKFe7bcJfYRgpBhBPgroBKEF6E35|1BRMCWpKFe7bcJfYRgpBhBPgroBKEF6E35]] (cold wallet) {{:project:bitcoin-qr.png}} ===== BTC ATM ===== We have an Bitcoin ATM from GeneralBytes (first model of its kind) at the space where you can buy bitcoins. You can check it's status [[http://coinatmradar.com/bitcoin_atm/20/bitcoin-atm-general-bytes-prague-brmlab-hackerspace-prague/|here]] ===== Bitcoin seminars ===== We meet irregularly for [[event:bitcoin_seminar]] {{page>event:bitcoin_seminar#next_session}} {{page>event:bitcoin_seminar#past_sessions}} [[project:bitcoin:who_stole_my_btc.py]] ===== Resources ===== (Czech) {{youtube>nPLaLvi_SKc}} (English) {{youtube>Um63OQz3bjo}} {{youtube>XQPSwA2Itbs}} (0:41:56 onwards) ProgressBar Talk (Slovak): http://hackerspace.pod.cvut.cz/pgb_20110323_bitcoin_sk.mkv You can learn more about Bitcoin on these sites: * http://www.bitcoin.org/ ([[http://www.bitcoin.org/bitcoin.pdf|paper]]) * http://cs.wikipedia.org/wiki/Bitcoin * http://en.wikipedia.org/wiki/Bitcoin * http://en.bitcoin.it/ * http://www.weusecoins.com/ * http://mining.bitcoin.cz/ * http://github.com/bitcoin/bitcoin * https://mtgox.com/trade/megaChart - exchange chart * http://blog.ezyang.com/2011/06/bitcoin-is-not-decentralized/ * http://www.quora.com/Is-the-cryptocurrency-Bitcoin-a-good-idea * http://arstechnica.com/tech-policy/news/2011/06/bitcoin-inside-the-encrypted-peer-to-peer-currency.ars * https://en.bitcoin.it/wiki/Weaknesses * http://culubas.blogspot.com/2011/05/timejacking-bitcoin_802.html * https://en.bitcoin.it/wiki/Testnet ===== Mining ==== ^ CPU ^ khash/sec ^ software ^ | Intel(R) Pentium(R) D CPU 3.40GHz | 2x 1337 | jgarzik's cpuminer | | Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz | 4x 2500 | jgarzik's cpuminer | | AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ @ 2.5GHz | 2x 1168 | jgarzik's cpuminer | | Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz (HT on) | 8x 1450 | jgarzik's cpuminer | ^ GPU ^ khash/sec ^ software ^ | nVidia GT216 [GeForce GT220] (rev a2) | 10550 | DiabloMiner,\\ poclbm| | nVidia Quadro FX 570M | 5000 | DiabloMiner | | nVidia G84 [GeForce 8600 GT] | 6300 | poclbm | | nVidia G92 [GeForce 8800 GT] (rev a2)| 28000 | poclbm | | nVidia G94 [GeForce 9600 GT] (rev a1) | 16000 | DiabloMiner | | nVidia GF104 [GeForce GTX 460] (rev a1) | 48000 | poclbm | | nVidia GF108 [GeForce GT 430] (rev a1) | 12000 | poclbm | | nVidia GF110 [GeForce GTX 580] | 120000 | DiabloMiner | | ATI Technologies Inc Radeon HD 5830\\ (Cypress LE) | 261000 | phoenix+phatk | | ATI Technologies Inc Radeon HD 5830\\ (Cypress LE) | 271500 | phoenix+phatk (900/900) | | ATI Technologies Inc Radeon HD 5830\\ (Cypress LE) | 278000 | phoenix+phatk (900/300) | | ATI Technologies Inc Radeon HD 5830\\ (Cypress LE) | 318000 | phoenix+phatk (1035/300) | | ATI Technologies Inc Radeon HD 5870\\ (Cypress LE) | 406000 | phoenix+phatk (900/300) | * https://en.bitcoin.it/wiki/Mining_hardware_comparison * http://bitminer.info/ * http://prac.hej.cz/czkmhashati.ods - Czech prices of ATi cards compared to their performance (by kiki) * [[http://www.pcper.com/reviews/Graphics-Cards/Bitcoin-Currency-and-GPU-Mining-Performance-Comparison/GPU-Performance-Dollar|another hw comparsion]] (per watt/price) ==== Mining Notes ==== === How to run? === ./DiabloMiner-Linux.sh -u -p -o api.bitcoin.cz -r 8332 ./poclbm.py -d 0 -u --pass= -o api.bitcoin.cz -p 8332 ./minerd --userpass : --url http://api.bitcoin.cz:8332 ./phoenix.py -u http://:@api.bitcoin.cz:8332/ -k phatk DEVICE=0 AGGRESSION=12 -v FASTLOOP=false WORKSIZE=128 BFI_INT VECTORS === ATI Overclocking === aticonfig --od-enable aticonfig --odsc=900,900 # was 800,1000 by default aticonfig --odcc === Problem compiling jgarzik's cpuminer === Makefile.am: installing `./INSTALL' configure.ac:96: error: possibly undefined macro: AC_MSG_ERROR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. libcurl.m4 is missing in your OS (i.e. apt-get install libcurl4-gnutls-dev) === Autorun phoenix after boot (Linux) === configure gdm autologin (you cannot use ~/.xinitrc and ~/.xsession) in your Window manager add to "Startup applications" "xterm -e screen -c /home/brm/.screenrc-phoenix" **~/.screenrc-phoenix** autodetach on startup_message off screen -t phoenix 0 bash /home/brm/BITCOIN/phoenix-1.4/miner.sh **~/BITCOIN/phoenix-1.4/miner.sh** #!/bin/bash . ~/.bashrc export "DISPLAY=:0" export LD_LIBRARY_PATH="/opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/:$LD_LIBRARY_PATH" ADRESAR="${HOME}/BITCOIN/phoenix-1.4/" cd ${ADRESAR} ${ADRESAR}/phoenix.py -u http://brm@brmlab.cz_ati:zlatokopi@api.mining.cz:8332/ -k phatk DEVICE=0 VECTORS AGGRESSION=6 -v FASTLOOP WORKSIZE=128 BFI_INT **/etc/ld.so.conf.d/ati.conf** (must be named *.conf) /opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/ run ldconfig === Memory underclocking for better performance, lower temperatures (Linux) === set 5830 to 900MHz core, 300MHz memory Only GUI .deb tool for setting: http://sourceforge.net/projects/amdovdrvctrl/ generate own settings, save it. Mine: **~/a.ovdr** How to use setting batch mode (three card rig): **~/minuj.sh** #!/bin/bash AMDOverdriveCtrl -i 0 -b a.ovdr sleep 1 AMDOverdriveCtrl -i 3 -b a.ovdr sleep 1 AMDOverdriveCtrl -i 6 -b a.ovdr sleep 1 cd /home/kiki/phoenix export DISPLAY=:0.0; aticonfig --pplib-cmd "set fanspeed 0 100" export DISPLAY=:0.1; aticonfig --pplib-cmd "set fanspeed 0 100" export DISPLAY=:0.2; aticonfig --pplib-cmd "set fanspeed 0 100" aticonfig --od-enable #aticonfig --od-setclocks=300,900 --adapter=all sleep 2 ./phoenix.py -u http://name:password@api.bitcoin.cz:8332/ -k phatk DEVICE=1 BFI_INT VECTORS AGGRESSION=12 & sleep 2 ./phoenix.py -u http://name2:password2@api.bitcoin.cz:8332/ -k phatk DEVICE=2 BFI_INT VECTORS AGGRESSION=12 & sleep 2 ./phoenix.py -u http://name3:password3@api.bitcoin.cz:8332/ -k phatk DEVICE=3 BFI_INT VECTORS AGGRESSION=12 & **Verification** aticonfig --odgc --adapter=all aticonfig --odgt --adapter=all DANGER ! ===Bios modification to unlock high frequency.=== **prereq: ** dos boot disc, atiflash http://www.techpowerup.com/downloads/1968/ATIFlash%203.86.html radeon bios editor (rbe) http://www.techpowerup.com/downloads/Utilities/RBE/ tutorial http://www.techpowerup.com/downloads/Utilities/RBE/ example, not working on all, watch ^^^tutorial,: tested: http://www.alza.cz/sapphire-hd-5830-xtreme-d237936.htm boot to dos card listing: atiflash -i acquire bios from first card: atiflash -s 0 bios0.rom on some windows machine (maybe under wine) run rbe, load bios file, under "additional features" set upper limit GPU" (I set 1050) save modified bios go back to minning machine atiflash -p 0 modbios.rom then reboot to linux, modify ^^^ a.ovdr, set test for stability, watch for temperatures my stable settings is gpu=103000, voltage 1163 (stock voltage) ===== MtGox YubiKey ===== [[http://bitcointalk.org/index.php?topic=26385.0|YubiKey II]] is an USB device provided and used by MtGox as an OTP device to login into their webpage. {{https://yubikey.mtgox.com/img/yubikey_clean_small.png}} ==== Using Yubikey on Linux ==== No driver needed. Plug-in your Yubikey. * short press (cca 0.5s) generates login OTP * long press (cca 3s) for withdrawal OTP kernel: usb 5-2: new low speed USB device using uhci_hcd and address 4 kernel: input: Yubico Yubico Yubikey II as /devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.0/input/input13 kernel: generic-usb 0003:1050:0010.0003: input,hidraw0: USB HID v1.11 Keyboard [Yubico Yubico Yubikey II] on usb-0000:00:1d.0-2/input0 ==== YubiKey serial num ==== * It is not a QR code. It is [[wp>Data_Matrix]] in ASCII encoding containing 6digits number printed under. You can generate your own [[http://www.racoindustries.com/barcodegenerator/2d/datamatrix.aspx|here]]. ==== One Time Password ==== ^ fixed id ^ AES encrypted OTP ^ whole output string ^ | 6B or 48b fixed string | 16B or 128b AES128 | 22B = 44 chars | [[http://jobo.files.wordpress.com/2011/07/yubikeys.pdf]]