How To Become A Blockchain Developer - Blockgeeks

Updated on: May 4th, 2020
This content has been Fact-Checked.

 As the title suggests, in this guide, we are going to show you how to become a blockchain developer. As you will soon see, blockchain development is not much different than regular web development. To ease things up for you, we have written this guide to help you learn blockchain development and give you action steps at the end of each section.

The scope of development on the Bitcoin blockchain was a little limited. However, the game completely changed with the advent of Ethereum, which was the world’s first programmable blockchain. Developers all around the world finally had the opportunity to build applications on top of a blockchain. This is the reason why learning blockchain development has become such a hot skill.

 

It goes without saying that we are living in the “era of the blockchain”. The impact that it can have on our future is truly scary and magnanimous. So, how can you get a piece of that “blockchain action”? If you are to become a blockchain developer, then there are certain steps that you need to take.

Hopefully, at the end of the guide, you will have the tools required to kick-start your journey. If you are serious about becoming a developer then we need to set some expectations for you. Firstly, it is going to take time and you will need to dedicate your time and resources to your education (you can continue your blockchain development course by taking our online classes). Secondly, do not expect immediate results, becoming a blockchain developer is not a magic pill.

So, having said that, let’s start your journey.

Become A Blockchain Developer – Milestone #1: Understanding The Basics

Blockchain Development Tools

One of the biggest hurdles with anything as new and revolutionary, such as the blockchain technology, is familiarizing oneself with various concepts integral to the system.

If you are a beginner, then there are certain terms that you need to be familiar with:

Learn Blockchain Technology

  • Blockchain: The blockchain is a chain of blocks where each block contains data of value without any central supervision. It is cryptographically secure and immutable.
  • Decentralized: Blockchain is said to be decentralized because there is no central authority supervising anything.
  • Consensus Mechanism: The mechanism by which a decentralized network comes to a consensus on certain matters.
  • Miners: Users who use their computational power to mine for blocks.

It could be advisable to learn more about these terms that are widely used in the crypto-sphere. It is highly recommended that you go through our comprehensive glossary. It is important to learn these basic terms otherwise you will be very lost further on in your education. Now, up next, it is time to educate yourself some more on the technical aspects of the blockchain.

If you are interested in the technical aspects of how to create a fin-tech application on top of the Blockchain then you should definitely learn the ins and outs of crypto-economics. Most developers are usually well-versed in the “crypto” part of the equation but their knowledge of the “economics” part is extremely lacking.

This difference in knowledge is extremely apparent when you study some of these ICOs floating around. It is very obvious to see that the economics side of their ICO’s is not well thought out.

So, in light of that, it can be a good idea to read up a bit on economics and have a general idea of it. If you want to learn about crypto-economics in general, then you may check out our article here.

If you are intrigued by the cryptography specifically and want to know how signatures work and what public-key cryptography means, then read this.

After that, it is highly recommended that you understand how bitcoin works. bitcoin is the most widespread, finest and one of the more elegant applications of blockchain technology. You can even call it the finest example of what the blockchain technology can achieve purely because of the impact that it has had.

So, it is advisable that you read Satoshi Nakamoto’s whitepaper of bitcoin. You can find it over here. Now that completes the first milestone.

Let’s check out the action steps that you need to take over here:

  • Get acquainted with the various terms and lexicons.
  • Read up on the more technical aspects of the blockchain.
  • Read the bitcoin whitepaper.

Become A Blockchain Developer – Milestone #2: Learn The Process

It is pretty surprising to see how many budding “developers” have not had any real-world first-hand experience with cryptocurrency at all. How can you possibly innovate and improve upon a platform when you have not used it even once?

It is strongly recommended that you start getting acquainted with the system today.

Go to Coinbase or any other exchange that you are comfortable with or is accessible in your country and buy some coins. You don’t need to create an extensive portfolio straightaway, just buy a few coins and see how the whole process works.

