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
First of all, you can download the latest version of
kgenpackage depending on your operating systems on Download page.
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.
an address of the associated node
the node key (a.k.a private key)
node_info.jsoncontains the node information in a JSON format as follows.
$ cat node_info.json
"NodeURI": "kni://4f2f47f3bf35a2c576d3345e6e9c49b147d510c05832d2458709f63c3c90c76ea[email protected]123.456.789.012: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.
- 1.Create a node URI using
node_info.json) which contains the associated IP and Port number.
- 2.Send the information to the official Klaytn email address (
[email protected]for Cypress or
[email protected]for Baobab).
The enrolled information should be sent to the official Klaytn email address. The format is as follows.
In case of CN,
CN URI : kni://
In case of PN,
PN URI : kni://