Avalanche Blockchain - Crypto Academy / S5W8 - Homework post for Prof. pelon53.

in hive-108451 •  3 years ago  (edited)

Hello lovely people,

I trust you are doing good, as the year begins. Here my presentation for last week of this season.

iMarkup_20220104_211625.jpgMade with iMarkup


1. Explain in detail X-Chain, C-Chain and P-chain.


The X-Chain, C-Chain and P-Chain (Avalanche)


The X-Chain, C-Chain and P-Chain blockchains are a three variety of blockchains that constitute the Avalanche blockchain network.
The amalgamation and utilization of these three separate blockchains by the Avalanche blockchain helps it to achieve a high level of scalability.

primary-network-b3e87276c00ce9c3f875cf17aaa29422.pngsource

Thus, these hybrid blockchains helps Avalanche to defeat the concept of blockchain trilemma by ensuring pure decentralization, high security and a high level of scalability concurrently.
Avalanche has an average TPS of 4,500 and 2 seconds transactional finality period, with low transactional fees, and this is attained with the help of the three merged blockchains.

iMarkup_20220104_210926.jpgsource This image is self-explanatory to the superiority of Avalanche in the blockchain arena

All the 3 sub-blockchains (X-Chain C-Chain and P-Chain) are validated and secured by the Primary Network (Avalanche).
The Primary Network is a special subnet, whiles all members of the custom subnets must be a member of the Primary Network by staking at least 2,000 AVAX.

Now let's take the three built-in blockchains that make up the Avalanche blockchain, one after the other, and throw more light on them.


X-Chain (Exchange Chain)


The X-Chain is a decentralized platform that serves the purpose of creating and trading digital assets on Avalanche.

AVAX is one asset traded on the X-Chain, and when a user issue a transaction to a blockchain on Avalanche, he or she pays a fee or commission in AVAX.

As a part of Avalanche, it uses the Avalanche consensus mechanism, and as an Exchange Chain, all digital assets are managed within it.

With the X-Chain, all nodes work in parallel, with the basic aim of verifying confirmations made by other validators.

In simple terms, the main purpose of the X-Chain is to create and exchange assets.


C-Chain (Contract Chain)


The C-Chain network uses the Snowman consensus mechanism, and it enables the creation of smart contracts using the C-Chain’s API.
This Chain allows dApp developers to create smart contracts for their projects, and they Use the Ethereum Virtual Machine to initiate these contracts.
It enhances the development of any Ethereum-compatible applications and assets with lower fees and faster transactions. Smart contracts for dApps, NFT's and ERC-Tokens are generated.

Over here, the nodes are works linearly, unlike that of the X-Chain where the nodes work in parallel.

dApp developers have the opportunity to utilize the AVAX token for smart contracts, and the token can as well be used to settle gas fees.


P-Chain (Platform Chain)


The P-Chain is regarded as the metadata blockchain on Avalanche, and it coordinates validators, keeps track of active subnets, and enables the creation of new subnets.
Similarly to the C-Chain, the P-Chain implements the Snowman consensus protocol.
On the P-Chain, validators stake the AVAX token in order to secure the network.

The P-Chain API allows its clients to create subnets, add validators to subnets, and create new blockchains as well.
The P-Chain has the main purpose of coordinating validators and creating further subnets.

In addition to the above explanations, all the three blockchains are default on Avalanche in terms of their purpose, and we should note that the AVAX token can be transferred from each of the Chain to the other by using the Avalanche noncustodial Wallet.


iMarkup_20211103_105439.jpg

2. Explore the Avax Network platform . Screenshots required.


To explore the AVAX Network platform, we need to visit www.avax.network and we will successfully get in touch with the beautiful interface of the platform.

In fact, upon opening the page, I came across a lot of options and information of which I may not be able to explain all in details in this work. Therefore, I will highlight on the salient aspects.

iMarkup_20220104_200600.jpgsource

At the upper section there contains options such as Developers, Individuals, Avalanche-X, Press, Community, Contact and Build Now.
Each of the options has a subsection with the exception of Community, Contact and Build Now. Probably, Build Now is displayed all over the platform, and I think that is to draw the attention of people about the main purpose of the platform. Thus, to build blockchains and dApps at a lower fees, and on a faster pace.

