Mina Mainnet
  • Summary
  • Technical Requirements
  • RUSSIAN
    • Создание и проверка ключей
    • Варианты запуска ноды
      • Запуск Mina с Докером
      • Запуск Mina без Докера
    • Обновление ноды для Докера
    • Обновление ноды для Сервиса
    • CLI. Импорт ключа, отправка токенов, делегирование
    • Настройка TMUX
    • Настройка Снарк Стоппера
  • ENGLISH
    • Generating and verifying keys
    • Node launch options
      • Running Mina with Docker
      • Running Mina without Docker
    • Update for Docker
    • Update for Service
    • CLI. Key import, sending tokens
    • Setting up TMUX
    • Setting up Snark Stopper
  • Explorers
  • Mina Explorer from Staketab
  • Mina explorer from @Garethtdavies
  • Related materials
    • Mina Academy from Staketab
    • How to stake MINA from Staketab
    • Troubleshooting guide from @Garethtdavies
    • Docker guide from @Garethtdavies
    • Mina Snark Stopper from @Whataday2day
    • Official Mina docs
Powered by GitBook
On this page
  • 1. Installing
  • Installing packages
  • Installing the key generator
  • 2. Generating keys
  • Option 1 with a package:
  • Option 2 using docker:
  • Set the rights:
  • 3. Key verification
  • Option 1 with a package:
  • Option 2 using docker:
  • 4. Exporting keys

Was this helpful?

  1. ENGLISH

Generating and verifying keys

1. Installing

Installing packages

echo "deb [trusted=yes] http://packages.o1test.net $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/mina.list
sudo apt-get update
sudo apt-get install -y curl unzip mina-mainnet=1.3.0-9b0369c

Installing the key generator

sudo apt-get install mina-generate-keypair=1.3.0-9b0369c

2. Generating keys

When creating keys, you will be asked to create a password.

Option 1 with a package:

mina-generate-keypair -privkey-path ~/keys/my-wallet

Option 2 using docker:

sudo docker run  --interactive --tty --rm --volume $(pwd)/keys:/keys minaprotocol/mina-generate-keypair:1.3.0-9b0369c --privkey-path /keys/my-wallet

Set the rights:

chmod 700 $HOME/keys
chmod 600 $HOME/keys/my-wallet

3. Key verification

When checking the key, you will be asked to enter the password from it.

Option 1 with a package:

mina-validate-keypair -privkey-path ~/keys/my-wallet

Option 2 using docker:

sudo docker run --interactive --tty --rm --entrypoint=mina-validate-keypair --volume $(pwd)/keys:/keys minaprotocol/mina-generate-keypair:1.3.0-9b0369c -privkey-path /keys/my-wallet

In both cases, if everything is ok with your keys, you will receive a message:

Verified a transaction using specified keypair

It means your keys have been verified.

4. Exporting keys

Now let's write your public key to the server in the .bashrc file so that we don't export them again next time.

echo 'export KEYPATH=$HOME/keys/my-wallet' >> $HOME/.bashrc
echo 'export MINA_PUBLIC_KEY=$(cat $HOME/keys/my-wallet.pub)' >> $HOME/.bashrc
source ~/.bashrc
PreviousНастройка Снарк СтоппераNextNode launch options

Last updated 2 years ago

Was this helpful?