A blockchain is a decentralized ledger which you can use to communicate without a need of central authority. You don’t need postman, you don’t need bank, you don’t need the government and you definitely don’t need these companies running AWS servers.
These Blockchains fundamentally have 4 different elements,Consensys
Execution
Data Availability and
Settlement
Consensus is related to the mechanism whereby validators/miners can come to agreement on the order of transactions (also known as messages) for a specific block. The idea is that all the nodes of this decentralized ledger need to agree on a certain state of the chain.
Next we have execution, execution refers to the computation required to make state changes from the set of transactions in a new block. It basically means that once there is agreement on order of transactions we need to ensure the execution of those transactions takes place and these transactions are added to those decentralized ledger.
Third is Data Availability,
These transactions need to be communicated with applications or end users for that matter, now there should be a way for that data to be available from these nodes to the user, which is what data availability is
Settlement
There would be a need to verify and confirm these blocks which happens in settlement layer, it’s about ensuring that no bad actors push the wrong blocks on chain.
In a monolithic blockchain all of these are handled by the chain itself, whereas modular chains tend to outsource each of these functions to a separate workgroup. So let’s understand the pros and cons of modular and monolithic chains in depth,
Monolithic chains allow developers to easily integrate, they really do not have think of all the parameters while they are building and can focus just on business logic of things although the downside is that there are high chances congestion as we have seen previously. Now chains like solana have solved these issues by increasing validator requirements and increasing number of transaction in a single block, this may have solved congestion but it comes at the cost of decentralization.
Now let’s see how different modular chains handle this,
Polkadot
Collators are responsible for ordering and executing transactions on a specific parachain
These transactions are then posted as proofs on the main relay chain for Polkadot
Settlement takes place on this relay chain.
Over here execution / ordering is separate from the settlement layer. This is similar to chains optimistic rollups chains like optimism.
b. Celestia
Celestia aims to build a layer-1 proof-of-stake blockchain that provides data availability and consensus so the developer needs to take care of execution and settlement. Celestia allows developers to build their own plug and play roll-ups to order and execute transactions on top of Celestia’s data availability and consensus layer, here the basic idea is to give applications more control over how they want the architecture of decentralization looks like.
C. Cosmos
Validators of an app-chain are responsible for execution, consensus, data availability and settlement, but the app chain’s settlement layer is not shared which is in the case of monolithic chains. Cosmos basically allows the app chain to easily integrate with all the elements of the public blockchain in the way they seem fit. Using IBC these chains can communicate with each other so that token / value transfer can take place. The major negative aspect for this is that the community building is required for each app chain and they cannot utilize the already existing community for validation and quick prototyping which is the case for other monolithic chains.
So why cosmos has been gaining popularity?A great case for cosmos is the self sovereignty it allows for app chains, take example of LUNA. LUNA was built on top of cosmos an on April 5th, 2022, LUNA reached a market-cap of over $40 billion. By Friday, May 13th the LUNA market-cap catered to less than $10 million, and nearly all on-chain value was completely destroyed.The rest of the Cosmos ecosystem — Cosmos Hub, Osmosis, Akash, Regen, etc. — kept steadily producing blocks during the UST collapse and after Terra halted. Before I jump to saga, I want to draw your attention to Astroport and Crescent. Astroport relied on terra for security while Crescent on staking and validator set. Both of these chains tokens lost 80-90% of their token value post Terra crash.
Saga is part of Cosmos ecosystem it provides economic security and validator set for other developers to build on.
Permissionless deployment of code
Customization of self-sovereign blockchain
No upfront cost to launching a chainlet
Predictable developer pricing for gas fees
Dedicated blockspace for a developer’s applications, ensuring high throughput, easy upgradability and congestion relief.
In other words, applications deployed on Saga reserve their own dedicated blockspace, which is a feature that is not possible in monolithic blockchains. Applications deployed on Saga enjoy independence, meaning that block production on one chainlet is independent of the block production on other chainlets, a feature not shared in modular frameworks like Polkadot. Saga chainlets are self-sovereign and do not rely on a shared settlement, which is the case in Ethereum. In other words, Saga chainlets are as much a part of the Cosmos multi-chain ecosystem as any other application-based chain.
Friday, August 26, 2022
Detailed Post on Modular Blockchains
Monday, May 16, 2022
When blockchain can be used in a project?
When is blockchain actually required and when can a web2 startup can replace blockhain based projects.
- Data integrity - When there is a need to make sure that the data itself has some integrity associated with itself. This means that data cannot be corrupted or incorrect data manipulation should not take place in order to suit any specific party’s demands.
- Provable Time Linearisation.
Time linearisation in mathematical terms means anything means that increases / decreases with respect to the time, say
f(t) = at + bso the idea that anything needs to have consistence provable time linearisation say applications like Dollar Cost Averaging or anything that changes with respect to the time then we need the function thef(t)that needs to be verified by a consensus algorithm. Now in a blockchain, this happens by deterministically increasing the block number with a given time stamp and provably linked timestamps (and made sure that they are verified by consensus algorithm with high economic incentive) - Censorship resistance,
Now, every piece of information on chain is a new block while it can be creation, updation or deletion so it is ensured that no data gets lost ever. The idea that blockchain data is censorship resistance means that the data can never be corrupted and manipulated in a way to suit the needs of certain entities. Everything is a new block which is verified by consensus algorithm with high economic incentive.
- Double Spend Protection,
The idea that one can spend twice on chain but it would be recorded so on chain data. The idea is that when you make an transaction there are multiple fields that are required and of them is nonce, the idea is that if two transactions are broadcasted with exact same parameters then based on number of confirmations (probably dependent on time of broadcast and gas fees), the one having more number of confirmations will be accepted while the other will be rejected.
- Inherit Layer 1 security Layer 1 can provide consensus and security, so if there is an asset that is deemed to super valuable for the community then then layer 2 can add scalibility where as layer 1 gives the necessary security.
Sunday, May 15, 2022
How can we keep our cities cool during summer?
- My daily Power Usage
Electricity is not plenty. Even though with the infrastructure that we have today, the truth why homes need to exist and are so prevalent when jobs have become mobile, internet data is mobile and luxurious cars that are same as tiny homes, we need power.
Estimating my Power Usage,
- 4 hours of Light [43 Watts * 4 ]
- 12 hours of fan [ 55 Watts * 12 ]
- 10 hours of laptop / computing device [70 Watts * 10]
- 1.5 hours of cooking (induction) [1500 Wattage]
- 4 hours of mobile [4 wattage * 4]
Saturday, November 13, 2021
Solo Trip Adventures - Dalhousie
Traveling solo is a different ball game altogether and it's an adventure because you rarely can plan it and just have to make it up as you go along. When I thought of the idea of doing a solo trip I imagined I would have plenty of time to work and get mostly bored. I was googling what people do while they are solo travelling whilst my experience was completely opposite from that. I had to find some quiet time for myself to relax.
Most Google searches would result in activities such as observing people, observing nature and trekking to an destination but here is what my answer to this question is - You listen, because listening to others is much more theraipautic than any other thing out there. There are just so many stories that are waiting to be heard, so many lives that you can touch just by listening to what other people have to say. Before this banter continues further ahead, let's meet the people on this journey.
Krunal aka Youtuber
I wish I had half the tenacity of this guy. Why is it still easier to say to everyone that you are an UPSC aspirant than to become a youtuber in India? Clearly the stigma is very alive and very hard to get rid of. After walking 5 million miles he had the energy to speak 5 million words as well, time and again.
Traveling with him was astoundingly simple - I had very little to take care of. He made sure I got the best deals, best knowledge, best experience and best behind the scenes bloopers. May God grant you a youtuber to travel with.
Even when God knocks on his door for gateway to heaven, I am sure he would just ask the other God for better discount while the rest of us pay extra.
Jokes apart, I didn't agree with creative side of his work (obviously that's very little to complaint but as a friend I feel like I have every right to do so). More often than not when we are treading on an off beat path, we try and look for safety and security. Or maybe there is an entire population of India that uses YouTube that I am unaware of, but if I had an YouTube channel it would be entertainment rather than information.
Nevertheless, it's just making that choice, the first step is the hardest to take and as we go along the journey with resolve it gets easier with time.
Ustaad Bhai
It's always the local that leave a hole in my heart and ears bleeding. If you are going on a solo trip, make it a point to talk to the security guard , the cook , the driver because it would leave you little astounded and shocked at the same time. Every time I do, I just feel bad to be privileged and growing up with that basic logic of not channeling everything down by my emotional controller. Yes, capitalism is open for all, yes the opportunities do exist for everyone if they are willing to work but for that you need to believe in yourself and have an appetite for taking risks. He was a truck driver previously and had an accident which made his left side pretty much not usable. He became a chef to take care for his family.
The "Five Girls"
I think there was no arrow when God planned the cupid for me :P
I can say that I am omitting the names to protect their privacy but the truth is I don't remember their names. They were staying in the dorm with us and were final year med students or more like final year fed up students. What's interesting was that they were Kota coaching friends. Even I can plan a trip like that. Let's see what those fuckers are upto - asshole, bigger asshole , abroad, abroad, too irritating , too cool to reply to my text. Maybe my friendships were way more real and complex than them :P. Okay, maybe I can't but it was fun bunch of folks and the hangover of their interaction stayed with me even though I didn't sip a single drop of alcohol. Making politically incorrect statements to offend a lot of people is always a lot of fun.
Arun and Nithin
I think Arun bhai was the most knowledgeable person in that camp, It was a refreshing experience to understand the policies of Mughals, British India and Indian government over Dalhousie and how has that shaped the culture. His passion for adventure and building a backpacker house was unmatched. On the other hand was Nithin bhai who was a walking example of Netflix and chill and let's just say no more.
Vishal
He was the first person I met in the hostel and gave me the boss vibe from day one. He was like that senior in college who has had done everything that is to be done and now just wants to be shining light for other people from his tribe to follow.
Everyone Else
There were just lot of nuggets and emotional outbursts not only from other tourists but locals as well. People mostly have plenty of time as they go around visiting places and are open to talking as compared to cities where everything and everyone is a rush (including me).
Nature
If you haven't tried to listen to nature then there is no point of making the trip. You need to close your eyes and listen to the rhythmic beat of your pumping heart, the water trickling down from a crib, the gargantuan calm forest looking down for and at us while we crib in vain on our petty issues.
Also, I did zip line, paragliding, multiple long treks and visits to waterfall. Posting some of the pics.
Thursday, September 9, 2021
How should government tax crypto?
Governments serve a basic purpose - To help the community grow and prosper. They have a singular function of serving the needs of the community. Now taxing cryptocurrencies is very hard but there is also an understanding by the Blockchain community that funds for public good is required. The most simple way to tax cryptocurrency traders and developers is to make taxation voluntary and on chain.
Once you know that the transaction is on chain you can go ahead and track the end beneficiary of your money and there should be an option to choose your money to be given to local / national cause along with certain restrictions.
I think taxation can be DAO in totality and this has been the major idea behind DAOs.
Saturday, June 12, 2021
Jabra Fan : A NFT powered fan based marketplace
About Jabra
This is an early support based NFT marketplace, mostly aimed at content creators. Imagine getting supported for your initiatives by strangers on the internet who believe in you because of your past track record?
What's in it for these supporters you ask? Well they can sell these NFTs when you become a public sensation. This serves as a dual edged sword as the people who believe in you will also be the advocate of your success and help you reach there faster.
Use Case 1
Imagine you create educational videos on machine learning. You have made 4 videos and now you need some money to create more/new videos. You can mint a NFT on our platform and sell it to your supporters. This NFT would guarentee one-on-one time and certain exclusive features by the creator. Now, when and as channel grows these NFT (and thus the exclusivity) associated with it can be sold to new members of the community.
Use Case 2
Imagine you are a TV actor who is out of work at the moment (as we saw during the pandemic) , now you need some money in order to sustain a certain lifestyle. So you can reach out and mint NFTs and the exclusivity could be the videos of incorrect takes that took place, inside gossips, artworks from sets that you have, behind the scenes footage, reaction of your own memes. Your fans will buy it for certain premium and then as you grow to become a bigger star, these exclusivity can be sold out to the potentially highest bidder.
Technical Architechture
It uses
- Zilliqa BlockChain
- Scilla Smart Contracts
- ZilPay Wallet Chrome Extension is Required
- ReactJS for frontend
- Rails Backend for storing some centralized data
- AWS Amplify and AWS EC2 for hosting frontend and backend respectively.
Screenshots
Demo Video
https://www.youtube.com/watch?v=JqDsqNygJdg
(Apologies for the low audio)
Tuesday, June 8, 2021
Machine Learning Components
1. Introduction
Basic Mathematics behind traditional data algorithms, Only topics would be explored for theoretical understanding and no code would be written for the same.
Naive Bayes Classifier
Term Frequency - Inverse Term Frequency
Cosine Similarity
Linear Regression
2. Applications and breakdown,
Tabular Data
Images
Audio
Video
This breakdown along with the detailed analysis on each component would help you figure out how to work on Machine Learning Models.
Most of the research papers whether in computer vision, speech and text need a very good understanding of four things. All of these require thorough understanding along with the code. The idea is to first process them in 3 line definition format and then experiment with the TensorFlow.
Components
Recurrent Neural Networks
Convolutional Neural Networks
Long Short Term Memory Cells
Gated Recurrent Units
Topology Used
Encoder/Decoder
Bidirectional
Grid LSTM
Tree LSTM
Additional factors
Attention
Normalization
Regularization
Share/Unshare Something
Activation Function
TanH
Rectified Linear Unit
Parametric Rectified Linear Unit
Exponential Linear Unit
Sigmoid
Softplus