The NuLink Worker is the node to provide cryptographic service in the NuLink network. It provides Proxy Re-encryption service in the Horus network and it will provide more services such as ABE, IBE, ZKP and FHE in NuLink mainnet. The staker needs running a Worker node to be eligible for token reward.
There are four steps to run a NuLink Worker:
Create Worker Account
Install NuLink Worker
Configure and Run a Worker node
Bond the Worker node with your staking account
Minimum System Requirements
Debian/Ubuntu (Recommended)
30GB available storage
4GB RAM
x86 architecture
Static IP address
Exposed TCP port 9151, make sure it's not occupied
Nodes can be run on cloud infrastructure.
For this worker node im using CPX21 from Hetzner
Installation
Update Depencies
sudoaptupdate&&sudoaptupgrade-ysudoaptinstallufw
Install Latest Docker Engine and Pull Latest Horus Image
wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.10.23-d901d853.tar.gz && tar -xvzf geth-linux-amd64-1.10.23-d901d853.tar.gz
I like to rename it to geth , you can skip this if you want
Rename the directory
mvgeth-linux-amd64-1.10.23-d901d853geth
Go to the geth dir
cdgeth/
Now Create the worker account key by running the command below inside the dir geth
./gethaccountnew--keystore./keystore
You will be prompted to enter the password and confirm the password. Please remember this password for late use.
Example:
INFO [09-08|15:30:11.904]MaximumpeercountETH=50LES=0total=50INFO [09-08|15:30:11.905] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
Yournewaccountislockedwithapassword.Pleasegiveapassword.Donotforgetthispassword.Password:Repeatpassword:YournewkeywasgeneratedPublicaddressofthekey:0x8B1819341BEc211a45a2186C4D0030681cccE0EePath of the secret key file: /root/geth-linux-amd64-1.10.23-d901d853/keystore/UTC--2022-09-13T01-14-32.465358210Z--8b1819341bec211a45a2186c4d0030681ccce0ee
-Youcanshareyourpublicaddresswithanyone.Othersneedittointeractwithyou.-YoumustNEVERsharethesecretkeywithanyone!Thekeycontrolsaccesstoyourfunds!-YoumustBACKUPyourkeyfile!Withoutthekey,it's impossible to access account funds!- You must REMEMBER your password! Without the password, it'simpossibletodecryptthekey!
Create Nulink Directory
cd $HOMEsudomkdirnulink
Copy the keystore file of the Worker account to the host directory. The private file generated by NuLink Worker will also be stored in this directory.
cp $HOME/geth/keystore/* $HOME/nulink
Give the directory 777 Permission
sudochmod-R777 $HOME/nulink
Init Worker
DONT CHANGE THE VALUE OF :
-e NULINK_KEYSTORE_PASSWORD \
Change the --signer and --operator-address to your own!