Questions tagged [architecture]

Questions about Ethereum's architecture. Check tags such as dapp-development, contract-design, and design-patterns if they may fit better.

Filter by
Sorted by
Tagged with
1
vote
1answer
38 views

What is the tech stack behind the Teku client?

What are Teku's major components? What databases did it consider and decide on? Are there architectural elements and market goals that are particularly differentiated from how other beacon chain ...
4
votes
1answer
176 views

What is the tech stack behind the Prysm client?

What are Prysm's major components? What databases did Prysm consider and decide on? Are there elements in Prysm's architecture that are particularly differentiated from the other beacon chain ...
2
votes
1answer
27 views

What is the tech stack behind the Lighthouse client?

What are Lighthouse's major components? What databases did it consider and decide on? Are there elements in its architecture that are particularly differentiated from how other beacon chain clients ...
0
votes
0answers
36 views

Bunch of Smart contracts with Ownerships and User fees free transfers

I need a community advise on how to organize smart contracts architecture. So what we have: Users who have not eth and wallets. Users generate actions which involves token transfers. Users don't care ...
5
votes
1answer
93 views

What is an SSZ partial?

What is an SSZ partial? What are its benefits and are there any existing similar concepts that would help in understanding it? Some references: https://github.com/ethereum/eth2.0-specs/pull/1184/...
0
votes
1answer
59 views

Smart contract architecture [closed]

I want to write the smart contract architecture for a new smart contract on Ethereum ERC20, how can I do that, and what does it mean smart contract architecture.
2
votes
1answer
486 views

How State variable are stored and updated?

The Smart contract and the state variables are stored in the blockchain, let us say during deployment of a smart contract the state variable and smart contracts are stored in the block 1, and in ...
0
votes
1answer
151 views

Data availability in Ethereum/Hyperledger-fabric (Blockchain)

I have a use-case like there is an admin who creates application and invites several user to use that application. Now, i need to audit trail over the activities done by the user. Users no need to ...
1
vote
0answers
159 views

How to update react component state with Drizzle

