Blockchain Wallets

Creating the wallets

Two Bloxberg wallets(ethereum compatible) are required to run an Ethernity node: a data processor wallet and a result processor wallet.

Clone the repository

If you have not done so already, clone the repostiory

git clone https://github.com/ethernity-cloud/mvp-pox-node.git
cd mvp-pox-node

ethkey is a tool written in rust coming from the openetherum project. The compiled binary contains modifications that print the checksummed address which is required for configuration.

Generate the Data Processor wallet

roles/generate_config_file/files/ethkey generate random

secret:  c7ac47a71c2ff61771ee6xyzxyzxyze8ea32e6ea183ad1547281476a4d503ce5
public:  35cd445cfa98995607622e5bd3aabc507ce717724ff981ff62de4e2cde7c31b9343e81a0910f2b65d750d08389784dc77cd916ddff020a6e3e0a70bb9f6c8add
address: 0x451bD91c141aBa49cD2Be184e647dFfd3Dc3B80C

The value of address is attributed to the ADDRESS variable inside the config file, like this:

ADDRESS=0x451bD91c1xyzxyzxyz2Be184e647dFfd3Dc3B80C

The secret represents the private key and is attributed to the PRIVATE_KEY variable inside the config file, like this:

PRIVATE_KEY=c7ac47a71c2ff61771ee632xyzxyzxyzea32e6ea183ad1547281476a4d503ce5

Generate the Result Processor wallet

roles/generate_config_file/files/ethkey generate random

secret:  2d2a0b6f41e1ac78321xyzxyzxyz099ca4968a91c4282c47b9318655fdbd5ced
public:  e93a46465d394892f288c3ebe8a79095e96ede2684228583382429a8ce88edafbfa8d83081b072d5eea3f5b701ad9dd378c00fa2fbc031948b79265997497ce9
address: 0x08Bf8b011xyzxyzxyz99A928336c16D96c42aFe1

Repeating step 2, but this time the value of address is attributed to the RESULT_ADDRESS variable inside the config file, like this:

RESULT_ADDRESS=0x08Bf8b0110DxyzxyzxyzA928336c16D96c42aFe1

The secret represents the private key and is attributed to the RESULT_PRIVATE_KEY variable inside the config file, like this:

RESULT_PRIVATE_KEY=2d2a0b6f41e1xyzxyzxyz3acfb721099ca4968a91c4282c47b9318655fdbd5ced

Run the following commands to create the 'config' file with your generated values:

cat << EOF > config
ADDRESS=0x451bD91c141aBaxyzxyzxyz4e647dFfd3Dc3B80C
PRIVATE_KEY=c7ac47a71c2ff617xyzxyzxyzc40206e8ea32e6ea183ad1547281476a4d503ce5
RESULT_ADDRESS=0x08Bf8b011xyzxyzxyz099A928336c16D96c42aFe1
RESULT_PRIVATE_KEY=2d2a0b6f41e1ac7832xyzxyzxyz1099ca4968a91c4282c47b9318655fdbd5ced
EOF

Store the keypairs safe

The keypairs you are generating represent the identity of your node and you are fully responsible to keep it safe. Do not share this information, or store it unencrypted outside the node configuration.

Funding the wallets

Various options exist to fund the wallets, depending on the network the Ethernity NODE runs on.

Testnet

The testnet is using bloxberg as blockchain infrastructure. The bloxberg faucet can be found at:

https://faucet.bloxberg.org

Just enter your wallet address (including 0x in front) in the form, fill the captcha and you will receive 0.2 bergs. 0.2 bergs is enough to run a few million transactions.

Do the same for both the ADDRESS and the RESULT_ADDRESS.

Last updated