SlideShare a Scribd company logo
1 of 44
Building a Ethereum Miner
Workshop
Who am I
● Long Time Friend (@d1vious in slack)
● Do Security in Fastly by Day
● Play with Cryptocurrencies some nights
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
Concepts - Blockchain
Concepts - Merkle Tree
DAG
D - Directed = One direction
A - Acyclic = cannot ref self
G - Graph = as in graph DB
Anatomy of a Miner
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.
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.
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.
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.
Let’s Build the Dishwasher!
OS
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
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
Let’s explore ethos!
Miners
Common ones (in ethos)
● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 ccminer [old]
● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 cgminer-skein [old]
● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 claymore [details next]
● drwxr-xr-x 2 ethos ethos 4.0K Mar 16 2017 claymore-zcash ^
● drwxr-xr-x 3 ethos ethos 4.0K Mar 16 2017 ethminer [details next]
● drwxr-xr-x 2 ethos ethos 4.0K Jul 8 10:22 ewbf-zcash [details next]
● drwxr-xr-x 8 ethos ethos 4.0K Mar 16 2017 optiminer-zcash [old]
● drwxr-xr-x 4 ethos ethos 4.0K Nov 9 22:36 sgminer-gm [details next]
● drwxr-xr-x 2 ethos ethos 4.0K Mar 16 2017 silentarmy [old]
claymore
● Mines ETH, XMR, ZCASH
● Supports NVIDIAS and AMD GPUs
● Great Performance for ETH in AMD
● 2% Mining Fee
● Supports Dual Mining Decre, Pascal, SIA
ethminer
● Mines - ETH
● Supports NVIDIAS and AMD GPUs
● Good Performance
● No mining Fee
ewbf-zcash
● Best zcash (equihash) miner currently available for NVIDIAS (only)
● Great Performance
● 2% Mining Fee
sgminer-gm
● Mines many coins
● Supports NVIDIAS and AMD GPUs
● No Mining Fee
● Supports Dual Mining Decre, Pascal, SIA
Mining Pools
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..
Selling Mining Power
Easy
Wallets + trading services
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
Common Wallets
Software
● Jaxx
● Exodus
● Coinbase
Hardware
● Trezor
● Ledger Nano S
Common Trading Services/Exchanges
● Coinbase
● Bittrex
● Binance
Economies of Mining
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
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
Risk of Mining
Questions?
josehelps.com
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.

More Related Content

What's hot

Computer Parts Products
Computer Parts ProductsComputer Parts Products
Computer Parts ProductsBra Ian
 
Windows Azure Overview 20131128
Windows Azure Overview 20131128Windows Azure Overview 20131128
Windows Azure Overview 20131128Jeff Chu
 
OpenStack Instance Migration
OpenStack Instance MigrationOpenStack Instance Migration
OpenStack Instance MigrationSoheil Khodayari
 
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board Computer
MinnowBoard MAX: Open Source Hardware  64-bit x86 Single Board ComputerMinnowBoard MAX: Open Source Hardware  64-bit x86 Single Board Computer
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board ComputerDrew Fustini
 
Building a continuous delivery platform for the biggest spike in e-commerce -...
Building a continuous delivery platform for the biggest spike in e-commerce -...Building a continuous delivery platform for the biggest spike in e-commerce -...
Building a continuous delivery platform for the biggest spike in e-commerce -...Puppet
 
PHP at Density and Scale (Lone Star PHP 2014)
PHP at Density and Scale (Lone Star PHP 2014)PHP at Density and Scale (Lone Star PHP 2014)
PHP at Density and Scale (Lone Star PHP 2014)David Timothy Strauss
 
Computing powerpoint
Computing powerpointComputing powerpoint
Computing powerpointxbenzi
 
망고100 보드로 놀아보자 10
망고100 보드로 놀아보자 10망고100 보드로 놀아보자 10
망고100 보드로 놀아보자 10종인 전
 
