2. Setting up BLS Keys

Creating new BLS keys

You will need to generate one or more BLS keys in order to run a validating node. When generating a BLS key, the CLI will ask you to provide a passphrase to encrypt the BLS key file.โ€Œ

./hmy keys generate-bls-keys --count 1 --shard 1 --passphrase

On the command above --count defines the number of BLS keys you want to generate and --shard the shard associated. On this example, we are generating 1 BLS key on shard 1.

triangle-exclamation
circle-info

The BLS public key is the same as the name of the file, without the .key.

Configuring the BLS keys

1. You need to manually create a folder called .hmy/blskeys:

mkdir -p .hmy/blskeys

2. Copy all the previously created BLS key(s)arrow-up-right to this new folder:

cp *.key .hmy/blskeys
circle-exclamation
./hmy --node="https://api.s0.t.hmny.io" utility shard-for-bls [BLS PUBLIC KEY]

3. For each BLS key file, a corresponding <blskey>.pass file needs to be created inside folder.hmy/blskeyswith the passphrase inside it.

following this format :

you should finally have in your .hmy/blskeys folder :

Setting up a standby node with the same BLS key is forbidden

triangle-exclamation

Last updated

Was this helpful?