Update step for getting private key in docs

This commit is contained in:
Shreerang Kale 2025-05-16 13:58:54 +05:30
parent e4803f0435
commit fbdb598e79
4 changed files with 26 additions and 19 deletions

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
*-deployment
*-spec.yml
output
# Playbook vars
*-vars.yml

View File

@ -7,6 +7,14 @@
## Generate mainnet genesis file
- Get your private key from testnet deployment:
```bash
laconic-so deployment --dir <testnet-deployment-dir> exec laconicd "laconicd keys export <key-name> --unarmored-hex --unsafe"
```
NOTE: Store this key securely as it is needed in later steps
- Stop the node for SAPO testnet:
```bash
@ -63,15 +71,6 @@
## Run node
- Get your private key from testnet deployment:
```bash
# Replace <testnet-deployment-dir> with the absolute path to the testnet deployment directory and <key-name> with the name of your key
docker run -it \
-v <testnet-deployment-dir>/data/laconicd-data:/root/.laconicd \
cerc/laconicd:local bash -c "laconicd keys export <key-name> --unarmored-hex --unsafe"
```
- Copy the example variables file if not already done:
```bash

View File

@ -7,6 +7,14 @@
## Run node
- Get your private key from testnet deployment:
```bash
laconic-so deployment --dir <testnet-deployment-dir> exec laconicd "laconicd keys export <key-name> --unarmored-hex --unsafe"
```
NOTE: Store this key securely as it is needed in later steps
- Stop the node for SAPO testnet:
```bash
@ -63,15 +71,6 @@
## Create Validator
- Get your private key from testnet deployment:
```bash
# Replace <testnet-deployment-dir> with the absolute path to the testnet deployment directory and <key-name> with the name of your key
docker run -it \
-v <testnet-deployment-dir>/data/laconicd-data:/root/.laconicd \
cerc/laconicd:local bash -c "laconicd keys export <key-name> --unarmored-hex --unsafe"
```
- Export required env vars:
```bash

View File

@ -12,6 +12,16 @@ if [ ! -f "$staking_amount_file" ]; then
exit 1
fi
if [-z "$KEY_NAME" ]; then
echo "KEY_NAME environment variable not set, exiting..."
exit 1
fi
if [ -z "$CERC_MONIKER" ]; then
echo "CERC_MONIKER environment variable not set, exiting..."
exit 1
fi
# Set staking amount
stake_amount=$(jq -r '.common_staking_amount' "$staking_amount_file")