So You Want To Work In Blockchain? 10 Job Interview Questions You’ll Probably Be Asked
There are 14 job openings for each available blockchain engineer in the world.
Initial coin offerings have raised more than $3.7 billion in the U.S. alone. Capital far outpaces talent in the money-knowledge ratio in blockchain, according to Nick Szabo, the developer who first proposed smart contracts, Tech Crunch reported.
Since January 2017, demand for blockchain expertise has increased by more than 700 percent at Toptal, a San Francisco-based online marketplace with a global network of freelance software developers, designers and finance experts.
In February 2018, Toptal launched a new blockchain specialization — an on-demand service that connects businesses to a distributed network of blockchain talent. Members have been vetted, according to the firm.
As enterprises and venture capitalists have provided capital and credibility to blockchain initiatives, the industry’s challenge becomes the pace at which the technology itself grows, Toptal said in a press release.
“The entire blockchain industry is hitting a talent bottleneck,” said Luka Horvat, Toptal’s head of talent operations.
Some of the people and venture capital firms that have invested in Toptal include Andreessen Horowitz; Adam D’Angelo, CEO and co-founder of Quora; Lucas Nealan, an early Facebook team member; and Dave Hersh (former Jive CEO).
If you’re interested in working in blockchain, these are 10 essential blockchain interview questions, according to the Toptal website:
How are transactions and blocks encrypted in the Bitcoin implementation?
Bitcoin blocks are not encrypted in any way: Every block is public. What prevents modifications and guarantees data integrity is a value called the block hash. Block content is processed using a special hash function—in the case of Bitcoin, it’s SHA256—and the resulting value is included in the blockchain.
Explain why a blockchain needs tokens to operate.
Coins/tokens are used to implement changes between states. When somebody does a transaction, this is a change of state, and coins are moved from one address to another. Apart from that, transactions can contain additional data, and a change of state is used to mutate data—the only way to do this in an immutable-by-definition blockchain. Technically, a blockchain doesn’t need coins for its essential operations, but without them, some other way needs to be introduced to manage states of the chain and to verify transactions.
What is mining?
Mining is the process of reaching consensus in blockchain networks. Mining serves two purposes. First, it creates new coins in a generated block. Second, it includes transactions in a distributed ledger by providing proof of work to the network; that is, proof that the generated block is valid.
What is a chain fork?
Blocks in the ledger are included in such a way as to build the longest chain, i.e., the chain with the greatest cumulative difficulty. Forking is a situation where there are two candidate blocks competing to form the longest blockchain and two miners discover a solution to the proof-of-work problem within a short period of time from each other. The network is then divided, because some nodes get blocks from miner #1 and some from miner #2.
A fork usually gets resolved in one block, because the probability that this situation happens again gets extremely lower with the next blocks that arise, so soon there is a new longest chain that will be considered as main.
(Note: This type of fork is distinct from a hard fork, which is where some developers decide to create a backward-incompatible change to the blockchain protocol, resulting in two forever-distinct blockchains.)
How does peer discovery work in a peer-to-peer (P2P) network?
When a new node boots up, it doesn’t know anything about the network, because there is no central server. Usually developers provide a list of trusted nodes written directly into the code that can be used for initial peer discovery.
What is a trapdoor function, and why is it needed in blockchain development?
A trapdoor function is a function that is easy to compute in one direction but difficult to compute in the opposite direction unless you have special information. Trapdoor functions are essential for public key encryption—that’s why they are commonly used in blockchain development to represent the ideas of addresses and private keys.
How do verifiers check if a block is valid?
Every full node on the network does block verification. When a new block is announced, every node that receives it does a list of checks. The two most important checks are of proof of work (if a block provides enough work to be included into chain) and of the validity of all transactions (each transaction must be valid).
What is a scriptPubKey? Explain how a P2SH address can be spent.
A scriptPubKey is a so-called “locking script.” It’s found in transaction output and is the encumbrance that must be fulfilled to spend the output.
P2SH is a special type of address where the complex locking script is replaced with its hash. When a transaction attempting to spend the output is presented later, it must contain the script that matches the hash, in addition to the unlocking script.
Using Script, write a redeem script that will allow a user to spend the output only when the user knows the magic number 1234567.
scriptPubKey: 1234567 OP_EQUALVERIFY
Using Script, write a redeem script that will allow anyone to spend the output once it has aged for a minimum of 30 days.
scriptPubKey: “30d” OP_CHECKSEQUENCEVERIFY OP_VERIFY