Categories
Crypto Crypto Education Crypto Guides

Understanding Fungible and Non-Fungible Tokens

Today we are going to look into fungible vs Non-Fungible Tokens, aka NFTs, aka nifty. They burst into the mainstream with the sudden popularity of cryptokitties – a virtual cat collectible game. While the Ethereum-based ERC-721 remains the most popular NFT in the market, there are several projects out there, like RSK, that have produced their own collectible tokens. So, before we go into any of this, let’s do some background research.

What is A Token?

In real life, a token is a thing which serves as a visible or tangible representation of a fact, quality, feeling, etc. you can empty your pockets right now and the chances are that you will stumble across a lot of real-life tokens.

  • Your office ID card shows that a company gainfully employs you.
  • Your driving license is a token, representing the fact that you have taken the training required to drive in your country.
  • Your hotel key card shows that you have paid the hotel for your room.

Similarly, in the cryptoverse, a token is a representation of “something” in its particular ecosystem. It could value, stake, voting right, or anything. A token is not limited to one specific role; it can fulfill many roles in its native ecosystem. A token represents an asset or utility that a company has, and they usually give it away to their investors during a public sale.

Fungible vs Non-Fungible Tokens

Alright, we have gained some background info on how tokens work, let’s look at the difference between fungible and non-fungible tokens. According to Investopedia:

“Fungibility is a good or asset’s interchangeability with other individual goods or assets of the same type.”

Let’s understand this with an example.

Suppose you borrow a $100 note from a friend. To pay her back, do you really need to pay her back with the exact same note?

Absolutely not.

You can pay her back with another $100 note. In fact, you can give your friend 2 50-dollar notes or even 10 10-dollar notes. It will be perfectly fine because dollars (or paper currencies in general) are, for the most part, fungible.

Now, let’s suppose you borrow your friend’s car. Will she be ok with you returning some other car to her? What if you break up her car and return her the engine, wheels, doors, etc.? You’ll be lucky if she doesn’t file a complaint against you!

So, what happened here?

A car counts as a collectible, which is why it is non-fungible.

This is the fundamental difference between a fungible asset and a non-fungible asset.

Currencies gain more value by their fungibility. The more widely regarded and accepted a specific currency is, the more people will use it, and hence more it’s perceived value will be. So, if payment is one of the main utilities of the token that you are interested in, then you should check whether the token is fungible or not.

Non-fungibility is a desired asset when your token is a collectible and gains its value from its uniqueness.

Ethereum Token Standards: ERC-20 vs ERC-721

To create a healthy ecosystem, it is essential that the Dapps built on top of Ethereum can seamlessly interact with one another. However, what will happen if we have two tokens, say Token Alpha and Token Beta, and both of them have different smart contract structures?

For the two tokens to interact, the developers will need to carefully study both their contracts and map out exactly how these tokens will work with each other.

Now, this doesn’t really bode well for scalability, does it?

If there are 100 different tokens with 100 different contracts, then to narrow down on all the qualifications and conditions required to make sure that transfers can go through between all these tokens will need a humongous amount of complex calculations. This is not an ideal scenario at all.

This is why a decision was taken to standardize the rules that govern the token’s underlying architecture. These sets of rules are called ERC-20. The “ERC” stands for “Ethereum Request for Comment,” while the number ’20’ is assigned to this request.

Let’s look into what builds the foundations of ERC20:

  • totalSupply
  • balanceOf
  • transfer
  • transferFrom
  • approve
  • allowance

Now, these are the rules and functions that the ERC-20 tokens must mandatorily have. However, they can also have the following 3 optional characteristics.

  • Token Name
  • Symbol
  • Decimal (up to 18)

These rules define the ERC-20, fungible standard.

Properties of Fungible Tokens

  • Another token of the same type can replace one token.
  • The underlying rules that are governing the tokens are the same.
  • Fungible tokens are divisible, and various smaller fractions could be used to pay back a larger amount. E.g. 1 BTC can be paid back with 0.50 BTC, 0.30 BTC, and 0.20 BTC.

ERC-721 – The Non-Fungible Standard

The ERC-721 token standard helps create non-fungible tokens. In many ways, it is pretty similar to ERC-20 in functionality. This similarity exists for two reasons:

  • Firstly, it is easier for developers to make the transition. , they won’t have to learn a host of new things
  • It makes life much easier for users who can store these tokens in ordinary wallets and trade them on exchanges.