iMarkup_20220104_201406.jpgsource

  • The Developers section compromise of Validators and Start Building.

Validators
iMarkup_20220104_205134.jpgsource

Start Building
iMarkup_20220105_095839.jpgsource

The Validators and Start Building subsections enable users to stake their AVAX tokens for a period of time to secure the Avalanche network, of which they receive rewards in return. Developers or users get the opportunity to learn and launch their Ethereum related dApps, run a validator, mint a token etc.

iMarkup_20220104_210238.jpgsource

Other Start Building aspects to learn or get an overview of Avalanche are Integrate an Exchange and Developer Documentation.

iMarkup_20220105_004641.jpgsource

  • The second section is Individuals. Individuals entails Roadmap, Solutions, Ecosystem, Avalanche Wallet, Avalanche Explorer and Avalanche Bridge.

iMarkup_20220105_020746.jpgsource

  • Solutions encourage developers or people to build on Avalanche in order to create powerful, reliable and secure dApps together with public or private blockchain networks with complex rulesets.
    Thus, it throws more light on the use cases of Avalanche, with regard to its successful projects such as Pangolin, Snowball, TrueUSD, Ryval, Gameswap, Topps etc.

iMarkup_20220104_202544.jpgsource

  • The Roadmap column displays each 3 months achievements and development of Avalanche within a year.

iMarkup_20220104_202524.jpgsource

  • Avalanche Explorer enables users to have a view of the recent X-Chain and P-Chain network.

iMarkup_20220104_201820.jpgsource

  • With the Avalanche Wallet, new users get the opportunity to create new Avalanche Wallets, whiles existing users can access their Wallets there.

iMarkup_20220104_202259.jpgsource

  • The Avalanche Ecosystem really entails a lot, as we can see from the image below.

iMarkup_20220104_202615.jpgsource

  • Avalanche Bridge enable users to connect other wallets such as MetaMask, Coinbase Wallet etc.

iMarkup_20220104_201842.jpgsource

  • Avalanche-X is the third, and it contains Explore Open Grants and Submit a General Proposal.
    People with ideas to grow and collaborate on Avalanche receives invitation over here.

iMarkup_20220104_211046.jpgsource

iMarkup_20220104_202212.jpgsource

  • The Press section is the fourth, and it entails Press Inquiries and Press & Media Assets.

iMarkup_20220104_202333.jpg

  • Community is the fifth. The community section paves the way for people around the world to join the international community that are building on Avalanche. Users join the community by using email.
    I joined the community, yeah I love to explore and contribute in great projects. We join

iMarkup_20220104_202434.jpgsource

iMarkup_20220105_022736.jpgsource

  • Contact is the last, but one, section. The contract aspect allow people to contact the Avalanche team through e-mail in relation to their services.

iMarkup_20220104_201502.jpgsource

  • Build Now is related to the Start Building section.

In the Middle section of the page, there is the display of news about Avalanche, Projects that have been built or are being built on the system, Block Explorer and information about the AVAX token. The comparison of Avalanche with other blockchain networks, the creation of Wallet and its Roadmap have already been pondered on.

iMarkup_20220105_182601.jpgsource

iMarkup_20220105_184259.jpgsource

The Bottom section of the page add extra information or details to the above-mentioned sections.
Users also have the opportunity to join Avalanche social media handles such as Twitter, Telegram, Discord etc. through the Avalanche Network.

iMarkup_20220105_004803.jpgsource

I joined the Discord platform as well.

iMarkup_20220105_010321.jpgscreenshot taken from Discord

To summarize my exploration, I noticed that the AVAX Network platform has numerous opportunities and offers for blockchain project developers and individuals.
The platform gives general overview of Avalanche, and It helps visionary and zealous developers to build and launch fast and low cost (Ethereum) dApps, variety of blockchains and encourage AVAX staking by AVAX holders.

iMarkup_20220104_211003.jpgsource

In fact, I almost forgot that I was operating on a blockchain network, the system (Avalanche) is highly scalable, without any doubt.


iMarkup_20211103_105439.jpg

