Assignment 04 New
Assignment 04 New
*
Assignment 04
Title:
Creation of the Private Ethereum Blockchain
Ethereum Private Network:
Ethereum private network is a private blockchain completely isolated from the main
Ethereum network. Typically, private networks are created by organizations to store personal
data that should not be visible to people outside the organization. In addition, the private
network Ethereum can be used for testing and experiments with the blockchain.
Private Ethereum Blockchain:
● The private network blockchain is not affiliated with the main Ethereum chain.
● Free transactions.
Geth(Go Ethereum):
The implementation of the Go (Golang) for Ethereum is called Geth. This is one of the three
initial implementations of the Ethereum protocol (along with Python and C ++). Choose this
tool if you have at least minimal web development experience and want to experiment or
create professional interfaces for dapps.
Pyethapp:
A Python-based client that implements the “Ethereum crypto economic finite state machine”.
You need to choose if you are interested in developing dapps or academic studies of the
Ethereum network.
Geth(Go Ethereum):
Geth is a command line interface tool (CLI) that connects your system and
equipment to the Ethereum network. With geth you can:
● much more.
After we have installed and synchronized Geth with Ethereum, we can start the launch of a
“private” or “test” network. This is the best way to learn blockchain technologies, as you can
create, deploy and decentralized applications within the Ethereum private network without
spending a single live ether. Moreover, you can create a “fake” ether and use it to carry out a
transaction and initialize smart contracts.
When is strongly recommended to use a separate folder for storing data (database and
wallet) of a private network. This is necessary for Ethereum private network files. Do not
replace files with a public one.
So, we have created a genesis block. Now you can run our private network so that we or
other nodes (if you created several) can add new blocks. To do this, in the Geth console, you
need to initiate the command:
This command instructs Geth to launch a private blockchain. And use the specified directory
("path_to_your_data_directory" replace the address of the desired folder) to access the
running network.
The command also has the identifier "7776". It should be replaced with an arbitrary number
that is not equal to the identifier of the networks already created, for example, the identifier of
the main network Ethereum ("networkid = 1"). The identifier "networkid = 7776" also should
not be used, otherwise you will connect to the network we have created for this guide.
Another important point. Geth does not remember the parameters of your private blockchain
network, so every time you want to access your private chain, you will need to run
There are two types of accounts on the Ethereum network: Externally Owned Accounts
(EOA) and Contracts Accounts. You can find out about their capabilities and differences on
ethdocs.org. To manage our blockchain network, we need EOA. To create it, you need to run
Geth in two windows. In the second window / console enter the following command. Next
you will be asked to set a password, the introduction of which initiates the creation of an
account. It looks like this.Save the created account (a long set of characters in the screenshot),
as you will use it often. In addition, save the passphrase because it will be needed every time
you connect to your account.Next, we need to check the balance status of the account (how
much ether is there). To do this, use the following command:
Mining on the main chain of Ethereum (real) is complex and requires expensive equipment
with powerful graphics processors. Usually ASICs are used for this. However, for the
mining of coins of our chain, any device will be suitable, since in the genesis file we set the
mining difficulty low (difficulty attribute). And remember that this is a fake ether. It can only
be used within your private blockchain for testing transactions, smart contracts, decentralized
applications and other functions.
Conclusion:
You created your first private Ethereum blockchain, and got some ether. This is not real
money and a test network, but the experience gained can be used .