Skip to content

Commit

Permalink
puppeth, geth, nodes, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
moniqueticzon committed Apr 8, 2021
1 parent 479b5b5 commit c242c0f
Show file tree
Hide file tree
Showing 81 changed files with 234 additions and 1 deletion.
65 changes: 64 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,64 @@
# blockchain-poa-hw
# Blockchain - Proof of Authority
# Custom Testnet Blockchain
## Environment Setup and Dependencies
* Puppeth - ensure this blockchain service management tools package is installed
* Geth - ensure this is installed to enable Ethereum network transfer and mining ethers
* MyCrypto - ensure this is installed to enable custom testnet
## Accounts and Nodes for the Network
### Custom Node and Network
* Node Name: puppethpoa
* Network Name: puppethpoa
* Chain ID: 234
### Configuration Network
![](screenshots/CL1_configuration.png)
![](screenshots/CL2_export.png)
Before initializing and mining the nodes, the folder should contain the accounts created, puppeth, geth, and the json file.
![](screenshots/CL3_files.png)
![](screenshots/CL4_initialize.png)
### Node 1 (node1poa)
* Address: 0x2266F8EF3b5492f86608c0cf79B2f28f7DA9f907
* Path of the secret key file: node1poa\keystore\UTC--2021-04-07T21-38-25.666655700Z--2266f8ef3b5492f86608c0cf79b2f28f7da9f907
* enode://aa4bfa876b951fbfbd7d0ed4a81efd49ca6f79dca7e6d21d169a3d8af657232841aabfa28a4804142d0bc1f68fe583c6dc02841c5521d581273c563695130b41@127.0.0.1:30303
- This will be entered when preparing node2poa and links the accounts together.
* To Mine:

./geth --datadir node1poa --unlock "{node1poa-address}" --mine --rpc --allow-insecure-unlock

password to enter: yellow

![](screenshots/CL5_node1poa.png)
### Node 2 (node2poa)
* Address: 0x2f40232f58105bf65572eA6E41dD67293F7335C6
* Path of the secret key file: node2poa\keystore\UTC--2021-04-07T21-40-45.609789800Z--2f40232f58105bf65572ea6e41dd67293f7335c6
* To Mine:

./geth --datadir node2poa --unlock "{node2poa-address}" --mine --port 30304 --bootnodes "{node1poa-enode://}" --ipcdisable --allow-insecure-unlock

password to enter: green

![](screenshots/CL6_node2poa.png)
### MyCrypto
* Navigate to the '+ Add Custom Node' on the bottom left
![](screenshots/MC1_add_custom_node.png)
* Enter the required information in the screenshot below and click 'Save & Use Custom Node'
- Node Name: puppethpoa
- Network: Custom
- Network Name: puppethpoa
- Currency: ETH
- Chain ID: 234
- URL: http://127.0.0.1.8545/

![](screenshots/MC2_custom_network.png)
* Be sure that you are connected to the 'puppethpoa' network and click on the 'Keystore File' button to access the wallet
![](screenshots/MC3_puppethpoa_network.png)
* Unlock the wallet by selecting the node1poa keystore file and enter the password: yellow
![](screenshots/MC4_unlock_keystore.png)
* To send a test transaction:
- To Address: {node2poa-address}
- Amount: {number of ETH}
- Transaction Fee: using the sliding scale to choose preference

![](screenshots/MC5_test_transaction.png)

