Blog Posts

How RSA cryptosystem works?

22 min read Jul 23, 2023

The RSA is one of the oldest public-key cryptosystems that is widely used for secure data transmission.

cryptography

How Queue and Stack data structures work?

10 min read Apr 4, 2023

Two of the most fundamental data-structures are stacks and queues. This blog post explains how these data structures work and their implementation.

data structure queue stack

Sending transactions

17 min read Apr 29, 2022

In this post, we will implement a CLI tool to send transactions and have miners include them in the block.

blockchain cryptocurrency bitcoin

Visualize Blockchain With Graphwiz

10 min read Dec 4, 2021

In this post, we will learn how to use Graphwiz to visualize a blockchain, showing all the blocks in the blockchain and marking the active ones.

blockchain cryptocurrency bitcoin

Relay blocks and update active chain

15 min read Nov 28, 2021

A miner submits new blocks to the node via the JSON-RPC protocol. The node stores the block and notifies its peers.

blockchain cryptocurrency bitcoin

Mining Process

21 min read Nov 20, 2021

JSON-RPC is an RPC protocol encoded as JSON. A request is a call to a method provided by the server, and it contains three members: method, params, and id.

blockchain cryptocurrency bitcoin

Initial Block Download

35 min read Nov 11, 2021

Newer versions of Bitcoin use an approach where a node builds a partial view of the blockchain using block headers only, without downloading full block data.

blockchain cryptocurrency bitcoin

Node Roles and Handshake Protocol

10 min read Nov 10, 2021

A node role identifies the logic that runs on a node. There are four roles in the LearnCoin P2P network: network routing, full blockchain, miner, and wallet.

blockchain cryptocurrency bitcoin

Message Encoding and Peer to Peer

17 min read Nov 9, 2021

A peer-to-peer, or P2P, network is a network architecture where all the participants are equals, i.e., peers.

blockchain cryptocurrency bitcoin

Proof of Work and Mining

15 min read Nov 8, 2021

Proof-of-Work is a piece of data that requires significant computation to find but only a small amount of computation to verify as proven. In Bitcoin, miners must find a numeric solution to the SHA-256 hash that meets the difficulty criteria.

blockchain cryptocurrency bitcoin

Blockchain, Block, and Merkle Tree

8 min read Nov 7, 2021

A blockchain is a distributed list (or a chain) of blocks of transactions. It is distributed across the entire network of nodes.

blockchain cryptocurrency bitcoin

Hash Functions and Transactions

13 min read Nov 6, 2021

A cryptocurrency, a cryptographic hash function, and anatomy of the transaction, transaction inputs and transaction outputs. What are these?

blockchain cryptocurrency bitcoin

Define Goals and Create Project

6 min read Nov 5, 2021

blockchain cryptocurrency bitcoin

Let's Build Bitcoin

2 min read Nov 4, 2021

This project aims to teach you how blockchain works at its core, starting with simple concepts and building up to more complex ones.