Aligned Layer

Aligned layer It's a proof verification layer developed on top of the EigenLayer using restaking and proof aggregation. This will enable cost-effective verification of any SNARK proof, leveraging Ethereum validators' security without the limitations of Ethereum.

Validator installation

Requirement

  • Hardware

    • CPU : 4 Core

    • Memory : 16 GB

    • Disk : 160 GB

Installation

## Install Go
cd $HOME
VERSION=1.21.3
wget -O go.tar.gz https://go.dev/dl/go$VERSION.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go.tar.gz && rm go.tar.gz
echo 'export GOROOT=/usr/local/go' >> $HOME/.bash_profile
echo 'export GOPATH=$HOME/go' >> $HOME/.bash_profile
echo 'export GO111MODULE=on' >> $HOME/.bash_profile
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile && . $HOME/.bash_profile
go version

#install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env

#install Ignite CLI
curl https://get.ignite.com/cli | bash
sudo mv ignite /usr/local/bin/
ignite version

#install binary
rm -rf $HOME/aligned_layer_tendermint
git clone https://github.com/yetanotherco/aligned_layer_tendermint.git
cd $HOME/aligned_layer_tendermint
make build-linux

# set variable
echo "export ALIGNED_MONIKER=idekubagus" >> $HOME/.bash_profile
echo "export ALIGNED_WALLET=idekubagus-key" >> $HOME/.bash_profile
echo "export ALIGNED_CHAIN_ID=alignedlayer" >> $HOME/.bash_profile
source $HOME/.bash_profile

#Setup Node
cd $HOME/aligned_layer_tendermint
export PEER_ADDR=91.107.239.79,116.203.81.174,88.99.174.203,128.140.3.188 $ALIGNED_MONIKER
bash setup_node.sh

#Update Peers
peers=$(curl -s https://raw.githubusercontent.com/nodesynctop/Alignedlayer/main/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.alignedlayer/config/config.toml

# create service file
sudo tee /etc/systemd/system/alignedlayerd.service > /dev/null <<EOF
[Unit]
Description=Alignedlayer node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.alignedlayer
ExecStart=$(which alignedlayerd) start --home $HOME/.alignedlayer
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

#start service
sudo systemctl daemon-reload
sudo systemctl enable alignedlayerd
sudo systemctl restart alignedlayerd && sudo journalctl -u alignedlayerd -fo cat

Create Wallet

##Create new wallet
alignedlayerd keys add $ALIGNED_WALLET

##Recovery old wallet
alignedlayerd keys add $ALIGNED_WALLET --recover

##Save wallet and validator address
ALIGNED_WALLET_ADDRESS=$(alignedlayerd keys show $ALIGNED_WALLET -a)
ALIGNED_VALOPER_ADDRESS=$(alignedlayerd keys show $ALIGNED_WALLET --bech val -a)
echo "export WALLET_ADDRESS="$ALIGNED_WALLET_ADDRESS >> $HOME/.bash_profile
echo "export VALOPER_ADDRESS="$ALIGNED_VALOPER_ADDRESS >> $HOME/.bash_profile
source $HOME/.bash_profile

Registering as a Validator

#check your validator status
alignedlayerd status 2>&1 | jq
##or you can use this
curl localhost:26657/status | jq

#make sure your node is sysnced to the latest height "catching_up: false"

#registering your validator
cd $HOME/aligned_layer_tendermint
bash setup_validator.sh <account-name-or-address> 1050000stake

Delete Node

sudo systemctl stop alignedlayerd
sudo systemctl disable alignedlayerd
sudo rm -rf /etc/systemd/system/alignedlayerd.service
sudo rm $(which alignedlayerd)
sudo rm -rf $HOME/.alignedlayer

Last updated