* Check transaction status by checking 'Recent Transactions' (alternatively you can copy the transaction hash and paste it into the 'TX Status' popup):
![](screenshots/MC6_successful_transaction.png)
Binary file added geth.exe
Binary file not shown.
Empty file added node1poa/geth/LOCK
Empty file.
Binary file added node1poa/geth/chaindata/000002.ldb
Binary file not shown.
Binary file added node1poa/geth/chaindata/000005.ldb
Binary file not shown.
1 change: 1 addition & 0 deletions node1poa/geth/chaindata/CURRENT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MANIFEST-000007
1 change: 1 addition & 0 deletions node1poa/geth/chaindata/CURRENT.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MANIFEST-000004
Empty file added node1poa/geth/chaindata/LOCK
Empty file.
32 changes: 32 additions & 0 deletions node1poa/geth/chaindata/LOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
=============== Apr 7, 2021 (PDT) ===============
15:06:45.321981 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:06:45.342816 db@open opening
15:06:45.347702 version@stat F·[] S·0B[] Sc·[]
15:06:45.352026 db@janitor F·2 G·0
15:06:45.352930 db@open done T·8.2586ms
15:06:45.417934 db@close closing
15:06:45.449994 db@close done T·32.0601ms
=============== Apr 7, 2021 (PDT) ===============
15:10:03.969256 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:10:03.969256 version@stat F·[] S·0B[] Sc·[]
15:10:03.970241 db@open opening
15:10:03.970241 journal@recovery F·1
15:10:03.977309 journal@recovery recovering @1
15:10:03.992374 memdb@flush created L0@2 N·15 S·1KiB "\x18\x9e\x19..\xe7ZJ,v4":"ޥ\x15..\x9d\xb0\xae,v5"
15:10:04.008782 version@stat F·[1] S·1KiB[1KiB] Sc·[0.25]
15:10:04.040055 db@janitor F·3 G·0
15:10:04.041052 db@open done T·70.811ms
15:26:11.683229 db@close closing
15:26:11.744210 db@close done T·60.9809ms
=============== Apr 7, 2021 (PDT) ===============
15:38:09.321930 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:38:09.334839 version@stat F·[1] S·1KiB[1KiB] Sc·[0.25]
15:38:09.335781 db@open opening
15:38:09.335781 journal@recovery F·1
15:38:09.346517 journal@recovery recovering @3
15:38:09.365158 memdb@flush created L0@5 N·12 S·921B "Dat..ion,v17":"r\x00\x00..\xa2Z\x8a,v24"
15:38:09.379123 version@stat F·[2] S·1KiB[1KiB] Sc·[0.50]
15:38:09.418016 db@janitor F·4 G·0
15:38:09.418016 db@open done T·82.2357ms
16:01:05.790472 db@close closing
16:01:05.830538 db@close done T·40.066ms
Binary file added node1poa/geth/chaindata/MANIFEST-000007
Binary file not shown.
Empty file.
Empty file.
Binary file added node1poa/geth/chaindata/ancient/bodies.cidx
Binary file not shown.
Empty file.
Binary file added node1poa/geth/chaindata/ancient/diffs.ridx
Binary file not shown.
Empty file.
Binary file added node1poa/geth/chaindata/ancient/hashes.ridx
Binary file not shown.
Empty file.
Binary file added node1poa/geth/chaindata/ancient/headers.cidx
Binary file not shown.
Empty file.
Binary file added node1poa/geth/chaindata/ancient/receipts.cidx
Binary file not shown.
1 change: 1 addition & 0 deletions node1poa/geth/lightchaindata/CURRENT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MANIFEST-000000
Empty file.
8 changes: 8 additions & 0 deletions node1poa/geth/lightchaindata/LOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
=============== Apr 7, 2021 (PDT) ===============
15:06:45.548616 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:06:45.561533 db@open opening
15:06:45.563523 version@stat F·[] S·0B[] Sc·[]
15:06:45.567514 db@janitor F·2 G·0
15:06:45.567514 db@open done T·5.9812ms
15:06:45.615384 db@close closing
15:06:45.618375 db@close done T·2.9913ms
Binary file added node1poa/geth/lightchaindata/MANIFEST-000000
Binary file not shown.
1 change: 1 addition & 0 deletions node1poa/geth/nodekey
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0aad01dfd709c7ee5a0ff9852980a4d45051e7cd0889438a7e6f7570f46534c6
Binary file added node1poa/geth/nodes/000002.ldb
Binary file not shown.
1 change: 1 addition & 0 deletions node1poa/geth/nodes/CURRENT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MANIFEST-000004
1 change: 1 addition & 0 deletions node1poa/geth/nodes/CURRENT.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MANIFEST-000000
Empty file added node1poa/geth/nodes/LOCK
Empty file.
20 changes: 20 additions & 0 deletions node1poa/geth/nodes/LOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
=============== Apr 7, 2021 (PDT) ===============
15:10:04.754985 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:10:04.759971 db@open opening
15:10:04.763964 version@stat F·[] S·0B[] Sc·[]
15:10:04.767948 db@janitor F·2 G·0
15:10:04.767948 db@open done T·7.9771ms
15:26:12.303782 db@close closing
15:26:12.328814 db@close done T·25.0312ms
=============== Apr 7, 2021 (PDT) ===============
15:38:10.002327 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:38:10.003325 version@stat F·[] S·0B[] Sc·[]
15:38:10.003325 db@open opening
15:38:10.003325 journal@recovery F·1
15:38:10.004322 journal@recovery recovering @1
15:38:10.020280 memdb@flush created L0@2 N·4597 S·122KiB "loc..seq,v23":"version,v1"
15:38:10.020280 version@stat F·[1] S·122KiB[122KiB] Sc·[0.25]
15:38:10.031251 db@janitor F·3 G·0
15:38:10.031251 db@open done T·27.9257ms
16:01:05.855198 db@close closing
16:01:05.901279 db@close done T·46.0815ms
Binary file added node1poa/geth/nodes/MANIFEST-000004
Binary file not shown.
Binary file added node1poa/geth/transactions.rlp
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"2266f8ef3b5492f86608c0cf79b2f28f7da9f907","crypto":{"cipher":"aes-128-ctr","ciphertext":"61c8b8a65337754b1b814063c95812b0e1e99d80770c1e25f6a0b390ba2b6758","cipherparams":{"iv":"c408fb7d1eb9f7bc344044f4644c51f1"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"a2c0240f41ecd0da67898a7d359478f663829b5268f5c62e3c07a92cf9c41cdf"},"mac":"b186c089f20877a7bcea733c1de8386ee2ae4ce08727b5c78243da2a926b7b24"},"id":"2a52284b-e3cd-4e6d-b216-3bd4299a0c65","version":3}
Empty file added node2poa/geth/LOCK
Empty file.
Binary file added node2poa/geth/chaindata/000002.ldb
Binary file not shown.
Binary file added node2poa/geth/chaindata/000005.ldb
Binary file not shown.
1 change: 1 addition & 0 deletions node2poa/geth/chaindata/CURRENT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MANIFEST-000007
1 change: 1 addition & 0 deletions node2poa/geth/chaindata/CURRENT.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MANIFEST-000004
Empty file added node2poa/geth/chaindata/LOCK
Empty file.
32 changes: 32 additions & 0 deletions node2poa/geth/chaindata/LOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
=============== Apr 7, 2021 (PDT) ===============
15:07:02.184257 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:07:02.192819 db@open opening
15:07:02.194782 version@stat F·[] S·0B[] Sc·[]
15:07:02.196776 db@janitor F·2 G·0
15:07:02.196776 db@open done T·3.9568ms
15:07:02.211795 db@close closing
15:07:02.225874 db@close done T·14.0793ms
=============== Apr 7, 2021 (PDT) ===============
15:12:56.498888 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:12:56.498888 version@stat F·[] S·0B[] Sc·[]
15:12:56.498888 db@open opening
15:12:56.499886 journal@recovery F·1
15:12:56.506018 journal@recovery recovering @1
15:12:56.530665 memdb@flush created L0@2 N·15 S·1024B "\x18\x9e\x19..\xe7ZJ,v4":"ޥ\x15..\x9d\xb0\xae,v5"
15:12:56.539668 version@stat F·[1] S·1024B[1024B] Sc·[0.25]
15:12:56.559515 db@janitor F·3 G·0
15:12:56.559515 db@open done T·60.627ms
15:26:07.828684 db@close closing
15:26:07.881962 db@close done T·53.2782ms
=============== Apr 7, 2021 (PDT) ===============
15:39:35.895631 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:39:35.896660 version@stat F·[1] S·1024B[1024B] Sc·[0.25]
15:39:35.896660 db@open opening
15:39:35.896660 journal@recovery F·1
15:39:35.903640 journal@recovery recovering @3
15:39:35.918031 memdb@flush created L0@5 N·12 S·923B "Dat..ion,v17":"r\x00\x00..ש\xeb,v24"
15:39:35.927079 version@stat F·[2] S·1KiB[1KiB] Sc·[0.50]
15:39:35.940513 db@janitor F·4 G·0
15:39:35.940513 db@open done T·43.8529ms
16:01:10.969645 db@close closing
16:01:11.001182 db@close done T·31.5373ms
Binary file added node2poa/geth/chaindata/MANIFEST-000007
Binary file not shown.
Empty file.
Empty file.
Binary file added node2poa/geth/chaindata/ancient/bodies.cidx
Binary file not shown.
Empty file.
Binary file added node2poa/geth/chaindata/ancient/diffs.ridx
Binary file not shown.
Empty file.
Binary file added node2poa/geth/chaindata/ancient/hashes.ridx
Binary file not shown.
Empty file.
Binary file added node2poa/geth/chaindata/ancient/headers.cidx
Binary file not shown.
Empty file.
Binary file added node2poa/geth/chaindata/ancient/receipts.cidx
Binary file not shown.
1 change: 1 addition & 0 deletions node2poa/geth/lightchaindata/CURRENT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MANIFEST-000000
Empty file.
8 changes: 8 additions & 0 deletions node2poa/geth/lightchaindata/LOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
=============== Apr 7, 2021 (PDT) ===============
15:07:02.287333 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:07:02.295314 db@open opening
15:07:02.296329 version@stat F·[] S·0B[] Sc·[]
15:07:02.299302 db@janitor F·2 G·0
15:07:02.299302 db@open done T·3.9883ms
15:07:02.317254 db@close closing
15:07:02.320247 db@close done T·2.9932ms
Binary file added node2poa/geth/lightchaindata/MANIFEST-000000
Binary file not shown.
1 change: 1 addition & 0 deletions node2poa/geth/nodekey
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
839e3b6285ffc6ced6d30da418f94265e47ea232f03e59723d8f1226f459d48a
Binary file added node2poa/geth/nodes/000002.ldb
Binary file not shown.
1 change: 1 addition & 0 deletions node2poa/geth/nodes/CURRENT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MANIFEST-000004
1 change: 1 addition & 0 deletions node2poa/geth/nodes/CURRENT.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MANIFEST-000000
Empty file added node2poa/geth/nodes/LOCK
Empty file.
20 changes: 20 additions & 0 deletions node2poa/geth/nodes/LOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
=============== Apr 7, 2021 (PDT) ===============
15:12:57.259128 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:12:57.264689 db@open opening
15:12:57.265815 version@stat F·[] S·0B[] Sc·[]
15:12:57.267680 db@janitor F·2 G·0
15:12:57.268707 db@open done T·4.0185ms
15:26:07.938908 db@close closing
15:26:07.998431 db@close done T·59.523ms
=============== Apr 7, 2021 (PDT) ===============
15:39:36.387103 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
15:39:36.387103 version@stat F·[] S·0B[] Sc·[]
15:39:36.387103 db@open opening
15:39:36.388101 journal@recovery F·1
15:39:36.388101 journal@recovery recovering @1
15:39:36.410203 memdb@flush created L0@2 N·3097 S·87KiB "loc..seq,v26":"version,v1"
15:39:36.410203 version@stat F·[1] S·87KiB[87KiB] Sc·[0.25]
15:39:36.421143 db@janitor F·3 G·0
15:39:36.421143 db@open done T·34.0404ms
16:01:11.015093 db@close closing
16:01:11.042341 db@close done T·26.9274ms
Binary file added node2poa/geth/nodes/MANIFEST-000004
Binary file not shown.
Empty file added node2poa/geth/transactions.rlp
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"2f40232f58105bf65572ea6e41dd67293f7335c6","crypto":{"cipher":"aes-128-ctr","ciphertext":"b00cfc5706bb2c61dce5b083d1516b0bc60e263ee098b0f9d88de589ecd7c444","cipherparams":{"iv":"05633839d24149f294b70286872a4e74"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"499f54987f72465ef23b6d3e8488926c556aa6fb7ca3f88c7cfeedc76fab28ee"},"mac":"9a74ac277a726d87e9d6755314b0b2550d2ccd30961803abe04238837f8519fd"},"id":"218cd9e2-0b70-4573-a4dd-f920b127e303","version":3}
Binary file added puppeth.exe
Binary file not shown.
36 changes: 36 additions & 0 deletions puppethpoa.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"config": {
"chainId": 234,
"homesteadBlock": 0,
"eip150Block": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"clique": {
"period": 15,
"epoch": 30000
}
},
"nonce": "0x0",
"timestamp": "0x606e27a1",
"extraData": "0x00000000000000000000000000000000000000000000000000000000000000002266f8ef3b5492f86608c0cf79b2f28f7da9f9072f40232f58105bf65572ea6e41dd67293f7335c60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x47b760",
"difficulty": "0x1",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": {
"2266f8ef3b5492f86608c0cf79b2f28f7da9f907": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
},
"2f40232f58105bf65572ea6e41dd67293f7335c6": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
}
},
"number": "0x0",
"gasUsed": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
Binary file added screenshots/CL1_configuration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/CL2_export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/CL3_files.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/CL4_initialize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/CL5_node1poa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/CL6_node2poa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/MC1_add_custom_node.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/MC2_custom_network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/MC3_puppethpoa_network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/MC4_unlock_keystore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/MC5_test_transaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/MC6_successful_transaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/created_accounts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c242c0f

Please sign in to comment.