Skip to content

Code generator for Ness nodes

DESCRIPTION:

Generates ciphers for NESS nodes and NESS node clients Works on ed25519 for keypairs and Blowfish or AES for symmetrical ciphers

DIRECTORIES:

'out/keys/node/.key.json' - generated nodes 'out/keys/user/.key.json' - generated users

USAGE:

Generate user

python codegen.py -ug username 10 "1,blowfish,16;1,aes,8" "Hello World,test"
python codegen.py --user-generate username 10 "1,blowfish,16;1,aes,8" "Hello World,test"
Generates user with username 'username' with 10 keypairs 1,blowfish,16 - generate 1 Blowfish cipher 16 bytes long 1,aes,8 - generate 1 AES cipher 8 bytes long "Hello World,test" - coma separated tags

Show generated user

python codegen.py -us username
python codegen.py --user-show username

Show part of generated user

python codegen.py -usw username
python codegen.py --user-show-worm username

Generate node

python codegen.py -ng http://my-ness-node.net 1 master-user-name "Test,My test node,Hello world"
python codegen.py --node-generate http://my-ness-node.net 24 master-user-name "Test,My test node,Hello world"
  master-user-name - username of existing user, which will became owner of funds of this node
  24 - tariff, ammount of NCH payed to node (master-user address) every 24 hours 
  "Test,My test node,Hello world" - coma separated tags

Show generated node

python codegen.py -ns http://my-ness-node.net
python codegen.py --node-show http://my-ness-node.net

Show part of generated node

python codegen.py -nsw http://my-ness-node.net
python codegen.py --node-show-worm http://my-ness-node.net

Show version

python codegen.py -v
python codegen.py --version

Show this manual

```bash python codegen.py -h python codegen.py --help

Back to top