My Research Paper
My Research Paper
Ethereum
Author: Sahil Bansal
Department of Computer Science and Engineering, Panipat Institute of
Engineering and Technology, Haryana, India
Email: [email protected]
Abstract-
If you are actively using internet and like to surf what’s going around, you definitely come up with
the word blockchain. So, I believe that blockchain has the power to revolutionize the internet.
basically, what blockchain do is it makes the whole system completely decentralized which means
there is no one in the middle you can directly send funds from one address to another address
irrespective of banks. In this paper a model is proposed through which you can store your and send
ethers over the Ethereum blockchain with the minimum gas consumed. We have referred certain
papers to come up this project, Transaction fees optimization in the Ethereum blockchain and
Blockchain challenges and opportunities.
Keywords:
Ethereum, Solidity, Smart-contracts, Blockchain, Ethers, State Transition System, Merkle Trees.
List of Abbreviations:
BC: Blockchain, Eth: Ethereum, EVM: Ethereum Virtual Machines, pow: proof of works, pos: proof
of states, dApps: decentralized applications.
1. Introduction:
If you've read anything about technology or digital transformation, you've probably heard a lot
about blockchain. After removing the hype, I believe that blockchain technology, like big data and
the internet, will change many businesses. Looking at the benefits of blockchain, one of the most
significant advantages is that you receive a history of all transactions/activity; it's essentially a
database with history, if you will. Furthermore, there is no central community in charge of the
blockchain; it is fully decentralised, thus there is no single point of access for hackers. So, in
essence, "blockchain is a distributed ledger structured as a linked list of blocks." Each block has an
order set in terms of transactions A typical approach secures the link from a block to its
predecessor using cryptographic hashes."
So, taking this into account we have made a system through which we can send digital currency
from one account to another account irrespective of any fraudulent it’s completely decentralized
and all the transactions that are done can be stored on Ethereum blockchain forever it means no
one can change it or replace it *from the blockchain. So, we prepared this model using sol as our
backend work and for front-end we use react and java script along with HTML and Css. Then we
deploy our sol smart contract on the Ethereum virtual machine. As we know that Ethereum
blockchain is very popular blockchain with over 3,00,000 nodes are connected with the blockchain
which results in the slow transaction and high gas fees. so, we proposed a model in which you can
store your transaction over a Ethereum blockchain with minimum cost and in less amount of time.
2. Literature review
The Blockchain showed up in the New York Times in 2013 alongside Beck Coin, which was
additionally named "Expression of the year" by Oxford Dictionary. Bitcoin began with Bitcoin
(AShared Electronic Cash System) published by Satoshi Nakamoto in October 2008.Since January
2009, it has been utilized as a web-based virtual cash that unreservedly exchanges between nodes by
means of P2P without a middle person. Recently many researchers have published their research in
this field with their own perspective or point of view. Satpal Singh Kushwaha and Sandeep Joshi
has showed how attackers breach the security of smart contract they stated that even a small
mistake can cause you a loss in millions. They also provide some techniques to keep in mind while
writing smart contracts in order to prevent the security breach. Li Duan and Kejia Zhang has
provide the preserved methods in detail for providing security for different types of attacks on
blockchain. Michael Pacheco and Gustavo A. Oliva has presented their word on the blockchain
transaction’s whether the Ethereum transaction must be fast or slow the result of their research is
to make the system which is time and cost effective. In 2020 Seong-kyu Kim and Jun-ho-huh has
developed an auto chain platform which uses expert automatic algorithm used for house renting it’s
basically a Dapp which stores all the house record and buyers’ details on the Ethereum blockchain.
Rabia Musheer Aziz and Mohammed Farhan Baluch has designed a machine learning algorithm
which uses machine learning approach to detect fraud on Ethereum Mainent
3. METHODOLOGY
3.1 React Hooks
React Hooks are new functionsalities introduced in React 16.8. Hooks enable developers to leverage
state and other capabilities without having to write a class. Developers can reuse stateful code using
Hooks without having to update the component system. Furthermore, Hooks help to improve
rendering performance and provide a new approach to mix existing React ideas such as props,
state, and so on.
The following are some common built-in Hooks in React:
checkIfWalletIsConnected: at the start of the programme, the async method is called to see
connected account in rendering the UI. Listing 9 displays the functions's code.
Short- circuiting:
We can employ the short-circuiting technique when an operation uses either || or &&. In order
for the higher-cost action to be bypassed (short-circuited) if the first operation evaluates to true,
the lower-cost operation must come first in this pattern.
Unnecessary libraries:
Libraries can contain a sizable amount of code that is unnecessary for your contract because
they are frequently only imported for a select few usage. It is best to include functionality
imported from a library into your contract if you can do so securely and successfully.
Listing 12. Example containing library
4. Conclusion
The project's purpose was to research decentralised technology blockchain and its main
components, such as smart contracts, as well as to develop a cryptocurrency transfer application
that allows users to send transactions in a quick and simple manner.
Consequently, a React application was created that connects to the blockchain and interacts with
smart contracts using Solidity. Each transaction submitted by the user was accompanied with a Gif
and was permanently recorded on the Ethereum network. The application served as a basic
illustration of how blockchain may be used to provide transparency and trust while also reducing
transaction time and cost. Overall, the project was a success because the author met the objectives
outlined at the outset. this dissertation According to this study, incorporating the blockchain
concept into a React application aided in efficiently assimilating the theories. The application,
which is currently hosted on localhost, can be deployed to the domain for further development.
Using this application, the user can send Ethereum via the blockchain using their own Meta mask
account. Because bitcoin is frequently associated with a significant risk of scam or deception, it is
advised that the application's security and dependability be improved.
Using this application, a user can send transaction from one account to another account across the
globe easily quickly and without spending much on gas fees. In this project we uses many ways
through which we can reduce the cost of sending Ethereum in simple words we write the cost
efficient functions for reducing the gas fees which the fees used for sending Ethereum. We
implement all those techniques inside our sol smart contract.
5. References
1. Tikhomirov, S. (2018). Ethereum: State of Knowledge and Research Perspectives. In: Imine, A., Fernandez, J.,
Marion, JY., Logrippo, L., Garcia-Alfaro, J. (eds) Foundations and Practice of Security. FPS 2017. Lecture Notes
in Computer Science(), vol 10723. Springer, Cham. https://doi.org/10.1007/978-3-319-75650-9_14
2. Atzei, N., Bartoletti, M., Cimoli, T.: A survey of attacks on Ethereum smart contracts (SoK). In: Maffei, M.,
Ryan, M. (eds.) POST 2017. LNCS, vol. 10204, pp. 164–186. Springer, Heidelberg
(2017). https://doi.org/10.1007/978-3-662-54455-6_8
3. Andreev, O.: Proof that proof-of-work is the only solution to the Byzantine generals’ problem
(2014). http://nakamotoinstitute.org/mempool/proof-that-proof-of-work-is-the-only-solution-to-the-byzantine-
generals-problem/
4. Bentov, I., Gabizon, A., Mizrahi, A.: Cryptocurrencies without proof of work. In: Clark, J., Meiklejohn, S.,
Ryan, P.Y.A., Wallach, D., Brenner, M., Rohloff, K. (eds.) FC 2016. LNCS, vol. 9604, pp. 142–157. Springer,
Heidelberg (2016). https://doi.org/10.1007/978-3-662-53357-4_10
5. Bonneau, J., Miler, A., Clark, J., Narayanan, A., Kroll, J.A., Felten, E.W.: Research perspectives and challenges
for Bitcoin and cryptocurrencies. Cryptology ePrint Archive, Report 2015/261
(2015). http://eprint.iacr.org/2015/261
6. Bartoletti, M., Pompianu, L.: An empirical analysis of smart contracts: platforms, applications, and design
patterns. CoRR, abs/1703.06322 (2017)
7. Buchman, E.: Understanding the Ethereum trie
(2014). https://easythereentropy.wordpress.com/2014/06/04/understanding-the-ethereum-trie/
8. Buterin, V.: Long-term gas cost changes for IO-heavy operations to mitigate transaction spam attacks
(2016). https://github.com/ethereum/eips/issues/150
9. Castro, M., Liskov, B.: Practical Byzantine fault tolerance and proactive recovery. ACM Trans. Comput.
Syst. 20(4), 398–461 (2002)
10. Chen, L., Xu, L., Shah, N., Gao, Z., Lu, Y., Shi, W.: Decentralized execution of smart contracts:
agent model perspective and its implications (2017). http://fc17.ifca.ai/wtsc/Decentralized
%20Execution%20of%20Smart%20Contracts%20-%20Agent%20Model%20Perspective
%20and%20Its%20Implications.pdf