create account

DevBlog #1 - The Importance of Sidechains by jskitty

View this thread on: hive.blogpeakd.comecency.com
· @jskitty ·
$8.43
DevBlog #1 - The Importance of Sidechains
![A Simple Blockchain Diagram - Slalom.com](https://cdn.discordapp.com/attachments/543638439652753409/714230830175879228/unknown.png)

As we all know, **blockchains are extremely powerful tools** that can be used to empower individuals to create **immutable**, **censorship-resistant** interactions; from monetary transactions to permanent (and optionally encrypted) messages.

 ##### Not only does the individual gain such benefits, but organizations of all sizes. **[DAOs](https://en.wikipedia.org/wiki/Decentralized_autonomous_organization)** are a great example of a deterministic source of funding and governance for a community or company, with far greater transparency than any traditional company or organization could ever achieve.

Blockchains are one of the first forms of databases that have extremely high fault-tolerance, which makes them pair extraordinarily well with P2P networks. Hence, cryptocurrency (including all sub-forms) was born.

**However, with the ever-growing growth of blockchain usage, there are a few things to bear in mind...**

# - The Downsides of Blockchain Technology
---
As a blockchain (such as Bitcoin or Hive) grows in usage, their respective blockchain will store **all** history of **every** piece of data ever submitted to it.

This is perfect for immutability and determinism. Although, for the users running full-nodes, this becomes quite a challenge as the blockchain continues to grow. If it exceeds the speed of that of a user's hardware specs, then it will become harder and harder for people to decentralize the network.

##### Spam is a threat to consider, but by now the majority of public blockchains have mechanisms to combat such exhaustion attacks:

- **Bitcoin** uses transaction fees per-byte of data within a transaction, costing the user more Bitcoin as they fill a transaction with additional data.

- **Hive** uses a **Resource Credits** and **Voting Mana** system, which allows for **"fee-free"** transactions on the Hive network, instead of costing the user per-byte of data. The Hive network allocates an amount of RC and Mana to every user on the network, weighted by their **Hive Power** (aka staked Hive).
This system allows new users of the network to transact without owning a single Hive, by limiting the amount of actions they can do within a certain time-frame.

For example, a new Hive user may only be able to create 3 comments in 5 hours, but a Hive user with 1,000 HP may be able to create 30 comments **in the same time-frame**. This means each comment will cost less, relative to the amount of staked Hive the user owns, with RC and Mana "regenerating" over time.

---

Even with anti-spam measures in place, the natural non-malicious growth of a blockchain may still outpace the development and costs of consumer hardware, hampering the user's ability to utilize it safely or run their own full-nodes.

##### So, blockchain "bloat" is a cause of concern on highly-utilized blockchain platforms... *How can this be reduced?*

# - Sidechains
---
A sidechain is an additional, layer-two protocol that has full interoperability with a "main chain. 
 Sidechains can be used to store and transact with custom tokens and data, backed by the main chain's stability and security.

Put simply, a sidechain can be used as a layer-two solution to reduce the data bloat on the main chain, allowing it to store more "essential" data while also cutting down the sizes of the blocks and the load on the main chain's P2P network.

#### Examples:
- The [Hive Engine](https://hive-engine.com/) is a Hive sidechain that allows for custom token and smart contact creation & utilization.
- The [ZENZO Forge](https://github.com/ZENZO-Ecosystem/zenzo-forge) is essentially a ZENZO sidechain that allows for unique divisible and non-divisible tokens to be utilized by players, game developers and services.

Sidechains can be used to allow for **optional** parts of a decentralized network to be utilized depending on a user's preference.

For example, if a user wants to run a full-node for a blockchain, they're going to have to download the entire history of the chain. And if **all** data is on that one chain, even non-essential and bloated data, they are going to have to sacrifice time and resources into downloading and processing data that isn't even relevant to them.

With sidechains, you could download the main chain and leave out any sidechains, meaning you gain access to the "Core" protocol. For many projects this is generally the "monetary layer" of the blockchain, without downloading all the additional smart-contracts, tokens, and data bloat of the optional sidechain.

# - The Happy-Ending Results of Sidechain Utilization
- After running some quick tests on the **ZENZO Blockchain**, on-chain data was reduced by **66.3%** over a span of 227 "sidechain" token transactions.

- The total size of the data set of the tokens transacted mounts up to ~151kb, yet the on-chain data storage was only ~51kb. The "sidechain" did the heavy-lifting of signature-secured token data, while the main chain handled the layer-one monetary policy of the token transactions.

So there we have it! With sidechains, you can spread data across an efficient, opt-in P2P network that doesn't force users, services, and node-runners to download parts of a chain that won't be of any use to them. Optimization at its best...

---

### Did you learn anything new from this DevBlog?
###### Feel free to share your thoughts and feelings. This is a simple overview blog to share some commonly used blockchain infrastructures. I hope you were able to learn some new things and please let me know anything else that you Hivers would like to learn more about!


See ya' in the next blog, friends! 🐱
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
👎  
properties (23)
authorjskitty
permlinkdevblog-1-the-importance-of-sidechains
categoryeducation
json_metadata"{"app":"peakd/2020.05.5","format":"markdown","description":"The Importance of Sidechains: The first post of my potential DevBlog series - Educating Hivers on Blockchain Technology!","tags":["education","blockchain","technology","cryptocurrency","hive","zenzo","educational","sidechains","programming","news"],"links":["https://en.wikipedia.org/wiki/Decentralized_autonomous_organization","https://hive-engine.com/","https://github.com/ZENZO-Ecosystem/zenzo-forge"],"image":["https://cdn.discordapp.com/attachments/543638439652753409/714230830175879228/unknown.png"]}"
created2020-05-25 13:03:09
last_update2020-05-25 13:03:09
depth0
children8
last_payout2020-06-01 13:03:09
cashout_time1969-12-31 23:59:59
total_payout_value3.998 HBD
curator_payout_value4.433 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5,746
author_reputation850,689,104,304
root_title"DevBlog #1 - The Importance of Sidechains"
beneficiaries
0.
accountyuurinbee-znz
weight1,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,579,766
net_rshares18,528,450,816,575
author_curate_reward""
vote details (62)
@gtrussi ·
$0.02
Very well explained and easy to grasp the concept of such a complex move. Maybe this explains why @dtube Decided to create their own blockchain to avoid future overloading from dapps on the main chain. 

Looking forward to learn from your blogs. Thanks 
👍  
properties (23)
authorgtrussi
permlinkre-jskitty-qazm49
categoryeducation
json_metadata{"tags":["education"],"app":"peakd/2020.05.5"}
created2020-05-27 11:19:27
last_update2020-05-27 11:19:27
depth1
children0
last_payout2020-06-03 11:19:27
cashout_time1969-12-31 23:59:59
total_payout_value0.010 HBD
curator_payout_value0.008 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length253
author_reputation4,099,673,450,494
root_title"DevBlog #1 - The Importance of Sidechains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,616,041
net_rshares78,325,183,096
author_curate_reward""
vote details (1)
@hivebuzz ·
Congratulations @jskitty! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@jskitty/replies.png?202005251135"></td><td>You got more than 10 replies. Your next target is to reach 50 replies.</td></tr>
</table>

<sub>_You can view [your badges on your board](https//hivebuzz.me/@jskitty) And compare to others on the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>


To support your work, I also upvoted your post!


###### Support the HiveBuzz project. [Vote for our proposal](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22109%22%5D&approve=true)!
👍  
properties (23)
authorhivebuzz
permlinkhivebuzz-notify-jskitty-20200525t133541000z
categoryeducation
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2020-05-25 13:35:42
last_update2020-05-25 13:35:42
depth1
children0
last_payout2020-06-01 13:35:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length809
author_reputation368,220,423,220,515
root_title"DevBlog #1 - The Importance of Sidechains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,580,339
net_rshares32,005,696,993
author_curate_reward""
vote details (1)
@hodlcommunity ·
Solid read and great explanation !

Upvoted by the @hodlcommunity. Check out our community and post in it to be noticed more easily ;)
👍  
properties (23)
authorhodlcommunity
permlinkre-jskitty-qaw3g2
categoryeducation
json_metadata{"tags":["education"],"app":"peakd/2020.05.5"}
created2020-05-25 13:43:06
last_update2020-05-25 13:43:06
depth1
children1
last_payout2020-06-01 13:43:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length134
author_reputation82,161,833,172,596
root_title"DevBlog #1 - The Importance of Sidechains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,580,484
net_rshares39,100,044,599
author_curate_reward""
vote details (1)
@jskitty ·
Thank you! 😁 Will check out @hodlcommunity 🙏
properties (22)
authorjskitty
permlinkre-hodlcommunity-2020525t14461591z
categoryeducation
json_metadata{"tags":["education"],"app":"esteem/2.2.5-mobile","format":"markdown+html","community":"hive-125125"}
created2020-05-25 13:46:00
last_update2020-05-25 13:46:00
depth2
children0
last_payout2020-06-01 13:46:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length44
author_reputation850,689,104,304
root_title"DevBlog #1 - The Importance of Sidechains"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,580,530
net_rshares0
@jskitty ·
$0.05
**Thank you** @yuurinbee-znz for proofreading and improving the article! 🐱🐝
👍  , ,
properties (23)
authorjskitty
permlinkre-jskitty-qaw1vg
categoryeducation
json_metadata{"tags":["education"],"app":"peakd/2020.05.5"}
created2020-05-25 13:09:15
last_update2020-05-25 13:09:15
depth1
children0
last_payout2020-06-01 13:09:15
cashout_time1969-12-31 23:59:59
total_payout_value0.024 HBD
curator_payout_value0.024 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length75
author_reputation850,689,104,304
root_title"DevBlog #1 - The Importance of Sidechains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,579,855
net_rshares174,818,404,817
author_curate_reward""
vote details (3)
@novacadian ·
With atomic swapping, like Justin Sun was talking about before getting his v.22.2 pie in the face, does each of two chains become a sub-chain of the other?
properties (22)
authornovacadian
permlinkqaykdg
categoryeducation
json_metadata{"app":"hiveblog/0.1"}
created2020-05-26 21:41:51
last_update2020-05-26 21:41:51
depth1
children0
last_payout2020-06-02 21:41:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length155
author_reputation9,210,337,340,495
root_title"DevBlog #1 - The Importance of Sidechains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,606,521
net_rshares0
@wolven-znz ·
$0.04
Very nice read, Kitty! Well done! 
👍  ,
properties (23)
authorwolven-znz
permlinkre-jskitty-qaw52l
categoryeducation
json_metadata{"tags":["education"],"app":"peakd/2020.05.5"}
created2020-05-25 14:18:24
last_update2020-05-25 14:18:24
depth1
children0
last_payout2020-06-01 14:18:24
cashout_time1969-12-31 23:59:59
total_payout_value0.022 HBD
curator_payout_value0.018 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length34
author_reputation16,843,824,403,065
root_title"DevBlog #1 - The Importance of Sidechains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,581,091
net_rshares158,328,334,047
author_curate_reward""
vote details (2)
@yuurinbee-znz ·
$0.04
Great article Kitty, I really enjoyed reading this one. As most of us have learned through using the blockchain, especially with blockchain games, it is really a horrible experience to put every single action on the blockchain. It creates a bad experience for everyone all around, even though it's "on the blockchain". Sidechains and side networks (similar to ZENZO's Metadata Network) have shown that there is a better model that allows for the important aspects of blockchain to be kept (validity and immutability), without having to clog the chain, cause users more expensive tx fees, and wait for ridiculous confirmation times. I have never been a believer in a one sizes fits all blockchain, though I'm sure in theory it could be done. By creating specific cases and systems for specific problems in specific industries, I believe this is the future of blockchain for now. Nice article once again and I would really like to understand Hive's overall infrastructure better. If I was aware of it, I could make a nice infographic to help educate other people as well... Keep writing!
👍  ,
properties (23)
authoryuurinbee-znz
permlinkre-jskitty-qawy8m
categoryeducation
json_metadata{"tags":["education"],"app":"peakd/2020.05.5"}
created2020-05-26 00:48:33
last_update2020-05-26 00:48:33
depth1
children0
last_payout2020-06-02 00:48:33
cashout_time1969-12-31 23:59:59
total_payout_value0.022 HBD
curator_payout_value0.022 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,085
author_reputation1,613,581,505,151
root_title"DevBlog #1 - The Importance of Sidechains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,590,006
net_rshares163,895,940,597
author_curate_reward""
vote details (2)