The interface for ERC-721 provides two methods:

  • ownerOf: to query a token’s owner
  • transferFrom: to transfer ownership of a token

ERC-721 Functions

The ERC-721 standard defines the following functions: name, symbol, totalSupply, balanceOf, ownerOf, approve, takeOwnership, transfer, tokenOfOwnerByIndex, and tokenMetadata. It also describes two events: Transfer and Approval.

Before we go into individual function discussions, you must know what we mean by the Token Ownership and Token Creation of the ERC-721 functions.

Pros and Cons of Non-fungible tokens

Pros

  • ERC-721 standard can be a way with which every significant asset could be tokenized on a public or hybrid blockchain with complete immutability and security.
  • Non-fungible tokens can be designed with way more resources than available to most during that time. Users can do this, adding extra context and information to the asset’s metadata.

Cons:

  • The ERC-721 token standard is still relatively new.
  • Fungible tokens are divisible upto a certain extent. ERC-721 simply can’t be divided and must be bought or sold whole.

As mentioned before, several projects have started issuing NFT tokens. One of those happens to be RSK.

What is RSK?

Rootstock (RSK) is a smart contract platform that is connected to the Bitcoin blockchain through sidechain technology. Rootstock was born to be compatible with Ethereum’s applications (the web3/EVM/Solidity model) . The idea behind the creation of RSK was to give the Bitcoin blockchain smart contract functionalities. At its very core, Rootstock is a combination of:

  • A Turing-complete resource-accounted deterministic virtual machine (for smart contracts) compatible with Ethereum’s EVM.
  • A two-way pegged Bitcoin sidechain (for BTC denominated trade) based on a strong federation.
  • A SHA256D merge-mining consensus protocol (for consensus security relying on Bitcoin’s miners) with 30-seconds block interval. (for fast payments).

RSK: NFT Use Cases

Its partnership with Watafan can perfectly describe RSK’s advances in the field of non-fungible tokens.

Watafan will allow celebrities to create their own digital trading cards, aka watacards.

  • Celebrities can give away the watacards to their fans as a gift or autograph.
  • They can use their personal wallet to sign these cards cryptographically.
  • Smart contracts protect the intellectual property of the idols.
  • Every time fans trade watacards in the secondary market among each other. The concerned celebrity will receive a chunk of the shares.
  • Watafan aims to propel digital property to the next level by leveraging smart contracts. Watafan idols can secure their copyright and digital identity with RSK smart contracts.
  • Long-term, watacards will cement themselves as a new kind of asset that can help preserve the intellectual copyrights of artists, athletes, musicians, actors, and others.
Categories
Crypto Guides

What are Sidechains & What is their Purpose?

Introduction

Sidechains are mechanisms that enable the transfer of existing tokens or digital assets from a blockchain platform to another blockchain platform. The tokens or digital assets can be transferred back to the original blockchain if required. The primary platform from which we transfer the assets is called the parent chain or main chain, while the other platform is called sidechain. Ardor blockchain calls the sidechain as childchain.

Sidechains have enormous potential to transform the existing issues of scalability in the blockchain platforms. The transfer need not be only digital assets or tokens, but we may transfer computing or for speeding purposes as well, depending on the processing requirements. We can have many sidechains for a single parent chain.

How do they work?

Sidechain is indeed a separate blockchain platform connected with the leading blockchain platform using a two-way peg. The two-way peg is a method to convert one digital token to another type of token like BTC to ETH. The two-way peg facilitates the transfer of digital assets at a predetermined rate. A user on the parent chain first sends coins to an output address so that they can be blocked.

To ensure that these coins aren’t spent elsewhere, a protocol is followed. Once the transaction is complete, the information is sent to all the chains. Some extra period is used to wait as well to increase security. Once this is done, the same number of coins are released in the sidechain for user access and spending. The same process can be repeated when the tokens are to be sent from sidechain to the main chain. Some other entities come into the picture to run the sidechains seamlessly. They are as below.

Federations

A federation can be called as a group or server which acts between the main chain and a side chain. The sidechain creators can decide federation members. They decide on when to lock the coins and release the coins for spending and vice versa.

Security

The core reason for anyone to move to the blockchain platform is security. So, one may question what about the security aspects in the sidechains. Even though they are connected, they are on their own in terms of security. Both platforms are individual blockchain platforms and are very secure individually.

Further, if there is any disturbance in one platform, the disturbance will not be carried out to the other. The sidechains use separate miners from the main chain. They are incentivized using merged mining. Merged mining refers to the mechanism of mining two or more cryptocurrencies at the same time based on the same algorithm.

