Skip to content


Random notes and articles

A curated list of Foundry tips and tricks [Elevate your foundry game using these techniques]

February 25, 2024

You can install a specific branch of a library by adding [→]

Huff By Example [Solving the SumArray Puzzle]

October 1, 2023

In this rapidly evolving landscape of blockchain technology, efficiency isn't just an advantage—it's a necessity. More the adoption is, the more congested the networks become (for now this is the case… [→]

Huff Challenges - A Walkthrough

July 20, 2023

This post is a compilation of the walkthroughs for the Huff Challenges that I posted on [→]

EVM - Gas refunds and Memory expansion cost

April 16, 2023

Memory in EVM is a critical resource that should be carefully managed due to the decentralized nature of the blockchain. It is one of the key factors in computation, which in turn affects the cost of … [→]

Testing and deploying Huff contracts using foundry

February 12, 2023

In this post, we will dive into the steps involved in testing and deploying a smart-contract written using the [→]

Stealth addresses 101

December 10, 2022

A stealth address is a type of address that is used to protect the privacy of the recipient of a transaction. Stealth addresses are generated by the recipient of a transaction, and they allow the send… [→]

Merkle and Verkle trees

August 19, 2022

In general, data structures are used to efficiently store and retrieve data. In the world of blockchain, merkle trees are quite popular as it is being used in bitcoin and in the ethereum blockchain to… [→]

Upgradable smart contracts using the UUPS Proxy Pattern

February 14, 2022

We all know that one of the most impressive features of the blockchain is its immutablity property. But it is not advantageous in all cases. Imagine a deployed smart contract holding user funds having… [→]

Light weight, in-memory rate limiter using NodeJS

July 23, 2021

Rate limiting is one of the most important features which should be implemented in every web application. There are a lot of variations in the case of rate-limiting such as - [→]

Deploy a Testnet faucet on Polygon Network

July 16, 2021

In this demo, we will be exploring how to create a faucet for your token using solidity and deploy it to the Matic/Polygon live network. There are several reasons for a token to have a faucet. It can … [→]

Sentiment based trading-bot on Binance using NodeJS [This bot can trade Bitcoin whenever Elon Musk tweets about it]

June 26, 2021

Yes! In this article we are going to build a customizable trading bot, [→]

Create your own BEP20 tokens on Binance Smart Chain (BSC) [And deploy it using Remix IDE]

May 20, 2021

Right from the beginning of the DeFi Summer of 2020, a lot of new cryptocurrency and blockchain-related projects flooded the Ethereum network which resulted in the hike in gas price. People were in a … [→]

Generate Your Own Bitcoin Wallet within 5 Minutes [P2PKH address generation using Node.js]

May 19, 2021

We are going to have a look at how to create your own Bitcoin wallets — Testnet and Mainnet, using a simple Node.js script. We can generate as many wallets (public/private key pairs) as you want insta… [→]

Build your own cryptocurrency price alert service using NodeJS [ExpressJS, BullMQ, Cron jobs, email notifications and more..]

March 5, 2021

Everyone in this world is busy. We are poor at remembering things (especially me). Being motivated by the above two statements, I ended up building this simple cryptocurrency price alert microservice,… [→]

How to Create Your Own Secure Node.js REST API Boilerplate

January 23, 2021

In this article, we will be building a basic starter template (or boilerplate)which can be used for building robust and secure REST APIs using Node, Express, and Mongoose. It can be used for any kind … [→]

Integrate JWT to your Authentication system within 10 minutes [By building a Referral System using Node.js, MongoDB and Express]

January 16, 2021

Welcome! In this article we will be learning how to manage user sessions using JSON Web Tokens (JWT). At the end we will also build a simple referral system to demonstrate the workflow with JWT. [→]

Build Simple and Secure REST API for User Authentication Using Node.js, JWT and MongoDB

January 14, 2021

Welcome! In this article, we will be developing a secure and lightweight REST API using Node.js, Express server, and MongoDB from scratch that can be used as a backend for authentication systems. This… [→]