It is extremely straightforward. Since you are not going to be buying a lot of coins then simply use a basic online wallet.

These wallets are the easiest to use among all. The creation is super simple because it’s basically creating your own account on any of the exchange services. Furthermore, you can access this wallet from any server or any device in the world as long as it is connected to the net. Having said that, there is one big problem when it comes to online wallets. Your private key is going to be saved on another server. This is basically like serving up your key to hackers on a silver platter. Do NOT use online wallets to store huge amounts of your money. Store the bare minimum that you need for exchange purposes.

As you create an extensive portfolio, you must learn how to utilize cold wallets to store your money. You can learn how to do so here. Later on, if you create your ICO then you MUST know how wallets and, in particular, multi-sig wallets work.

We are bringing this section to a close here, the tough part starts from the next milestone.

Your action steps are here:

  • Learn how the exchanges work.
  • Get acquainted with wallets.

Become A Blockchain Developer – Milestone #3: Let’s get coding!

As a blockchain developer, you will face tons of challenges in the back-end. Creating and maintaining a public blockchain is not easy because of a number of reasons.

(Before we continue, a huge shoutout to David Schwartz for his keynote address regarding C++ use in blockchain software development in CPPCON 2016.)


  • Reason #1: Security

Blockchains, as David Schwartz puts it, should be fortresses. Firstly, the code is public and open for all to see. Anyone can look at the code and check for bugs and vulnerabilities. However, unlike other open code resources, the downside of finding vulnerabilities on blockchain code is massive. Any programmer can hack in and get away with potentially millions and millions of dollars. Because of these legitimate security concerns, development on the blockchain is usually very slow.


  • Reason #2: Resource Management

It is important to keep pace with the network. You cannot fall too far behind and not keep up with all the network demands. You should be well equipped to handle remote and local queries.


  • Reason #3: Performance

The blockchain must always perform at its highest possible capabilities, but for that to happen the language chosen must be extremely versatile. The thing is that there are certain tasks in the blockchain which are parallelizable whilst there are some tasks that can’t be done in parallel.

A good example of a “parallelizable” task is digital signature verification. All that you need for signature verification is the key, transaction, and signature. With just three data you can conduct verifications in a parallelized manner.

However, not all the functions on a blockchain should be done that way. Think of transaction execution itself. Multiple transactions can’t be executed in parallel; it needs to be done one at a time to avoid errors like double spends. Some languages are good at parallel operations while some are good in non-parallel operations.


  • Reason #4: Isolation

What is deterministic behavior?

If A + B = C, then no matter what the circumstances, A+B will always be equal to C. That is called deterministic behavior.

Hash functions are deterministic, meaning A’s hash will always be H(A).

So, in blockchain development, all transaction operations must be deterministic. You cannot have a transaction that behaves one way and then behaves another way the next day. Similarly, you cannot have smart contracts that work in two different ways on two different machines.

The only solution to this is isolation. Basically, you isolate your smart contracts and transactions from non-deterministic elements.

There are some languages that fulfill most of these needs. If you are a blockchain developer, then you definitely need to have some basic knowledge of C++ and JavaScript.

While C++ may seem a little outdated, the truth is that it wonderfully satisfies all the functionalities that we have described above. In fact, Satoshi Nakamoto wrote the bitcoin source code in C++.

Along with HTML and CSS, it is one of the three core technologies in World Wide Web Content Production. Javascript is usually used to create highly interactive web pages.

So, now we will see how to create a very simple blockchain using Javascript.

Huge shoutout to savjee.be for the content below.

How do we make a block? What does a simple block consist of? In our simple crypto coin that we are going to make (Let’s call it “BlockGeeksCoin”), each block will have the following pieces of information:

  • Index: To know the block number.
  • Timestamp: To know the time of creation.
  • Data: The data inside the block.
  • Previous Hash: The hash of the previous block.
  • Hash: The Hash of the current block.

