LoginSignup
0
0

More than 5 years have passed since last update.

Quorumノードのnodekeyとenodeキーの生成

Last updated at Posted at 2019-01-07

Quorumとは

本家イーサリアムをフォークし、エンターププライズ版に改変したもの。

通常パブリックに公開されているイーサリアムノードも、Quorumを使うことで、プライベートなイーサリアムネットワークを構築することができる。

プライベートなネットワークとは

特定のノードしか疎通し合えないということ。
ノードの特定にはenodeキーを使う。また、enodeキーはnodekeyから作成される。

enodeキーを生成してみる

ethereumパッケージのインストール

ubuntuの場合、以下を実行する。

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository -y ppa:ethereum/ethereum
$ sudo add-apt-repository -y ppa:ethereum/ethereum-dev
$ sudo apt-get update
$ sudo apt-get install ethereum

nodekeyの生成

tmp_file.txtnodekeyを出力する。

$ bootnode -genkey tmp_file.txt

enodeキーの生成

tmp_file.txtnodekeyを元にECDSAで計算されたenodeキーを出力する。

$ bootnode -nodekey tmp_file.txt --writeaddress

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0