moscow-project
Concept1
Using "to" field https://github.com/Onther-Tech/moscow-pseudo-code/blob/master/concept1.pseudo.py
Concept2
Using "delegatee" field https://github.com/Onther-Tech/moscow-pseudo-code/blob/master/concept2.pseudo.py
Using "to" field https://github.com/Onther-Tech/moscow-pseudo-code/blob/master/concept1.pseudo.py
Using "delegatee" field https://github.com/Onther-Tech/moscow-pseudo-code/blob/master/concept2.pseudo.py
# 1-2. subtract upfront cost(only gasLimit * gasPrice) from delegatee
: https://github.com/ethereum/pyethereum/blob/28ac6d07dae776547ebb9ac08fb220785f53d838/ethereum/messages.py#L205-L207
# 1-3. substract upfront cost(only value)
:
https://github.com/ethereum/pyethereum/blob/28ac6d07dae776547ebb9ac08fb220785f53d838/ethereum/messages.py#L355-L359
# 1-5. collect refunded gas to delegatee
: https://github.com/ethereum/pyethereum/blob/28ac6d07dae776547ebb9ac08fb220785f53d838/ethereum/messages.py#L256
Target Source Code : https://github.com/ethereum/py-evm
concept1 | concept2 | rmks | |
---|---|---|---|
delegated tx EVM | 2 (line17 and line39) | 2 (line20 and line29) | |
non-delegated tx EVM | 2 (line17 and line39) | 1 (line56) | |
tx structure modified | false | true |
In concept1, EVM codes executed twice whether the tx is delegated or not, so concept1 is more slower.
As we already know, vm_execute uses many if statement
as many as opcodes included in tx.
However, if we choose concept2, tx structure
should be modified in order to store txs in blocks.
Let's consider which one is more simple to implement and more efficient.
Based on this, we need a .sol file.
https://docs.google.com/spreadsheets/d/1p2zlGUOpp3w1wHYjLuangxh2TyToQigbD-7Ul9GzHT4/edit?usp=sharing
From each implementations.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.