Before we continue. You need to understand certain terms that we are going to use in our program:

  • This: The “this” keyword is invoked inside a function and enables you to access the values inside a specific object that calls that particular function.
  • Constructor: A constructor is a special function that can help create and initialize an object within a class. Each class is restricted to only one constructor.

Now that that’s done, let’s start making our block.

Creating the Block

const SHA256 = require("crypto-js/sha256"); 

class Block 

{ 

constructor(index, timestamp, data, previousHash = '') 

{ 

this.index = index; 

this.previousHash = previousHash; 

this.timestamp = timestamp; 

this.data = data; 

this.hash = this.calculateHash(); 

} 

calculateHash() 

{ 

return SHA256(this.index + this.previousHash + this.timestamp + JSON.stringify(this.data)).toString(); 

} 

}

Code Analysis

Ok, so this right here is out a block. So, in the first line of the code, we called the crypto-js library because the sha256 hash function is not available in JavaScript.

Next, we invoked a constructor inside the class to call for objects which will have certain values. The thing that probably catches your eye is the calculateHash() function. Let’s see what exactly is it doing.

In a block, we take all the contents and hash them to get the hash of that particular block. We are using the JSON.stringify function to turn the data of the block into a string to hash it.

Ok, so we have the block ready and good to go. Now let’s connect the blocks together into a blockchain.

Creating the blockchain: Becoming A Blockchain Engineer

class Blockchain

{

//Section 1 Genesis block creation

 constructor() 

{ 

this.chain = [this.createGenesisBlock()]; 

} 

createGenesisBlock() 

{

 return new Block(0, "01/01/2017", "Genesis block", "0"); 

} 

//section 2 adding new blocks

getLatestBlock() 

{ 

return this.chain[this.chain.length - 1]; 

} 

addBlock(newBlock) { 

newBlock.previousHash = this.getLatestBlock().hash; 

newBlock.hash = newBlock.calculateHash(); 

this.chain.push(newBlock); 

} 

//section 3 validating the chain

isChainValid() 

{ 

for (let i = 1; i < this.chain.length; i++)

{ 

const currentBlock = this.chain[i]; 

const previousBlock = this.chain[i - 1]; 

if (currentBlock.hash !== currentBlock.calculateHash()) { 

return false; 

} 

if (currentBlock.previousHash !== previousBlock.hash) 

{ 

return false; 

} 

} 

return true; 

} 

}

Code Analysis

Ok, so a lot of things are going on in the chain above, let’s break it down into sections.


  • Section 1: The Genesis Block

What is the genesis block?

The genesis block is the first block of the blockchain, and the reason why it is special is that while every bock points to the block previous to it, the genesis block doesn’t point at anything.  So, the moment a new chain is created, the genesis block is invoked immediately.

Also, you can see a “createGenesisBlock()” function wherein we have given the data of the block manually:

createGenesisBlock() 

{
 return new Block(0, "01/01/2017", "Genesis block", "0"); 
} 

  • Section 2: Adding The Blocks

Firstly, we will need to know what the last block in the blockchain currently is. For that we use the getLatestBlock() function.

getLatestBlock() 

{ 

return this.chain[this.chain.length - 1]; 

} 

Now that we have determined the latest block, lets see how we are going to add new blocks.

addBlock(newBlock) { 

newBlock.previousHash = this.getLatestBlock().hash; 

newBlock.hash = newBlock.calculateHash(); 

this.chain.push(newBlock); 

} 

So, what is happening here? How are we adding the blocks? How are we checking if the given block is valid or not?

Remember the contents of a block? A block has the hash of the previous block right?

So, what we are going to do here is simple. Compare the previous hash value of the new block with the hash value of the latest block.

How to become a blockchain developer

Image Courtesy: Lauri Hartikka medium article

If these two values match, then this means that the new block is legit and it gets added to the blockchain.


  • Section 3: Validating the Chain