FreeBSD under DigitalOcean VPS
FreeBSD under DigitalOcean VPSFreeBSD under DigitalOcean VPS
FreeBSD under DigitalOcean VPSRyo ONODERA
 
Everyone Loves a Sausage
Everyone Loves a SausageEveryone Loves a Sausage
Everyone Loves a SausageNick Jones
 
System Capa Planning_DBA oracle edu
System Capa Planning_DBA oracle eduSystem Capa Planning_DBA oracle edu
System Capa Planning_DBA oracle edu엑셈
 
WiredTiger In-Memory vs WiredTiger B-Tree
WiredTiger In-Memory vs WiredTiger B-TreeWiredTiger In-Memory vs WiredTiger B-Tree
WiredTiger In-Memory vs WiredTiger B-TreeSveta Smirnova
 

What's hot (19)

Multipath
MultipathMultipath
Multipath
 
Computer Parts Products
Computer Parts ProductsComputer Parts Products
Computer Parts Products
 
HPP Week 1 Summary
HPP Week 1 SummaryHPP Week 1 Summary
HPP Week 1 Summary
 
Windows Azure Overview 20131128
Windows Azure Overview 20131128Windows Azure Overview 20131128
Windows Azure Overview 20131128
 
ข่าวIt
ข่าวItข่าวIt
ข่าวIt
 
SmartOS Primer
SmartOS PrimerSmartOS Primer
SmartOS Primer
 
OpenStack Instance Migration
OpenStack Instance MigrationOpenStack Instance Migration
OpenStack Instance Migration
 
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board Computer
MinnowBoard MAX: Open Source Hardware  64-bit x86 Single Board ComputerMinnowBoard MAX: Open Source Hardware  64-bit x86 Single Board Computer
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board Computer
 
Cnam azure 2014 iaas
Cnam azure 2014   iaas Cnam azure 2014   iaas
Cnam azure 2014 iaas
 
Building a continuous delivery platform for the biggest spike in e-commerce -...
Building a continuous delivery platform for the biggest spike in e-commerce -...Building a continuous delivery platform for the biggest spike in e-commerce -...
Building a continuous delivery platform for the biggest spike in e-commerce -...
 
OpenStack on SmartOS
OpenStack on SmartOSOpenStack on SmartOS
OpenStack on SmartOS
 
PHP at Density and Scale (Lone Star PHP 2014)
PHP at Density and Scale (Lone Star PHP 2014)PHP at Density and Scale (Lone Star PHP 2014)
PHP at Density and Scale (Lone Star PHP 2014)
 
Computing powerpoint
Computing powerpointComputing powerpoint
Computing powerpoint
 
망고100 보드로 놀아보자 10
망고100 보드로 놀아보자 10망고100 보드로 놀아보자 10
망고100 보드로 놀아보자 10
 
FreeBSD under DigitalOcean VPS
FreeBSD under DigitalOcean VPSFreeBSD under DigitalOcean VPS
FreeBSD under DigitalOcean VPS
 
Everyone Loves a Sausage
Everyone Loves a SausageEveryone Loves a Sausage
Everyone Loves a Sausage
 
Practical ZFS
Practical ZFSPractical ZFS
Practical ZFS
 
System Capa Planning_DBA oracle edu
System Capa Planning_DBA oracle eduSystem Capa Planning_DBA oracle edu
System Capa Planning_DBA oracle edu
 
WiredTiger In-Memory vs WiredTiger B-Tree
WiredTiger In-Memory vs WiredTiger B-TreeWiredTiger In-Memory vs WiredTiger B-Tree
WiredTiger In-Memory vs WiredTiger B-Tree
 

Similar to Building an ethereum miner workshop

How to build a gaming computer
How to build a gaming computerHow to build a gaming computer
How to build a gaming computerDonald Gillies
 
