N
N
Nodle Chain Wiki
Search…
Creating a Root Certificate or Key
You need to generate the following:
  1. 1.
    A secret key for your Root Certificate.
  2. 2.
    A SS58 encoded public key of the Root Certificate.
The best way to do so is by using a tool called subkey which is provided by Parity Substrate. After this, you can generate and register your Root Key.

Installing subkey

If these instructions do not work please refer to the Parity Susbstrate installation instructions.

Setup a Rust development environment

Download and install Rust

1
curl https://sh.rustup.rs -sSf | sh
2
source ~/.cargo/env
Copied!

Setup the toolchains

1
rustup default stable
2
rustup install nightly
Copied!

Clone and build Parity Substrate (which contains subkey)

1
git clone https://github.com/paritytech/substrate
2
cd substrate
3
cargo install --path bin/utils/subkey
Copied!

Generate and Register the Root Key

Just use subkey generate --scheme ed25519. It will display a private key ("Secret Seed") and the ss58 encoded public key.
Registering a key on the chain involves having a wallet on it, please create one and fund it with a small amount of Nodle Cash, this needs to be the wallet that has been granted access to the PKI system previously:
Once this is done, open the Web UI and then:
  1. 1.
    Head over to "Developers" and then "Submit an Extrinsic".
  2. 2.
    Submit the call pkiRootOfTrust.bookSlot(the SS58 key you generated before).
Last modified 10mo ago