Now, we need to check that nobody has been messing with our blockchain and that everything is stable.

We are using the “for” loop to go from block 1 to the last block. Genesis block is block 0.

for (let i = 1; i < this.chain.length; i++)

{ 

const currentBlock = this.chain[i]; 

const previousBlock = this.chain[i - 1]; 


In this part of the code we are defining two terms, current block and previous block.  And now we are simply going to find the hash of these two values.

if (currentBlock.hash !== currentBlock.calculateHash()) { 

return false; 

} 

if (currentBlock.previousHash !== previousBlock.hash) 

{ 

return false; 

} 

} 

return true; 

}

If the “previousHash” of the current block is not equal to the “Hash” of the previous block, then this function will return False, else it will return True.

Using the blockchain

Now, we are going to finally use the blockchain to create our BlockGeeksCoin.

let BlockGeeksCoin = new Blockchain(); 

BlockGeeksCoin.addBlock(new Block(1, "20/07/2017", { amount: 4 })); 

BlockGeeksCoin.addBlock(new Block(2, "20/07/2017", { amount: 8 }));

And that’s it!

So what happened here?

We created a new cryptocurrency based on the blockchain and named it BlockGeeksCoin. By invoking this new object, I activated the constructor, which in turn created the Genesis block automatically.

We simply added two more blocks to it and gave them some data.

It is that simple.

(Thank you savjee.be for the amazing and simple explanation.)

That’s it for this milestone. Let’s look at the action steps. It is very simple but it definitely isn’t easy:

  • Get educated in one of the many blockchain-friendly languages like C++, Javascript, C#, Go, etc.

Become A Blockchain Developer – Milestone #4: Get Educated On Smart Contracts

how smart contracts work

How do you define a smart contract?

According to Wikipedia, a smart contract is  “a computer protocol intended to facilitate, verify, or enforce the negotiation or performance of a contract”. While it was first proposed by American cryptographer Nick Szabo in 1996, Ethereum is often credited with popularizing the concept and making it mainstream.

You can learn more about smart contracts in our in-depth guide here.

So, what are the desirable properties that we want in our smart contract?

Anything that runs on a blockchain needs to be immutable and must have the ability to run through multiple nodes without compromising its integrity. As a result of which, smart contract functionality needs to be three things:

  • Deterministic.
  • Terminable.
  • Isolated.

Feature #1: Deterministic

A program is deterministic if it gives the same output to a given input every single time. Eg. If 3+1 = 4 then 3+1 will ALWAYS be 4 (assuming the same base). So when a program gives the same output to the same set of inputs in different computers, the program is called deterministic.

There are various moments when a program can act in an un-deterministic manner:

  • Calling un-deterministic system functions: When a programmer calls an un-deterministic function in their program.
  • Un-deterministic data resources: If a program acquires data during runtime and that data source is un-deterministic then the program becomes un-deterministic. Eg. Suppose a program that acquires the top 10 google searches of a particular query. The list may keep changing.
  • Dynamic Calls: When a program calls the second program it is called dynamic calling. Since the call target is determined only during execution, it is un-deterministic in nature.

Feature #2: Terminable

In mathematical logic, we have an error called “halting problem”. Basically, it states that there is an inability to know whether or not a given program can execute its function in a time limit. In 1936, Alan Turing deduced, using Cantor’s Diagonal Problem, that there is no way to know whether a given program can finish in a time limit or not.

This is obviously a problem with smart contracts because, contracts by definition, must be capable of termination within a given time limit. There are some measures taken to ensure that there is a way to externally “kill” the contract and to not enter into an endless loop which will drain resources:

  • Turing Incompleteness: A Turing Incomplete blockchain will have limited functionality and not be capable of making jumps and/or loops. Hence they can’t enter an endless loop.
  • Step and Fee Meter: A program can simply keep track of the number “steps” it has taken, i.e. the number of instructions it has executed, and then terminate once a particular step count has been executed. Another method is the Fee meter. Here the contracts are executed with a pre-paid fee. Every instruction execution requires a particular amount of fee. If the fee spent exceeds the pre-paid fee then the contract is terminated.
  • Timer: Here a pre-determined timer is kept. If the contract execution exceeds the time-limit then it is externally aborted.