Deep Learning Computer Build
Deep Learning Computer BuildDeep Learning Computer Build
Deep Learning Computer BuildPetteriTeikariPhD
 
GPU Cracking - On the Cheap
GPU Cracking - On the CheapGPU Cracking - On the Cheap
GPU Cracking - On the CheapNetSPI
 
GPU Cracking on the Cheap
GPU Cracking on the CheapGPU Cracking on the Cheap
GPU Cracking on the CheapKarl Fosaaen
 
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farm
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farmKernel Recipes 2016 - Speeding up development by setting up a kernel build farm
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farmAnne Nicolas
 
Logs @ OVHcloud
Logs @ OVHcloudLogs @ OVHcloud
Logs @ OVHcloudOVHcloud
 
GPU databases - How to use them and what the future holds
GPU databases - How to use them and what the future holdsGPU databases - How to use them and what the future holds
GPU databases - How to use them and what the future holdsArnon Shimoni
 
Creating desktop for gaming
Creating desktop for gamingCreating desktop for gaming
Creating desktop for gamingJaimin Thakkar
 
Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)MongoDB
 
Deployment Strategies
Deployment StrategiesDeployment Strategies
Deployment StrategiesMongoDB
 
Open Source Data Deduplication
Open Source Data DeduplicationOpen Source Data Deduplication
Open Source Data DeduplicationRedWireServices
 
Operation Unthinkable – Software Defined Storage @ Booking.com (Peter Buschman)
Operation Unthinkable – Software Defined Storage @ Booking.com (Peter Buschman)Operation Unthinkable – Software Defined Storage @ Booking.com (Peter Buschman)
Operation Unthinkable – Software Defined Storage @ Booking.com (Peter Buschman)data://disrupted®
 
Deployment Strategy
Deployment StrategyDeployment Strategy
Deployment StrategyMongoDB
 
High Performance Hardware for Data Analysis
High Performance Hardware for Data AnalysisHigh Performance Hardware for Data Analysis
High Performance Hardware for Data AnalysisMike Pittaro
 
Mike Pittaro - High Performance Hardware for Data Analysis
Mike Pittaro - High Performance Hardware for Data Analysis Mike Pittaro - High Performance Hardware for Data Analysis
Mike Pittaro - High Performance Hardware for Data Analysis PyData
 

Similar to Building an ethereum miner workshop (20)

Shootout at the PAAS Corral
Shootout at the PAAS CorralShootout at the PAAS Corral
Shootout at the PAAS Corral
 
How to build a gaming computer
How to build a gaming computerHow to build a gaming computer
How to build a gaming computer
 
Deep Learning Computer Build
Deep Learning Computer BuildDeep Learning Computer Build
Deep Learning Computer Build
 
GPU Cracking - On the Cheap
GPU Cracking - On the CheapGPU Cracking - On the Cheap
GPU Cracking - On the Cheap
 
GPU Cracking on the Cheap
GPU Cracking on the CheapGPU Cracking on the Cheap
GPU Cracking on the Cheap
 
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farm
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farmKernel Recipes 2016 - Speeding up development by setting up a kernel build farm
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farm
 
Ether Mining 101
Ether Mining 101Ether Mining 101
Ether Mining 101
 
Logs @ OVHcloud
Logs @ OVHcloudLogs @ OVHcloud
Logs @ OVHcloud
 
GPU databases - How to use them and what the future holds
GPU databases - How to use them and what the future holdsGPU databases - How to use them and what the future holds
GPU databases - How to use them and what the future holds
 
Creating desktop for gaming
Creating desktop for gamingCreating desktop for gaming
Creating desktop for gaming
 
Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)
 
Ether mining 101 v2
Ether mining 101 v2Ether mining 101 v2
Ether mining 101 v2
 
Shootout at the AWS Corral
Shootout at the AWS CorralShootout at the AWS Corral
Shootout at the AWS Corral
 