Platforms using Sidechains 

Rootstock or RSK

RSK has two-way peg connectivity with the Bitcoin platform. RSK’s vision is to enable smart contracts functionality for bitcoin blockchain, increase scalability, thus faster transactions. Miners are rewarded through merged mining. As of now, the platform supports 100 TPS.

Liquid

Liquid sidechain proposes instant movement of funds between exchanges without waiting for the delay in confirmation from the bitcoin blockchain. This is the first commercial sidechain developed by Blockstream.

Advantages of Sidechains

  • Enhances the scalability of the mainchain, thus increasing the number of transactions per second.
  • Need not create a sidechain again and again; once created, they can be used for any purpose.
  • They enable the communication between two different coins, which helps in the testing of beta coins in the sidechain before the official launch.

Conclusion

The scalability issues of blockchain technology are addressed in different ways, but sidechains are very promising. The communication between two different cryptocurrencies paves ways to multiple features. Transactions costs and time will be reduced as the burden is less for the mainchain. The concept is going to create a massive change in the blockchain technology in the upcoming future.

Categories
Crypto Daily Topic Cryptocurrencies

What Is Rootstock (RSK): Understanding The Most Popular Bitcoin Blockchain

Bitcoin technology has played a phenomenal role in revolutionizing the global finance industry. Finance industry players, retail companies, and individuals understand this, hence its massive adoption across all industries. But Rootstock (RSK) sidechain developers believe that Bitcoin blockchain could be doing more. And that limitations in scalability, transaction processing, and lack of support for smart contracts the dominant cryptocoin is facing today are its biggest hindrances.

RSK developers also believe that the pioneer blockchain is money-dominated, implying that people concentrate more on Bitcoin Value than the technological revolution it promises the finance sector. And to address these issues, RSK labs sought to create a Bitcoin sidechain – Rootstock, also known as the ‘SMARTER BITCOIN.’ According to the company, the Sidechain will help Bitcoin overcome these limitations and boost its functionality and interoperability.

But what is RSK, and what progress has it made in making these feasible?

What Is RSK?

RSK is a Bitcoin sidechain connected to the BTC blockchain by a two-way peg. It can also be said to be an innovative virtual machine (RVM), tethered to the root of bitcoin blockchain with the aim of introducing the smart contract concept to the pioneer blockchain while effectively boosting its scalability. Plus, its through RSK sidechain that the crypto community will be able to create and run Bitcoin blockchain-backed smart contracts.

How does RSK hope to achieve these?

Ideally, the RSK sidechain seeks to marry the functionalities of the Ethereum blockchain with the security and efficiency of the bitcoin blockchain. To make this possible, the smart contract sidechain is tethered to the main blockchain by a two-way peg. This ensures that the side chain runs parallel to the main blockchain and that there is interchangeability of assets between both parent and side chain. It also has the backing of a semi-trusted third party that oversees the reliability of all transactions between RSK sidechain and Bitcoin blockchain in the execution of these smart contracts.

Hybrid federation to actualize smart contracts:

The semi-trusted-third-party (STTP) comprises of 25 highly accredited crypto community members of proven crypto knowledge and unquestionable integrity. And they serve as an interlink between RSK sidechain and Bitcoin blockchain, where they determine when to lock or release smart contract funds.

Why does the execution of smart contracts need a third party, you might ask? Well, because Bitcoin blockchain does not support the creation of smart contracts on its platform, RSK platform users needed an assurance that the Sidechain was operating in their best interests. And who to better provide such oversight and regularly audit the transactions carried out on the platform than the crème del crème of the crypto industry.

The 25 STTPs effectively form the hybrid federation that, in turn, operates the multi-signature wallet used to authorize the locking and release of funds. Each multi-sig wallet member has one vote, and it takes a simple majority to authorize the execution of a smart contract.

Two-way peg to actualize scalability and transaction speeds

The RSK Labs has been involved in the audit and analysis of both Bitcoin and Ethereum blockchains. In RSK sidechain, they have come up with a highly scalable platform that seeks to boost on-chain transaction processing speeds to 2000 in the long-run from the 3 TPS recorded by bitcoin blockchain today. They also intend to increase block confirmation speeds from 10 minutes per block to less than 10 seconds per block. To achieve this, RSK Labs developers utilized the GHOST protocol used on the Ethereum blockchain to speed up transaction processing speeds, and the DÉCOR+ block reward sharing protocol.