Feature #3: Isolated

In a blockchain, anyone and everyone can upload a smart contract. However, because of this the contracts may, knowingly and unknowingly contain viruses and bugs. If the contract is not isolated, this may hamper the whole system. Hence, it is critical for a contract to be kept isolated in a sandbox to save the entire ecosystem from any negative effects.

Now that we have seen these features, it is important to know how they are executed. Usually, smart contracts are run using one of the two systems:

  • Virtual Machines: Ethereum uses this.
  • Docker: Fabric uses this.

Let’s compare these two and determine which makes for a better ecosystem. For simplicity’s sake, we are going to compare Ethereum (Virtual Machine) to Fabric (Docker).

If you are interested in Ethereum development specifically then it is important that you learn solidity as well.

For anyone who wants to learn how to make DAPPs (Decentralized Applications) or get into the ICO game, learning Solidity is an absolute must. We already have a detailed guide to it which you can read here. However, here we are going to give you a basic overview. Solidity was developed by Gavin Wood, Christian Reitwiessner, Alex Beregszaszi, Yoichi Hirai and several former Ethereum core contributors to enable writing smart contracts on blockchain platforms such as Ethereum.

Solidity is a purposefully slimmed down, loosely-typed language with a syntax very similar to ECMAScript (Javascript). There are some key points to remember from the Ethereum Design Rationale document, namely that we are working on a stack-and-memory model with a 32-byte instruction word size, the EVM (Ethereum Virtual Machine) gives us access to the program “stack” which is like a register space where we can also stick memory addresses to make the Program Counter loop/jump (for sequential program control), an expandable temporary “memory” and a more permanent “storage” which is actually written into the permanent blockchain, and most importantly, the EVM requires total determinism within the smart contracts.

If you are interested in learning solidity then you can check our in-depth class here.

So, let’s see the action steps now:

  • Understand how smart contracts work.
  • (Optional for Ethereum developers) Learn Solidity.

Become A Blockchain Developer – Milestone #5: Get into a Blockchain Development Company

One of the most important things that you can do as a budding developer is to constantly stay in the mix.

Go and join the Reddit forums, Gitbub pages, and StackExchange and connect with other developers and always be on the lookout for any news regarding the technology.

Along with that, it will be helpful for you to know what people look for in blockchain developers. What qualities are companies looking for when they are looking to hire? You can find that information here.

This information can be very useful in fine-tuning your skills enough to appeal to the companies.

Path to Becoming a Blockchain Developer or Engineer: Conclusion

So, this is a rough roadmap for you and your journey to becoming a blockchain developer. This alone won’t be enough, of course, you will need to show your own initiative and always be in the mix.

If you are looking for a resource of information on blockchain development then click here.

We wish you all the best on your journey!

Ameer Rosic
Ameer’s the co-founder of blockgeeks. He’s an investor and blockchain evangelist, meaning he’s all about investing to bring transparency across the world. You can call him a serial entrepreneur with a couple of startups up his sleeve and tonnes of them in his mind. With over 160K subscribers on youtube, Ameer hosts his own show called #ameerapproved, where he talks about entrepreneurship and shares the latest crypto market updates. He has been a contributor at HuffPost, Due.com, Cryptominded, and VentureBeat. His clients are mostly tech startups that are operating on blockchain technology. Right now Ameer’s thinking about NFTs and their use cases. He might as well talk about it in his next youtube video. You can connect with Ameer on Linkedin and Twitter.

Like what you read? Give us one like or share it to your friends and get +16

7,217
newest oldest most voted
T
Tech Jack

