2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Hyperledger Fabric 開発メモ

2
Last updated at Posted at 2019-11-17

はじめに

Hyperledger Fabricを用いた開発をしていて、気になった点をメモしていく。
執筆中。

インストール

Install Samples, Binaries and Docker Imagesの以下のコマンドが何をやっているか

curl -sSL http://bit.ly/2ysbOFE | bash -s -- <fabric_version> <fabric-ca_version> <thirdparty_version>
  • hyperledger/fabric-samplesのレポジトリをclone
  • バージョンを指定した場合はそのバージョンのbranchにチェックアウト
  • Fabric固有のツールのバイナリファイルと設定ファイルをそれぞれ/bin/configディレクトリにインストールする
  • docker imageがインストールされる

/binには以下のバイナリファイルが入る

  • configtxgen
  • configtxlator
  • cryptogen
  • discover
  • idemixgen
  • orderer
  • peer
  • fabric-ca-client

以下のdocker imageがインストールされる

  • fabric-tools
  • fabric-ca
  • fabric-ccenv
  • fabric-orderer
  • fabric-peer
  • fabric-javaenv
  • fabric-zookeeper
  • fabric-kafka
  • fabric-couchdb
  • fabric-baseos

証明書

fabric-samples/first-networkcrypto-config.yamlを変更するとどのordererやpeerの証明書を作成するかを指定できる。

configtxgen

configtxgenツールを用いて、configtx(トランザクションの設定)の作成を行う。

チャネルの作成

peer channel createコマンドを用いてチャネルの作成を行う。
configtxを読み込んで、指定された管理者ユーザーとして署名し、注文者に送信する。

参考文献リスト

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?