Note that RSK is a sidechain and will not be modifying the bitcoin blockchain code. How then does its scalability and transaction speeds impact Bitcoin? Well, the 2-way peg ensures the two blockchains run parallel to each other, and share assets like the blockchain database. This implies that if a transaction is recorded on the sidechain block, it automatically records on the main bitcoin blockchain, effectively eliminating chances of duplication. The tokens are also interchangeable, where 1 BTC = 1 SBTC (the token used on the RSK sidechain network).

RSK key features and components

Virtual machine:

RSK is to bitcoin, what EVM is Ethereum. A virtual machine through which bitcoin smart contracts can be executed. RSK, however, goes a notch higher to provide a platform on which the crypto community can create Bitcoin-based decentralized apps. And this effectively earns it the title –SmartBitcoin.

No commercializing tokens:

The fact that RSK is a sidechain that complements the Bitcoin blockchain means that its tokens won’t be commercially available. They will be restricted within the RSK to boost network operations like DApps creation. And to allow for easier interchangeability, 1 SBTC will always hold the same value as 1BTC. Let’s say you had 5 BTC and that you wanted to transact but want to leverage the speed and efficiency of the RSK sidechain. You simply exchange them for an equivalent amount of SBTC, and once done, convert your SBTC balance back to BTC.

Transactions not fully trustless:

The fact that Bitcoin’s blockchain does not support the creation of smart contracts on its native network necessitates the use of the Hybrid Federation interlink. When you exchange your BTC for SBTC or vice versa, your coins are locked in a multi-signature wallet within the 2-way peg. The federation, consisting of 25 highly accredited crypto community members, holds the keys to the multi-sig wallet. And locking and releasing funds held in the wallet only requires the authorization of a simple majority.  It provides a semi-trustless oversight over the funds as opposed to the fully independent, trustless, and automated oversight needed in a smart contract.

Merge-mining security:

 Bitcoin miners don’t need special applications or hardware to mine SBTC tokens. The RSK token mining applications are completely compatible with the bitcoin mining infrastructure. And as Bitcoin mining halves and block confirmation become harder, SBTC mining is a well-timed incentive.

The bridge between bitcoin and Ethereum:

RSK also supports the Turing Complete Programming language used by Ethereum Virtual Machine (EVM) and Ethereum DAPPs. This makes it possible for Ethereum blockchain users to easily migrate their systems to the RSK network. It is a viable option for Ethereum users, uncertain about the efficiency and reliability of the upcoming shift by Ethreum from proof of work to proof of stake.

What is the future of RSK?

Federation transitions to a drivechain/sidechain model?

Currently, RSK transactions over the 2-way peg are audited by the semi-trustless federation. Moving forward, however, and as the Sidechain gains traction and usage, RSK hopes to shift the custody of the locked coins on the 2-way peg to the merge-miners. A significant move aimed at reducing the need for trust.

RSK Educate:

RSK also looks forward to educating the crypto community on the effectiveness of its innovative Sidechain. To this end, RSK has published all the whitepapers related to this project and even created a blog where they share tips and educate the masses on how to interact with the Sidechain.

Why hasn’t RSK picked?

When RSK made public their intention to create and actualize the implementation of smart contracts, every crypto community member expected a flawless process. In its stead, RSK Labs, the developers of RSK sidechain, decided to include the semi-trustless federation of signees to maintain custody of the coins exchanged between Bitcoin main net and Sidechain.

The inherent risk associated with such an arrangement, especially considering their small and compromisable size of just 25 participants,  have seen the crypto community shy off the platform. Most of these lie in wait of the proposed upgrade to the 2-way link that elbows out the federation in favor of BTC and SBTC merge miners. 

Bottom line

It is about time Bitcoin blockchain took advantage of its massive industry support and incorporated smart contract features. And the Rootstock sidechain is here to give the blockchain its much-needed push towards execution of smart contracts. By adopting RSK, users of the already dominant legacy coin stand to benefit from such features only available with the newer blockchain models as faster transaction processing speeds, a DApps building platform, and the ability to execute bitcoin blockchain-backed smart contracts. Looking at the Bitcoin community, however, one can’t help but notice the pockets of resistance and doubts forming around the effectiveness and reliability of the Sidechain. And these are majorly attributable to its reliance on the federation of signees as custodians of the locked coins. Only time will tell if this will change once RSK migrates to verification by merge-miners.