logo

Where is the blockchain stored

Share on facebook
Share on twitter

Decentralized Storage Explained

15 343 views | 20 Dec. 2017

Decentralized Storage

Decentralized Storage Explained - https://blockgeeks.com/

In this lesson we’ll learn about decentralized storage and some services that are available today like IPFS and Swarm. You can think of decentralized storage as a peer-to-peer network where members pool together their disk space to create a shared global memory, kind of like Dropbox but decentralized.

Both IPFS and Swarm are similar in that they are opensource decentralized storage solutions, but they differ in implementation and approach. IPFS, which stands for interplanetary file system, is a protocol that was published by an organization called Protocol Labs. The first implementation of the IPFS protocol was written in the Go language and published in early 2015, and today there are several alpha release implementations available including in javascript.

Swarm is also a protocol, and is part of the Ethereum holy trinity that makes up the serverless world computer, which consists of Swarm, Ethereum and Whisper. These three infrastructure projects are part of a broader vision that provides a completely decentralized alternative to the currently centralized web. Ethereum would provide the computation power; Swarm would provide the storage layer; And Whisper would provide a messaging layer. Swarm and Whisper are not quite as far along in their roadmaps as Ethereum. But a proof-of-concept Swarm implementation written in the Go language is included as part of the geth client since version 1.5

You may have noticed I said that both projects are either in alpha or proof-of-concept stages, meaning theyre not quite yet ready for the production spotlight. But understanding the role of decentralized storage in the future web is important, so you should know how to make use of these tools. As these projects evolve and mature, they will become increasingly production ready.

Let’s start by looking at how to use Swarm. Since Swarm is already part of the Ethereum stack, a proof-of-concept Go language implementation exists as part of geth. So to activate swarm, we need to download and build geth and swarm from source. To do this, we need to have Git and Go installed in our environment. You can do this easily using the command brew install go git.

Then you need to make sure your Go environment is setup correctly. You can do this by creating a folder called go in your home folder, and then exporting an environment variable called $GOPATH which points to this folder.

We’ll then install from source by downloading the go-ethereum source code from their github

mkdir -p $GOPATH/src/github.com/ethereum

cd $GOPATH/src/github.com/ethereum

git clone https://github.com/ethereum/go-ethereum

cd go-ethereum

git checkout master

go get github.com/ethereum/go-ethereum

And now we can compile geth and swarm from source:

go install -v ./cmd/geth

go install -v ./cmd/swarm

We’re now ready to run the swarm daemon by using the binary in our $GOPATH. You can add this bin folder to your PATH for convenience. If you run swarm version, we can see that we are on version 1.8.

To use Swarm, you need to have an Ethereum account. You can do this quickly using geth account new. After entering a password, this will print out the new account address that we will use to join the Swarm network. You can copy the public address to your clipboard.

To run Swarm we first need to make sure we have geth running. Then in a separate tab we run swarm and point it to our Ethereum account using the —bzzaccount option and pasting in our public address. It will prompt for your password to unlock the keyfile for Swarm, and then start up a local Swarm node on port 8500.

Now we can easily upload files using swarm command line tools by simply calling swarm up followed by the path of the file you want to upload. Swarm doesn’t support encryption yet, so make sure you dont upload any sensitive files. After uploading, you’ll get a unique hash printed out for this file that points to it on the Swarm network. Let’s upload our index.html from our previous blockchain explorer example.

To read more check out https://blockgeeks.com/

Hrvoje Livnjak

this is a rocket science for the end user :D

Guilherme

Waiting for the next video. Super cool :)

YoIts LemonBoy!

THIS is a real blockchain video! not the "hype the price up" bs videos that every other "crypto"
youtuber makes.

Skyshark88

dude.... get a mike

Ed Lemieux

What about siacoin? They are up and running.

Myan McCann

reminds me of the stage that "email" was in in the late 80s

Isaac P

when i try to install geth and swarm i get the following error:
go install -v ./cmd/geth
github.com/ethereum/go-ethereum/vendor/gopkg.in/olebedev/go-duktape.v3
# github.com/ethereum/go-ethereum/vendor/gopkg.in/olebedev/go-duktape.v3
vendor/gopkg.in/olebedev/go-duktape.v3/duktape.go:132: constant 18446744073709551615 overflows int64

