This repository contains two helper tools:
- votingkey.py - this is alternative voting key file generator
- generate.py - actual catapult.server configuration generator, that will be described below
python3 -m pip install -r requirements.txt
Generator tool assumes that in working directory, there is directory called certificates
that contains:
ca.pubkey.pem
ca.crt.pem
node.full.crt.pem
node.crt.pem
node.key.pem
When running with --harvesting
switch, generator tool additionally expects:
private.harvesting.txt
andprivate.vrf.txt
, containing respectively harvesting private key and vrf private key in hex ORprivate.harvesting.pem
andprivate.vrf.pem
pem files, containing private keys, if pem files are password protected--ask-pass
switch needs to be present
When running with --voting
switch, generator tool additionally expects voting key file:
private_key_tree*.dat
- the file will be MOVED to destination directory,
note: in case of --voting
if destination directory contains file with given name, the index will be incremented, until "empty" one
will be found
All examples assume the script is started from PARENT directory
python3 symbol-node-configurator/generator.py --mode api --output ../settings
To create a configuration for harvesting node two files are needed, with keys in hex:
-
private.harvesting.txt
-
private.vrf.txt
echo "C0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FF" > private.harvesting.txt echo "B007B007B007B007B007B007B007B007B007B007B007B007B007B007B007B007" > private.vrf.txt python3 symbol-node-configurator/generator.py --mode peer --output ../settings
echo "C0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FF" > private.harvesting.txt
echo "B007B007B007B007B007B007B007B007B007B007B007B007B007B007B007B007" > private.vrf.txt
python3 symbol-node-configurator/generator.py --mode peer --output ../settings --voting
echo "C0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FFEC0FF" > private.harvesting.txt
echo "B007B007B007B007B007B007B007B007B007B007B007B007B007B007B007B007" > private.vrf.txt
python3 symbol-node-configurator/generator.py --mode dual --output ../settings --voting