Deployment Strategies
Deployment StrategiesDeployment Strategies
Deployment Strategies
 
Open Source Data Deduplication
Open Source Data DeduplicationOpen Source Data Deduplication
Open Source Data Deduplication
 
Deployment
DeploymentDeployment
Deployment
 
Operation Unthinkable – Software Defined Storage @ Booking.com (Peter Buschman)
Operation Unthinkable – Software Defined Storage @ Booking.com (Peter Buschman)Operation Unthinkable – Software Defined Storage @ Booking.com (Peter Buschman)
Operation Unthinkable – Software Defined Storage @ Booking.com (Peter Buschman)
 
Deployment Strategy
Deployment StrategyDeployment Strategy
Deployment Strategy
 
High Performance Hardware for Data Analysis
High Performance Hardware for Data AnalysisHigh Performance Hardware for Data Analysis
High Performance Hardware for Data Analysis
 
Mike Pittaro - High Performance Hardware for Data Analysis
Mike Pittaro - High Performance Hardware for Data Analysis Mike Pittaro - High Performance Hardware for Data Analysis
Mike Pittaro - High Performance Hardware for Data Analysis
 

Recently uploaded

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 

Recently uploaded (20)

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 

Building an ethereum miner workshop

  • 1. Building a Ethereum Miner Workshop
  • 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
  • 6. DAG D - Directed = One direction A - Acyclic = cannot ref self G - Graph = as in graph DB
  • 7.
  • 8. Anatomy of a Miner
  • 9.
  • 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.
  • 14. Let’s Build the Dishwasher!
  • 15. OS
  • 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
  • 20. Common ones (in ethos) ● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 ccminer [old] ● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 cgminer-skein [old] ● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 claymore [details next] ● drwxr-xr-x 2 ethos ethos 4.0K Mar 16 2017 claymore-zcash ^ ● drwxr-xr-x 3 ethos ethos 4.0K Mar 16 2017 ethminer [details next] ● drwxr-xr-x 2 ethos ethos 4.0K Jul 8 10:22 ewbf-zcash [details next] ● drwxr-xr-x 8 ethos ethos 4.0K Mar 16 2017 optiminer-zcash [old] ● drwxr-xr-x 4 ethos ethos 4.0K Nov 9 22:36 sgminer-gm [details next] ● drwxr-xr-x 2 ethos ethos 4.0K Mar 16 2017 silentarmy [old]
  • 21. claymore ● Mines ETH, XMR, ZCASH ● Supports NVIDIAS and AMD GPUs ● Great Performance for ETH in AMD ● 2% Mining Fee ● Supports Dual Mining Decre, Pascal, SIA
  • 22. ethminer ● Mines - ETH ● Supports NVIDIAS and AMD GPUs ● Good Performance ● No mining Fee
  • 23. ewbf-zcash ● Best zcash (equihash) miner currently available for NVIDIAS (only) ● Great Performance ● 2% Mining Fee
  • 24. sgminer-gm ● Mines many coins ● Supports NVIDIAS and AMD GPUs ● No Mining Fee ● Supports Dual Mining Decre, Pascal, SIA
  • 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..
  • 27.
  • 29. Easy
  • 30. Wallets + trading services
  • 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
  • 32. Common Wallets Software ● Jaxx ● Exodus ● Coinbase Hardware ● Trezor ● Ledger Nano S
  • 33. Common Trading Services/Exchanges ● Coinbase ● Bittrex ● Binance
  • 35.
  • 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
  • 39.
  • 40.
  • 43.
  • 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

  1. Mention SFISSA, last year CTF on the WAF, current work..
  2. 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
  3. Blocks are made up of transactions which are hashed and then united and then
  4. Generated every - 100 Hours EPOCH, grows continuously Stored in Memory (GPU)
  5. Show machine
  6. Show machine
  7. 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.
  8. 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
  9. Location of mining software
  10. Show how to lower mining pool minimum payout