3. Show the last verified contract in the C-Chain network and show the Smart Contract that was generated at that address. Screenshots required.


To show the last verified contract in the C-Chain network and show the Smart Contract that was generated at that address, we have to simply visit www.snowtrace.io or click on C-Chain from the Avalanche block explorer, and it will lead you to snowtrace.io

iMarkup_20220105_081714.jpgsource

The page will open with a display of AVAX PRICE, LATEST BLOCK, MARKETCAP etc.

iMarkup_20220104_175929.jpgsource

We can search for a block at the search box, but since we are interested in the last verified contract together with its generated smart contract, we should navigate to the top section of the page, and click on Blockchain in between Home and Tokens.

A dropdown will appear with other options, but we will only click on Verified Contracts

iMarkup_20220104_180139.jpgsource

After clicking, a page will appear and display the last 500 verified contracts in the C-Chain network accordingly.

iMarkup_20220104_180422.jpgsource

  • In my case, ThorusBond had the last verified contract. I clicked on the address and below is the Smart contract that was generated at that address.

iMarkup_20220104_180927.jpgsource


iMarkup_20211103_105439.jpg

4. Explore the last block generated in the C-Chain network. Screenshots required.


To explore the last block generated in the C-Chain network, we will follow similar procedures as we did with the verified contracts, but with the last block, we will only click View Blocks from the Blockchain section.

iMarkup_20220104_181037.jpgsource

After clicking, a page will be displayed with the last block generated in the C-Chain network.
By the time I checked, the last block generated in the C-Chain network was generated in 3 seconds ago, as displayed.

iMarkup_20220104_181306.jpgsource

We then click on the block address, in order to get extra information such as Block Height, Timestamp, Transactions, Burned Fees etc. with regard to the last block generated in the C-Chain network.

iMarkup_20220104_181417.jpgsource


iMarkup_20211103_105439.jpg

5. Explain in detail the Avalanche consensus protocol and the Snowman consensus protocol.


consensus mechanism is a set of certain rules and functions that makes it possible for validators to reach to an agreement, and ensure effective and efficient function of the blockchain network.

Probably, there are three approaches that have been created and implemented throughout history. Thus the Classical consensus, Nakamoto consensus and Avalanche.

Since we are interested in Avalanche, I will ponder on Avalanche and its sub-consensus (Snowman consensus)


Avalanche Consensus Protocol


0_Z37MR0y9c4WY-Nke.pngsource

There is a difference between the Avalanche consensus protocol and other consensus mechanisms such as PoW (Bitcoin), PoS (Ethereum), etc. in the sense that, Avalanche uses a Directed Acrylic Graph (DAG).

Unlike in some consensus mechanisms were a consensus is reached randomly or based on competition, DAG enables transactions to be process in parallel.

With a Directed Acrylic Graph, the individual transactions provide validation for one another, and the network users are both miners and validators, although they can't validate their own transactions. This helps to decrease the fees level in a DAG.

Avalanche uses all nodes to validate and process transactions, and transactions are confirmed once they are finalized by the nodes.
The avalanche consensus protocol do not guarantee the creation of blocks, instead transactions referred to as vertices are displayed.


Snowman Consensus Protocol


1_OYzwYMrXRJg05ADkqQGsIw (1).jpegsource

The Snowman consensus is an improved version of the Avalanche consensus, and it is powered by the Avalanche consensus mechanism, but it doesn't work with parallel nodes as in the case of the Avalanche Consensus. Avalanche secures the P-Chain and C-Chain through the Snowman consensus.

There is linear order of transactions and the creation of blocks in this particular consensus mechanism.

The Snowman consensus helps Avalanche to achieve a distributed consensus on the chain without depending on any trusted third party.


iMarkup_20211103_105439.jpg

Conclusion


Avalanche is a great and powerful blockchain platform that helps in the upbringing of other blockchain projects.
It has achieved the three components of blockchain simultaneously without risking any, thus a network that is decentralized, secured and highly scalable, and this achievement is attained with the help of the three built-in blockchains.
With Avalanche, Blockchain Trilemma is nowhere to be found.

Thank you Prof. @pelon53 for such interesting topic.
I hope we meet next season.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
Loading...
Loading...