Before You Install
Before installing the Klaytn package, it is required to create the associated node information to enroll your node URIs. The Kgen package is provided for CC operators, please follow the steps in the order shown below.
- 2.Node Key & Node URI Creation
- 3.Node URI Enrollment
You can find the
kgenbinary file under the
The node key and the node URI are created only once at the beginning. The node URI must be shared with other Core Cells of the Core Cell Network. A CN connects to other CNs and a PN connects to a CN and some PNs using the created node URI. A node URI is created based on the node key by using the downloaded
kgen. The below command line creates
nodekeyas well as
kgentakes the associated IP and Port number as follows.
$ kgen --ip "123.456.789.012" --port 32323 --file
nodekeyis a 64-byte hexadecimal string which is a private key used in the node internally. This private key must be present at the Klaytn data directory and be careful not to lose it.
$ cat nodekey
$ mv nodekey ~/kcnd_home
The created file
node_info.jsonincludes the following contents.
node_info.jsoncontains the node information in a JSON format as follows.
$ cat node_info.json
"NodeURI": "kni://4f2f47f3bf35a2c576d3345e6e9c49b147d510c05832d2458709f63c3c90c76ead205975d944ed65e77dd4c6f63ebe1ef21d60d[email protected]:32323?discport=0"
The created node URI should be enrolled to participate in the Core Cell Network (CCN). The process of the enrollment is as follows.
The enrolled information should be sent to the official Klaytn email address. The format is as follows.
In case of CN,
In case of PN,