CryptoWorldMiss Channel

Really interesting video! +++ I use Internxt, another example of decentralized (and ecological! ?) cloud storage that you could mencioned in some video! It will be an interesting video if you contact each other! Internxt gives you 2GB free 4ver and really cheaper prices (cheaper than Dropbox!).

Illiya Watergate

Hi, what do you think about Sinovate? Is there a sleeping giant? Thank's for your answers guys.

Alan Ross

So would a decentralized database be in separate units stored on separate computers? Would X amount of the same data chunks need to be stored on X amount of separate computers to ensure the data is never lost?

Pankaj Verma

Good intro to start Swarm and IPFS

Where is the blockchain stored

Share on facebook
Share on twitter

Blockchain or Database: Explained!

4 999 views | 8 Apr. 2018

Blockchain technology is

Blockchain technology is an advanced database. What are the benefits or disadvantages of using a public versus private blockchain? Decentralized vs centralized database system

https://en.wikipedia.org/wiki/Blockchain

Learn how to mine Monero using at your website

https://www.youtube.com/watch?v=XRdN4gP-0D4

Donations:

BTC: 15Zk8pQJvXkgoSMgwPjcLtVjRNQBw38GRU

LTC: LNGytDjRu3eBLrpNc5qSEvSwY1u3yEtznh

ETH: 0xBfE41FBe3243d4944E431e6Ed47A748d10F3d68A

DSH: Xgqj1jMCU5Sr3gdxWkBM6bBGPxze52d38M

Lunar Georges

Pretty cool vid. Good intro to blockchain tech. You might want to make a follow up video where you mention the decentralized database projects that are now live such as arweave, aleph.im, IPDB and other! Also now there are decentralized file storage projects that are live, also worth exploring and covering ;)

Cryptoacademy

Don't forget to subscribe to get more videos like this.

connectter

Do you think the blockchain will take SQL's place? if so how?

Cos

HI, Thank you for the information about blockchain. I would like to build an application could you help me. I will explain in details my needs. Again thank you. Cyr

Judah Yeshuron

Hello i like the way you explain things, i will like us to do some work together . what else do you do with blockchain? do you create DAPPS?

Sébastien Labouret

sentralized database

Joost Rove

Is this video sped up?

Taytor Tot

DynamoDB API

Jason B

Hi, what do you think about Aergo? As I know they're integrating SQLite with blockchain.

arturo melgarejo

very well explained :)

Mr. Cool

Sir I want to enter the data into private Blockchain network and I want to learn the Blockchain from scratch
Can i get your support?

Where is the blockchain stored

Share on facebook
Share on twitter

6 Steps of Blockchain Storage

901 views | 2 Aug. 2020

Blockchain is the buzz on

Blockchain is the buzz on the streets in the storage world. But who actually knows how it works? Watch to learn how blockchain storage works in six basic steps.

Blockchain storage was popularized in the mainstream by cryptocurrency like Bitcoin. But, it’s an emerging technology for decentralized data storage in enterprises. The issue, is few understand how it works, which is essential to knowing if it should be implemented in any specific organization.

The exact approach to blockchain storage will vary between organizations, but it generally follows six basic stages.

Does your organization use blockchain storage? Why or why not? Let us know in the comments, and be sure to hit that like button.

#BlockchainStorage #HowBlockchainWorks #EyeOnTech

Read more about blockchain storage here: https://searchStorage.techtarget.com/tip/6-steps-to-how-blockchain-storage-works/?utm_source=youtube&utm_medium=description&utm_campaign=zovwM4jeYMk&offer=video-zovwM4jeYMk

Subscribe to Eye on Tech for more videos covering the latest in business technology, including security, networking, AI, DevOps, enterprise strategy, storage, devices and more:

https://www.youtube.com/EyeOnTech

Stay up to date on the latest storage news: https://searchstorage.techtarget.com/

Follow us on Twitter: https://twitter.com/@TT_Infra

Like us on Facebook: https://www.facebook.com/TechTargetInfrastructure