nice presentation on the blockgeekscoin :envy: , it would be a bad idea though for blockgeeks to have a coin, wouldn’t mind mining it 🙂 😉 :mrgreen:

georgereald@gmail.com
George Walker

Thanks for the information,I will login and check it out.

A B
A B

mag·nan·i·mous
maɡˈnanəməs
adjective
very generous or forgiving, especially toward a rival or someone less powerful than oneself.

A
Austrian Q

Hi Ameer Rosic:

Here is the link of Chinese translation:
http://ethfans.org/posts/blockchain-developer-crash-course

We have specify the original link and authorship. If you do not appreciate our work, or you have other requirements, please contact with us.

M
Michael Maguire

I like the way you talk of Hashing, but do not describe what Hashing actually is. The phrase is thrown out everywhere, but I’ve never seen a simple explanation of it. What is it, how is it performed. What is SHA256, etc

g

if you would only use the hands god gave you to type sha256 into google you would have your answer, i would think someone who is so curious about it that it angers them that the very BASIC of blockchain hashing is not defined would at least idk maybe type it into google?
SHA-2 (Secure Hash Algorithm 2) is a set of cryptographic hash functions designed by the United States National Security Agency (NSA).[3]. They are built using the Merkle–Damgård structure, from a One-way compression function itself built using the Davies-Meyer structure from a (classified) specialized block cipher.

there ya go, first page of google and on the most popular wikipedia site.
hashing means one way encrypting. now i challenge you to learn any subject the way you are trying to learn crypto, ill tell you now you arent going to get far without searching for answers yourself unless you are a millionaire and can get your butler to hand you them on a silver platter. cause trust me, the crypto world is a lot less forgiving than the real world.

Michael Garber
Michael Garber

LOL

Michael Garber
Michael Garber

LMAO

Michael Garber
Michael Garber

I keep trying to reply to this but its not showing up. I find this response HILARIOUS! In particular:
“someone who is so curious about it that it angers them that the very BASIC of blockchain hashing is not defined would at least idk maybe type it into google?”

This. Is. Gold.

A B
A B

Your last line is especially funny because it directly contradicts the author’s feelings:
“The impact that it can have on our future is truly scary and magnanimous. ”
Unless one of you is unaware that ‘magnanimous’ and ‘forgiving’ are synonyms. Hmmmm

A
Austrian Q

Dear Ameer Rosic:

I hope this comments finds you well.

This is Ajian, from Ethfans.org, which is a China based Ethereum developer community, dedicating to promoting Ethereum and blockchain technology in China. One of our main projects is translating selected English posts into Chinese and circulating them on our website and newsletters, where we have more than 4000 daily visits.

I am wondering if we can ask your authorization to translate this post for non-profit purpose. If permitted, the Chinese version will be posted on ethfans.org and our wechat daily newsletter. We will specify your authorship of the post, and put down a link to your original post.

Please let me know if you have other requirements regarding the authorization. Looking forward to your reply.

Thank you.

Best regards,

Ajian

S
Shashika Danushka

Thanks

1) Q: What is Blockchain?

1
1) Q: What is Blockchain?
asked
1 answers
1 votes
1
A: Blockchain is, an immutable time-stamped series record of data that is distributed and managed by cluster of computers.
answered

2) Q: Is there a need for Blockchain Developers?

1
2) Q: Is there a need for Blockchain Developers?
asked
1 answers
1 votes
1
Job openings in the Blockchain industry has increased exponentially in the last several years.
answered

3) Q: How much do Blockchain developers make?

1
3) Q: How much do Blockchain developers make?
asked
1 answers
1 votes
1
Salaries ranges differ based on location but an average salary is around $127,000.
answered
Hungry for knowledge?
New guides and courses each week
Looking to invest?
Market data, analysis, and reports
Just curious?
A community of blockchain experts to help

Get started today

Already have an account? Sign In