I'm using react and drizzle and want to update the classes state based on data returned from a call to a contract. I'm using the standard pattern from the drizzle box and here (https://itnext.io/how-...
1
vote
0answers
39 views

Deploy many instances of configured base contracts or track multiple agreements on one contract?

I am playing around with solidity, truffle, and node and i was wondering if I am trying to make a game that allows players to browse a list of games and join the ones they want. Would it be best to ...
3
votes
3answers
529 views

EVM - How is it connected to the Blockchain? [duplicate]

I have a few problems understanding the software architecture of the Blockchain. For me Blockchain is the database where all transactions, receipts, balances, etc are stored. But how is the connection ...
2
votes
1answer
188 views

Modify Struct on Upgradeable Smart Contracts

I have reviewed some techniques around Upgradeable smart contracts from starting point(Elena Dimitrova's Eternal Storage) to zeppelinOS's Unstructured Storage pattern. As I understood from posts that ...
3
votes
2answers
111 views

Wouldn't a 64bit-based EVM be more efficient on the Ethereum Ecosystem?

As the Ethereum Rationale design says: 32 byte word size - the alternative is 4 or 8 byte words, as in most other architectures, or unlimited, as in Bitcoin. 4 or 8 byte words are too restrictive ...
1
vote
1answer
101 views

Is there a “Desktop Dapp”?

The most of "decentralized applications" are a "web" application as follows : Front End (usually JavaScript) => Smart Contract (usually Solidity) => Blockchain (usually Ethereum) Is this the ...
3
votes
1answer
292 views

How do the ethereum components work together

hy i have been reading about the ethereum project and its components, i understand that there are 3 major components (EVM, swarm, whisper) Swarm is a peer to peer data sharing network in which files ...
1
vote
0answers
54 views

Enterprise Ethereum Alliance - Enterprise Ethereum Architecture Stack (EEAS)

I read through the just released EEA Stack and Specification accessible at https://entethalliance.org/wp-content/uploads/2018/05/EEA-Architecture-Stack-Spring-2018.pdf It is a great first step in the ...
0
votes
0answers
41 views

Push Transfer of minted tokens

How can I create a single function which on its own, will reward an address with minted tokens if a certain time condition is met? Every time I try, I can only get it to work if I create two functions ...
2
votes
1answer
50 views

Duplicating data on server and contract

If I'm building a dapp, is it worthwhile to store information that is in the contract on a server for speed purposes, and only using the contract to track ownership of tokens. I.e. for something ...
2
votes
3answers
350 views

Doesn't having a centralised front end pose a huge security risk to an Ethereum app?

My understanding is that the typical architecture for an Ethereum app is to have a smart contract acting as a backend to a centralized, stateless front end which runs on a single server. Doesn't this ...
1
vote
2answers
94 views

Are Speed Bumps safe to delay contract action?

In the Ethereum Wiki it is stated that you can delay a smart contract's action in this defined way : struct RequestedWithdrawal { uint amount; uint time; } mapping (address => uint) private ...
1
vote
1answer
356 views

codeHash variable value

It is stated in the Ethereum yellow paper: codeHash: The hash of the EVM code of this account—this is the code that gets executed should this address receive a message call; it is immutable ...
2
votes
0answers
290 views

Limitation on amount of data that can be sent on Geth

We are creating a small private network with the purpose of sharing data. We thought that the main concern about writing large amounts of data in Ethereum would be the gas cost, which is not a problem ...
4
votes
2answers
1k views

What is the timestamp of a confirmed transaction based on?

Specifically, if we look at any transaction on the Ethereum blockchain, is the TimeStamp based on when the transaction is generated (like when you click generate transaction on MEW), or is it based on ...
7
votes
6answers
1k views

What would happen if EVM didn't exist in Ethereum?

It's not clear to me the importance of the Ethereum Virtual Machine and why it is used. So it is natural to ask what would happen if EVM didn't exist? or Ethereum didn't use it.
36
votes
2answers
22k views

What is nonce in Ethereum? How does it prevent double spending?

recently I got fascinated by blockchain, and started learning Ethereum. I came across the concept of the nonce in Ethereum. After researching I found out that nonce is used for two purposes. a. To ...
1
vote
1answer
404 views

Flow of Transactions and following State Changes (in respect to the blockchain)

Something rather basic I am not getting - Say I lay a transaction aimed to change the state of a smart contract, which in turn will interact with other contracts etc. until it reaches a halt. ...
1
vote
0answers
105 views

What (distributed) mechanism for broadcasting transactions and messages does Ethereum's P2P implement? [duplicate]

What (distributed) mechanism for broadcasting transactions and messages does Ethereum's P2P implement? I know that each node on the Ethereum network is only connected to a (small) subset of the other ...
0
votes
1answer
722 views

Transaction, block and mining

I'm looking for a detailed explanation (video would be the best) how and when transaction is being mined on Ethereum network (in theory), since the moment it's created with web3.eth.sendTransaction(). ...
1
vote
1answer
82 views

Why other blockchain would be better for monetary purposes than Ethereum? [closed]

I have seen a comment multiple times that other blockchains would be better for storing value in monetary purposes than Ethereum. Why is that said? UTXO? Volatility? The comment has been brought up ...
6
votes
1answer
3k views

Why did Ethereum design Ethash instead of using an existing memory-hard hash function?

Ethereum uses the Ethash hash function for proof-of-work. It was designed specifically for this purpose by Vitalik based on previous work by Thaddeus Dryja. The main rule they teach you in a crypto ...
5
votes
2answers
121 views

State of knowledge / research directions academic paper

The SoK paper by Bonneau et al provides a good overview of the state of knowledge (as of 2015) and research directions for Bitcoin. Is there anything similar for Ethereum?
3
votes
1answer
214 views

Architecture for business application

I'm building a business application (in a private ethereum network) in which certain users should be able to perform some transactions. The thing is that the blockchain authentication is hard to ...
2
votes
1answer
637 views

Why setting balanceOf instead of just using public variable in ERC20 tokens?

Good day, ERC20 specify the following 2 functions as its most important ones: function balanceOf(address _owner) constant returns (uint256 balance){} function transfer(address _to, uint256 _value) ...
4
votes
3answers
3k views

SafeMath safe add function assertions against overflows

Looking at the following safeAdd function, which is common in many smart contracts out there, it seems that only a and c are compared. But can't it be that b will be the uint that will cause an ...
2
votes
1answer
830 views

Is there a layered architecture diagram for Ethereum?

I wonder if there is a layered architecture diagram for Ethereum that shows from the lowest level to the highest level like the one of Java (http://docs.oracle.com/javase/8/docs/index.html)? It could ...
2
votes
1answer
324 views

Proof of Work validation

I am not too understanding this equation. Do any one know it? Especially what is m stand for since I cannot get it from the paper. Thanks
1
vote
1answer
2k views

How a contract stored in the blockchain? [duplicate]

I am very wondering how the contract code stored in the blockchain? I think the blockchain only contain a group of transactions and some meta data. Am I wrong? Thanks
3
votes
0answers
573 views

Does this architecture violate a Dapp-philosophy?

Sorry for my English, again... First I wanted to place this post on Etherium Reddit. If it needs to be there, just close this question... I need to implement this logic: From Wallet 1 user ...
2
votes
1answer
614 views

Can we connect 2 or more private block chains? [duplicate]

Lets say there are 2 organizations and each have their own private block chains in a different geographical region. Now they need to have a collaboration and share some part of the data between them. ...
4
votes
1answer
135 views

How to securely Interact with a contract on user's behalf from centralized server?

To explain myself, what I need is to be able to have a way so that the central server can only interact with the contract only with valid identification from a user? This identification provided by ...
2
votes
1answer
112 views

Why does the blockchain store multiple copies of the same code?

Based on joeykrug's questions on Github: Is there any reason we need to store multiple copies of code if the same contracts use the same code? For example, if a contract is deployed and another ...
7
votes
1answer
104 views

Are there multiple instances of Ethereum state or a single latest image?

Are there multiple instances of Ethereum's state? That is, is there one per mined block? Or a single latest image? Does Ethereum maintain a state snapshot, for every block since genesis, so that ...
2
votes
1answer
770 views

What is the Ethereum network architecture? What are the major components of this?

I'm looking for a visual (preferred) or a description of what Ethereum "looks" like to a network architect. For example, in contrasting Bitcoin, it consists of: "Full nodes" runs C++ code Uses QT ...
24
votes
2answers
4k views

What is the merit of creating new smart contract languages like Solidity instead of using other languages?

What is the pros and cons of creating new languages like Solidity for smart contracts instead of using other computer languages like Golang or Python?
8
votes
2answers
6k views

What diagrams exist to illustrate the Ethereum blockchain creation process?

I have found the below diagram (and this explanation) useful in understanding how blockchains work in general: [Illustration by Matthäus Wander (Wikimedia)] This answer goes on to say that ...
13
votes
1answer
832 views

Why are contracts limited to only the previous 256 block hashes?

Why are contracts limited to only the previous 256 block hashes using the BLOCKHASH opcode (and corresponding functions in Solidity and Serpent)? Why does another contract, such as this, need to be ...
44
votes
3answers
13k views

What are the pros and cons of Ethereum balances vs. UTXOs?

Ethereum has a simpler model by not having UTXOs (Unspent Transaction Outputs) like Bitcoin. What does Ethereum "give up" by not having UTXOs, and what does it gain?