Skip to content

How to run Nitro Testnode in Production? #156

@air3ijai

Description

@air3ijai

Hello,

We are checking how to run Nitro Testnode for internal use and we have just two guides for that

  1. Docs - How to run a local full chain simulation
  2. Repository - README.md

However, in the docs, we have a warning
Image

It would be good to provide more information, or even simplify, how to run Nitro Testnode in Production or in a secure way by replacing all the addresses

Make it more ready for Production

List of addresses and private keys to be replaced

  1. Dev account (prefunded with ETH in all networks)

    • docker-compose.yaml - geth.unlock and geth.miner.etherbase
    • test-node.bash - devprivkey
    • scripts/config.ts - gethConfig
    • scripts/index.ts - l2owner
  2. L1 genesis addresses

    • scripts/config.ts - gethConfig
  3. Rest of the addresses (Sequencer, Validator, L2 rollup owner, L3 rollup owner, L3 sequencer)

    • scripts/consts.ts - l1mnemonic (l1passphrase is hard-coded in other place and does not affect security)
  4. Name based user_ accounts

    • scripts/accounts.ts - (name) --> (name + "<random string>")
  5. Geth jwt secrets - scripts/config.ts - jwt and val_jwt

  6. Batch poster

    • scripts/config.ts - baseConfig.batch-poster.redis-signer.signing-key

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions