Questions tagged [blockchain]

The Ethereum blockchain is a distributed database based on the Ethereum whitepaper specification and stores both the full transaction list and the most recent state.

The Ethereum blockchain is in many ways similar to the Bitcoin blockchain, although it does have some differences. The main difference between Ethereum and Bitcoin with regard to the blockchain architecture is that, unlike Bitcoin, Ethereum blocks contain a copy of both the transaction list and the most recent state. Aside from that, two other values, the block number and the difficulty, are also stored in the block.

The approach may seem highly inefficient at first glance, because it needs to store the entire state with each block, but in reality efficiency should be comparable to that of Bitcoin. The reason is that the state is stored in the tree structure, and after every block only a small part of the tree needs to be changed. Thus, in general, between two adjacent blocks the vast majority of the tree should be the same, and therefore the data can be stored once and referenced twice using pointers (ie. hashes of subtrees). A special kind of tree known as a "Patricia tree" is used to accomplish this, including a modification to the Merkle tree concept that allows for nodes to be inserted and deleted, and not just changed, efficiently. Additionally, because all of the state information is part of the last block, there is no need to store the entire blockchain history - a strategy which, if it could be applied to Bitcoin, can be calculated to provide 5-20x savings in space.

A commonly asked question is "where" contract code is executed, in terms of physical hardware. This has a simple answer: the process of executing contract code is part of the definition of the state transition function, which is part of the block validation algorithm, so if a transaction is added into block B the code execution spawned by that transaction will be executed by all nodes, now and in the future, that download and validate block B.

TLDR: Basically, A blockchain is a distributed ledger technology which is visible to all, typically, a blockchain is a collection of similar blocks in the form of connected chains. The block is a bundle of cryptographic hash and transactions, in case of Bitcoin the transaction is the transfer of the cryptocurrency within the network whereas in Ethereum transaction refers to transfer of any data in the form of cryptocurrency, instructions to a device, messages etc.

3282 questions
18
votes
5 answers

What is a blockchain? What is the concept behind it?

I have been going through some docs, and I understand that BlockChains are mostly like the building blocks in an Ethereum network. So, can someone give a dumbed down explanation/definition about what it is, for a starter?
Dawny33
  • 2,007
  • 2
  • 16
  • 27
11
votes
1 answer

What is the actual blockchain size?

I am trying to find the actual size of the etherum blockchain. I just found older posts that says it is around 21GB. What are the Ethereum disk space needs?
honsa
  • 111
  • 1
  • 1
  • 6
9
votes
1 answer

How to prove anything as "mine" on Ethereum?

It's one of the key use cases discussed for blockchain technology, yet I haven't found a tutorial or example of this for Ethereum. Granted I'm a newbie, but could anyone explain the big picture of how to achieve this. In PKC, what I'd do is I'd sign…
candide
8
votes
2 answers

Doesn't ethereum blockchain get too big to be decentralized?

I don't understand how a blockchain that includes code + data can be decentralized, ie duplicated amongst all nodes. Doesn't this one store (The Ethereum Blockchain) can potentially take petabytes of data if it's used by the entire world?
foreyez
  • 241
  • 1
  • 4
7
votes
3 answers

How to host a blockchain decentralised application?

Till now, I have worked on centralised application in which there is one web server and one database server. Now when I started exploring about block-chain, I came to know that it is a decentralised application. Now, question arises in front of me…
Anupam Jain
  • 447
  • 2
  • 8
  • 24
7
votes
3 answers

How can you parse blockchain files stored in a local node to get blocks and transactions details?

I want to get all details of blocks and transactions without using event logs. For example, I want to get a list of of transaction data which are sent to a specific contract. How can I parse local blockchain data? Where can I find the spec of…
Satoshi Nakanishi
  • 5,749
  • 7
  • 38
  • 57
6
votes
3 answers

Is there a Blockchain StackOverflow? As in an alternative to stack overflow which is blockchain-based

Is there a Blockchain StackOverflow.com alternative? I'm wondering if there exists some product, which is basically just stackoverflow but a blockchain platform? Something which cannot be controlled centrally, where perhaps answers are rewarded with…
Outsider
  • 203
  • 1
  • 7
6
votes
4 answers

Find Current Blockchain Size?

How can I find the current blockchain size? (Obviously, I mean without downloading and installing a client, downloading the blockchain, and measuring on disk.) I would also like a way to determine the blockchain size for expanse, ETC, etc.
stone.212
  • 1,994
  • 1
  • 19
  • 38
6
votes
1 answer

what is alt mempool in EIP-4337 (Account Abstraction)

In https://eips.ethereum.org/EIPS/eip-4337, the authors say "Users send UserOperation objects into a separate mempool". i was wondering what it means.. and now, i think that they refer to off-chain memory pool for storing Pending…
윤성민
  • 63
  • 3
5
votes
1 answer

Where are blockchains located?

Where are the actual blockchains for Ethereum located? Are these on End-user computers, or is there specialized computers that hold the blockchains. p.s Is this one blockchain or many blockchains?
foreyez
  • 241
  • 1
  • 4
5
votes
0 answers

What happens is somebody deploys illegal content to the public ETH blockchain?

Once a smart contract is out there on the blockchain, it can't be removed, it can only self-destruct. A smart contract can store around 1.49 GB of data (source: Is there a (theoretical) limit for amount of data that a contract can store?) So what…
Adam Szabo
  • 175
  • 6
4
votes
1 answer

Ethereum Contract access on Private Node

I have set up a private network with one node on Linux virtual machine and one is my local windows pc. I have done the peer adding. and I could see peer is added when I do a admin.peers on both the node. lets call two machines as machine A and…
Karthik S
  • 41
  • 1
4
votes
1 answer

Is there any possible way to change the blockchain size?

Is there any way to choose between Archive, Basic, Fast, Light? And whats the benefit of each size of blockchain. Sorry if I said something wrong, I am new. Thank you
aneom
  • 43
  • 3
4
votes
4 answers

How to build a blockchain?

I want to build a blockchain similar to that of Ethereum but not from scratch. Are there any platforms that allow you to build your blockchain? I have came across MultiChain but not sure whether this is a good choice. Can I get some good platforms…
Prashant Prabhakar Singh
  • 8,026
  • 5
  • 40
  • 79
4
votes
4 answers

Why are contracts in Ethereum Blockchain called as 'Smart Contracts'?

We write smart contracts in ethereum blockchain. How did contracts get its name as Smart Contracts? Why are they called as Smart Contracts?
1
2 3
11 12