In this workshop the audience along with the instructor will build an Ethereum miner from step 0. The first part of the talk walks the audience through the different components that make a miner as well as share some places where to source them. Then during a live demonstration, a miner will be built.The second part of the workshop will focus on programming a mining operating system (ethOS) unto the miner. Programming covers the following subjects:
* Default and common configurations
* Overviews of current miners available
*Over clocking steps
* Finally start mining live!
In the final portion of the work shop the speaker connects the miner to a mining pool, and creates an Ethereum wallet where the coin mined can be stored.
2. Who am I
● Long Time Friend (@d1vious in slack)
● Do Security in Fastly by Day
● Play with Cryptocurrencies some nights
3. Agenda
● Light Concepts
● Anatomy of a Mining Rig
● Sourcing Components
● OS and Mining software
● Mining Pools and Selling Mining Power
● Overclocking GPUs
● Troubleshooting
● Economy of Mining
10. non-critical components
● CPU— any slow processor would do, you will be running low overhead *nix
OS, least likely Windows, just make sure it works with your motherboard.
● Memory— as long as it has minimally 4GB of RAM memory
● HDD/SDD— Any would work, although I highly recommend purchasing the
pre-loaded SSD with ethos from gpushack.
11. critical components
● board— The most important aspect of purchasing a motherboard is making
sure it has +4 PCI 2.0 slots, the more slots supported by the motherboard the
more GPU density you can have and thus a bigger hash rate.
● Power Supply— It is what will feed your rig, two things are important when
selecting the power supply, make sure you have plenty of capacity and it is
very efficient. The lowest capacity I would recommend is 850 WATT.
12. Critical components continued
● GPU— The most critical component in an ethereum mining rig by far. Base on
crypto compare the best GPU to use today based on the consumption/vs
hash rate generated. For ETHER mining it is recommended for the GPU to
have +4GB of memory. Cryptocompare.com has a great list of suggested
GPUs and reviews.
13. accessories
● USB Riser Cards— you will need these to comfortably connect all GPUs.
● Power Meter (optional) — you will need this to understand what your power
consumption is, see the economics portion of the guide for details.
● Power switch for ATX MOBO— if you don’t plan on shorting the two power
pins on the motherboard buy this ;-).
● Case— open air cases are recommended to allow a rig to breathe, most open
air frame cases are $100 — $250 USD. Personally I decided to use a bamboo
dish rack which has exactly the same effect and it costs $15 USD on
Amazon. It does not look half bad either and is extremely portable.
16. ethos
● Purpose built for mining
● Built on Ubuntu 16.04 with an LXE Desktop Environment
● Runs many popular miners
● Supports AMD + NVIDIA GPUs
● + 8 GPU support natively (windows has an issue here)
● Great admin panel
17. Other considerations
Windows
● 8 GPU Limit
● Better driver support for GPUs
● More options for tweaking like firmware
hacking
SMOS
● Don’t know much about it
● Looks easier to use than ethos
● Although very similar
● Forces claymore
26. Mining Pools
In the context of cryptocurrency mining, a mining pool is the pooling of resources by miners, who share their processing power over a network, to
split the reward equally, according to the amount of work they contributed to solving a block. A "share" is awarded to members of the mining pool who
present a valid proof-of-work that their miner solved
● helps you get paid faster and track your progress for a fee, in nanopool’s case
is 1%
● There are many out there research, some without fees, some whom have
more rejects etc..
31. Types of Wallets
Software
● Easy to setup
● No cost
● Many features built in like shapeshift
● Great for daily (weekly) mining profits
● Risk of losing via a hack etc..
Hardware
● Most secure
● Great for long term storage of currency
● Not great for depositing mining gains
36. Variables to Consider
● Power Cost - typically ~.12 KWH in Miami see your power bill
● Power Consumption - Depends on GPU + mining algo + miner
● GPU Hashing Speed - Depends on algo + miner
● Price of currency
37. Calculators
http://coinwarz.com/ - what coin (algorithm is most profitable)
https://www.cryptocompare.com/mining/calculator/ - what would my potential
earnings be base on coins
https://www.nicehash.com/profitability-calculator - what would my potential
earnings be based on hardware + algorithm if selling mining power
44. BTC use of the
Merkel Tree
Vitalik Buterin
Creator of Ethereum
The benefit that this provides is the concept that Satoshi
described as “simplified payment verification”: instead of
downloading every transaction and every block, a “light client”
can only download the chain of block headers, 80-byte chunks of
data for each block that contain only five things:
● A hash of the previous header
● A timestamp
● A mining difficulty value
● A proof of work nonce
● A root hash for the Merkle tree containing the
transactions for that block.
If the light client wants to determine the status of a transaction, it
can simply ask for a Merkle proof showing that a particular
transaction is in one of the Merkle trees whose root is in a block
header for the main chain.
Editor's Notes
Mention SFISSA, last year CTF on the WAF, current work..
Your machine needs figure out what the right answer to the NONCE hashed block is in order or the block to be written and miner paid
Blocks are made up of transactions which are hashed and then united and then
Generated every - 100 Hours EPOCH, grows continuously
Stored in Memory (GPU)
Show machine
Show machine
Due to their incredibly high demand from miners and gamers it is darn near impossible to find RX480, RX470s, or their predecessors RX570 or RX580s in the market at a reasonble price. After much research and hunting for a deal I decided to settle with RX460’s (~11MH/s) for my first machine. These do not have as much power as the RX480 (~24 MH/s) but they also consume considerably less power. Most importantly they were 4–5 times cheaper than the RX480 sold today and easier to find.
Note on bootup minimum RAM
BIOS explanation (PCI generation and memory)
Empty out remote.conf
Updating
Show stats
Show miner
Walk through local.conf
Change Fan parameters
Overclock 5%
Panel .. challenge to find a RCE on the panel