Getting Started Hyperledger Fabric ハイパー元帳ファブリックを始める

Getting Started Hyperledger Fabric
ハイパー元帳ファブリックを始める

Before we begin, if you haven’t already done so, you may wish to check that you have all the Prerequisites installed on the platform(s) on which you’ll be developing blockchain applications and/or operating Hyperledger Fabric.
我々が始める前に、もしあなたがすでにそうしていないなら、あなたがブロックチェーンアプリケーションを開発そして/あるいはハイパー元帳ファブリックの運用をしているプラットホーム上にインストールされるすべての前提条件があることを調べることをあなたは望むかもしれません。

Once you have the prerequisites installed, you are ready to download and install HyperLedger Fabric. While we work on developing real installers for the Fabric binaries, we provide a script that will Install Samples, Binaries and Docker Images to your system. The script also will download the Docker images to your local registry.
いったん、あなたがインストールされた前提を持つと、あなたはハイパー元帳ファブリックをダウンロードして、インストールする準備ができています。 我々がファブリックバイナリのために実際のインストーラを開発することに努力する一方で、我々は あなたのシステムにサンプルやバイナリーやドッカーイメージをインストールするスクリプトを提供します。スクリプトは同じくあなたのローカルレジストリにドッカーイメージをダウンロードするでしょう。



Hyperledger Fabric smart contract (chaincode) SDKs
ハイパー元帳ファブリックのスマート契約(チェインコード)SDK

Hyperledger Fabric offers a number of SDKs to support developing smart contracts (chaincode) in various programming languages. There are three smart contract SDKs available for Go, Node.js, and Java:
ハイパー元帳ファブリックがさまざまなプログラム言語でスマート契約(チェインコード)を開発することをサポートするために多くのSDKを提供します。 GoやNode.js と Javaのために利用可能な3つのスマート契約SDKがあります:

Go SDK and Go SDK documentation.
Go SDKとGoSDK文書

Node.js SDK and Node.js SDK documentation.
ノード.js SDKとノード.js SDK文書

Java SDK and Java SDK documentation.
Java SDKとJava SDK文書

Currently, Node.js and Java support the new smart contract programming model delivered in Hyperledger Fabric v1.4. Support for Go is planned to be delivered in a later release.
現在、 Node.js と Java は ハイパー元帳ファブリックv1.4 に届けられる新しいスマート契約プログラムモデルをサポートします。 Goのための支援は、後のリリースで届けるために計画されます。

Hyperledger Fabric application SDKs
ハイパー元帳ファブリックの アプリケーションSDK

Hyperledger Fabric offers a number of SDKs to support developing applications in various programming languages. There are two application SDKs available for Node.js and Java:
ハイパー元帳ファブリックは、さまざまなプログラム言語で開発しているアプリケーションをサポートするために多くのSDKを提供します。 ノード.js と Java は入手可能な2つのアプリケーション SDKがあります:

Node.js SDK and Node.js SDK documentation.
ノード.js SDKとノード.js SDK文書

Java SDK and Java SDK documentation.
Java SDKとJava SDK文書

In addition, there are two more application SDKs that have not yet been officially released (for Python and Go), but they are still available for downloading and testing:
加えて、まだ(パイソンとゴーのために)公式にリリースされていないもう2つのアプリケーションSDKがあります、しかしそれらはダウンロードして、そしてテストをすることにまだ利用可能です。:

Python SDK.
パイソンSDK。

Go SDK.
ゴーSDK

Currently, Node.js and Java support the new application programming model delivered in Hyperledger Fabric v1.4. Support for Go is planned to be delivered in a later release.
現在、 ノード.js と Java はプログラムモデルが 元帳ファブリック v1.4 で届けられる新しいアプリケーションをサポートします。 ゴーのためのサポートは後のリリースで届けられるために計画されます。

Hyperledger Fabric CA
ハイパー元帳ファブリック認証機関

Hyperledger Fabric provides an optional certificate authority service that you may choose to use to generate the certificates and key material to configure and manage identity in your blockchain network. However, any CA that can generate ECDSA certificates may be used.
ハイパー元帳ファブリックがあなたが、あなたのブロックチェーンネットワークで構成し身元を管理するための証明書やキー素材を生成するために使うことを選択するかもしれないに選択認証機関サービスを供給します。 しかしながら、 ECDSA 証明書を生成可能などんな認証機関が使われるかもしれません。

Prerequisites
前提

Before we begin, if you haven’t already done so, you may wish to check that you have all the prerequisites below installed on the platform(s) on which you’ll be developing blockchain applications and/or operating Hyperledger Fabric.
我々が、始める前に、もしあなたがすでにそうしていないなら、あなたはあなたがブロックチェーンアプリケーションを開発して、そして/あるいは ハイパー元帳ファブリックを操作しているであろうプラットホーム上に下記に設置されているすべての前提を持っていることをチェックすることをあなたが望むかもしれません。

Install cURL
cURLをインストール

Download the latest version of the cURL tool if it is not already installed or if you get errors running the curl commands from the documentation.
もしそれがまだインストールされていないなら、あるいはもしあなたが文書からcurlコマンドを走らせてエラーを得るなら、cURLツールの最新版をダウンロードしてください。

Note
メモ

If you’re on Windows please see the specific note on Windows extras below.
もしあなたが ウインドウズ上にいるなら、どうか下記ウインドウズ エキストラの特定のメモを見てください。

Docker and Docker Compose
ドッカ―とドッカ―構成

You will need the following installed on the platform on which you will be operating, or developing on (or for), Hyperledger Fabric:
ハイパー元帳ファブリック上であなたが運用することになるか、あるいは開発しているであろう(あるいはそのための)プラットホーム上にインストールされた下記のものを、あなたは必要とするでしょう:

l  MacOSX, *nix, or Windows 10: Docker Docker version 17.06.2-ce or greater is required.
マックOSX、* nix、あるいは ウインドウズ10:ドッカ―、ドッカ―r版数17.06.2-ceか、あるいはより上位のものが必要とされる。

l  Older versions of Windows: Docker Toolbox - again, Docker version Docker 17.06.2-ce or greater is required.
ウインドウズの前の版数:ドッカーツールボックス -、ドッカ―、版数ドッカ―17.06.2- ce 、あるいはより上位のものが必要とされる。

You can check the version of Docker you have installed with the following command from a terminal prompt:
あなたは、あなたが端末の誘導メッセージから下記のコマンドであなたがインストールした ドッカ―の版数をチェックすることができます:

docker –version

ドッカ―-版数

Note
メモ

Installing Docker for Mac or Windows, or Docker Toolbox will also install Docker Compose. If you already had Docker installed, you should check that you have Docker Compose version 1.14.0 or greater installed. If not, we recommend that you install a more recent version of Docker.
マックあるいは ウインドウ、あるいはドッカ―ツールボックスをインストールすることは同じくドッカ―コンポーズをインストールするでしょう。 もしあなたがすでに ドッカ―をインストールしているなら、あなたはあなたがドッカ―コンポーズ 版数1.14.0あるいはより新しいのがインストールされているかチェックすべきです。 もしそうでなければ、我々はあなたがドッカ―のいっそう最近の版数をインストールすることを勧めます。

You can check the version of Docker Compose you have installed with the following command from a terminal prompt:
あなたはあなたが端末の誘導メッセージから以下のコマンドと共にインストールしたドッカ―コンポーズ の版数をチェックすることができます:

docker-compose –version
ドッカ―-コンポーズ-版数

Go Programming Language
Goプログラム言語

Hyperledger Fabric uses the Go Programming Language for many of its components.
ハイパー元帳ファブリックは、そのコンポーネントの多くのためにGoプログラム言語を使います。

Go version 1.12.x is required.
Go版数1.12.xが必要

Given that we will be writing chaincode programs in Go, there are two environment variables you will need to set properly; you can make these settings permanent by placing them in the appropriate startup file, such as your personal ~/.bashrc file if you are using the bash shell under Linux.
我々がGoでチェインコード プログラムを書いているとすれば、あなたが適切に設定する必要があるであろう2つの環境変数があります; あなたは、もしあなたが Linux の下で bashシェルを使っているなら、それらをあなたの個人~/ .bashrcファイルのような、適切なスタートアップファイルに置くことによって、これらの設定を永久にすることができます。

First, you must set the environment variable GOPATH to point at the Go workspace containing the downloaded Fabric code base, with something like:
最初、あなたは環境 変数GOパスをダウンロードされたファブリック符号ベースを含んでいるGo作業領域ポイントに割り当てなくてはなりません:

export GOPATH=$HOME/go
掃き出しGOパス = $ホーム/go

Note
メモ

You must set the GOPATH variable
あなたはGOパス 変数をセットしなければなりません。

Even though, in Linux, Go’s GOPATH variable can be a colon-separated list of directories, and will use a default value of $HOME/go if it is unset, the current Fabric build framework still requires you to set and export that variable, and it must contain only the single directory name for your Go workspace. (This restriction might be removed in a future release.)
Linux で、GoのGOPATH変数にディレクトリのコロンによって分離されたリストであり得て、もしそれが設定されていなければ$ホーム/ goの省略時値を使うでしょう。現在のファブリック構築のフレームワークはまだあなたにその変数をセットして、書き出すことを必要とします。そしてあなたのGo作業領域に一つのデイレクトリー名を含まなくてはなりません。(この制限は未来の発行で取り除かれるかもしれません。)

Second, you should (again, in the appropriate startup file) extend your command search path to include the Go bin directory, such as the following example for bash under Linux:
第二に、あなたは(再び、適切なスタートアップファイルで)bashのための次の例のような、 Go binデイレクトリを含むためにあなたのコマンド検索パスを拡張すべきです。:

export PATH=$PATH:$GOPATH/bin
書き出しパス =$パス:$GOパス/bin

While this directory may not exist in a new Go workspace installation, it is populated later by the Fabric build system with a small number of Go executables used by other parts of the build system. So even if you currently have no such directory yet, extend your shell search path as above.
このデイレクトリが新しいGo作業領域導入先で存在しないかもしれない一方で、それはビルドシステムの他の部分によって使われる少数のGo実行可能があるファブリックビルドシステムによって後に追加されます。 それでたとえあなたがまだ現在このような、どのデイレクトリも持っていないとしても、同じぐらい上記のようにあなたのシェル探索パスを拡張してください。

Node.js Runtime and NPM
ノード.js ランタイムと NPM

If you will be developing applications for Hyperledger Fabric leveraging the Hyperledger Fabric SDK for Node.js, version 8 is supported from 8.9.4 and higher. Node.js version is supported from 10.15.3 and higher.
もしあなたが ノード.js 版数8のために ハイパー元帳ファブリックSDKをてこ入れして ハイパー元帳ファブリックのアプリケーションを開発しているなら、8.9.4以上からサポートされます。 ノード.js 版数10が10.15.3以上からサポートされます。

Node.js download
ノード.jsダウンロード

Note
メモ

Installing Node.js will also install NPM, however, it is recommended that you confirm the version of NPM installed. You can upgrade the npm tool with the following command:
ノード.js をインストールすることは同じく NPM をインストールするでしょうが、しかし、インストールされたNPM の版数を確認することが勧められます。あなたは以下のコマンドでnpmツールを更新可能です。:

npm install npm@5.6.0 -g
npm インストール npm@5.6.0-g

Python
パイソン

Note
メモ

The following applies to Ubuntu 16.04 users only.
次のことは ウブンツ16.04利用者のみに当てはまります。

By default Ubuntu 16.04 comes with Python 3.5.1 installed as the python3 binary. The Fabric Node.js SDK requires an iteration of Python 2.7 in order for npm install operations to complete successfully. Retrieve the 2.7 version with the following command:
デフォルトでウブンツ 16.04は パイソン3バイナリーとしてインストールされたパイソン3.5.1について来ます。ファブリックノード.js SDKはが順に rnpmインストール操作が成功裏に完了するため、パイソン2.7バージョンの繰り返しを必要とします。 以下のコマンドで2.7の版数を検索してください:

sudo apt-get install python
sudo apt-getインストールパイソン

Check your version(s):
あなたの版数をチェック:

python –version
パイソン-版数

Windows extras
ウインドウズエクストラ

If you are developing on Windows 7, you will want to work within the Docker Quickstart Terminal which uses Git Bash and provides a better alternative to the built-in Windows shell.
もしウインドウズ7上で開発しているなら、あなたは、Git Bashを使い、組み込みウインドウシェルのより良い代替を供給するドッカ― Quickstart 端末内で作業ことを望むでしょう。

However, experience has shown this to be a poor development environment with limited functionality. It is suitable to run Docker based scenarios, such as Getting Started, but you may have difficulties with operations involving the make and docker commands.
しかしながら、経験はこれが限定された機能性の程度が低い開発環境であることを示しています。 Getting Started,のようなドッカ―ベースのシナリオを走らせることは適当ですが、あなたは makeとdockerのコマンドを含む操作で困難があるかもしれません。

On Windows 10 you should use the native Docker distribution and you may use the Windows PowerShell. However, for the binaries command to succeed you will still need to have the uname command available. You can get it as part of Git but beware that only the 64bit version is supported.
Windows10上では元々ついてるドッカ―配布を使うべきで、Windows PowerShell を使ってもよいです。 しかしながら、バイナリコマンドが成功するためには、まだ unameコマンドを利用可能にする必要があるでしょう。 git の一部としてそれを手に入れることができますが 64bit 版数だけが支援されているのに気を付けてください。

Before running any git clone commands, run the following commands:
どんなgitクローンコマンドを動かす前にも、以下のコマンドを走らせてください:

git config --global core.autocrlf false
ジット構成--グローバル コア.autocrlf 偽

git config --global core.longpaths true
ジット構成--グローバル コア.ロングパス真

You can check the setting of these parameters with the following commands:
以下のコマンドでこれらのパラメータの設定をチェック可能です:

git config --get core.autocrlf
ジット構成--コア.autocrlf を入手

git config --get core.longpaths
ジット 構成--コア.ロングパス入手

These need to be false and true respectively.
これらはそれぞれ偽と真である必要があります。

The curl command that comes with Git and Docker Toolbox is old and does not handle properly the redirect used in Getting Started. Make sure you install and use a newer version from the cURL downloads page
ジットとドッカ―ツールボックスと一緒に来る curlコマンドは古く、そしてGetting Startedで使われるリダイレクトを適切に処理しません。 あなたがcURL ダウンロードページからもっと新しい版数をインストールして、使うことを確かめてください

For Node.js you also need the necessary Visual Studio C++ Build Tools which are freely available and can be installed with the following command:
ノード.js のために、あなたは、同じく自由に利用可能である必要なビジュアル・スタジオ C++ ビルドツールを必要とし、以下のコマンドでインストールされる可能性があります:

npm install --global windows-build-tools

npm 導入--グローバルウインドウズ-ビルド-ツール

See the NPM windows-build-tools page for more details.
さらなる詳細は NPM ウインドウズ-ビルド-ツールのページを参照。

Once this is done, you should also install the NPM GRPC module with the following command:
いったんこれが行われると、以下のコマンドで同じく NPM GRPC モジュールをインストールすべきです:

npm install --global grpc

npm インストール - グローバル grpc 

Your environment should now be ready to go through the Getting Started samples and tutorials.
あなたの環境は今 Getting Startedのサンプルとチュートリアルを体験する準備ができているべきです。

Note
メモ

If you have questions not addressed by this documentation, or run into issues with any of the tutorials, please visit the Still Have Questions? page for some tips on where to find additional help.
もしあなたがこの文書によって取り上げられない質問、あるいはチュートリアルのいずれかで課題に出くわすなら、どこに追加のヘルプを見いだすべきかについての若干の助言のためには、「まだ質問がありますか」のページを訪問してください。。

Install Samples, Binaries ,and Docker Images

インストールのサンプル、バイナリーとドッカ―イメージ

While we work on developing real installers for the Hyperledger Fabric binaries, we provide a script that will download and install samples and binaries to your system. We think that you’ll find the sample applications installed useful to learn more about the capabilities and operations of Hyperledger Fabric.
我々は ハイパー元帳ファブリックバイナリーのために実際のインストーラを開発することに努力する傍ら、ダウンロードするであろうスクリプトを提供して、あなたのシステムにサンプルとバイナリーをインストールします。あなたがハイパー元帳ファブリックの能力とオペレーションについていっそう学ぶのに有益であるインストールされたサンプルアプリケーションを見いだすと我々は思います。

Note
メモ

If you are running on Windows you will want to make use of the Docker Quickstart Terminal for the upcoming terminal commands. Please visit the Prerequisites if you haven’t previously installed it.
もしあなたがウインドウズ上で運用しているなら、来たる端末コマンドのためにドッカ― Quickstart 端末の利用を望むでしょう。もし事前にそれをインストールしていないなら、前提条件をどうか 訪問してください。

If you are using Docker Toolbox on Windows 7 or macOS, you will need to use a location under C:\Users (Windows 7) or /Users (macOS) when installing and running the samples.
もしあなたが ウインドウズ7あるいは macOSでドッカーツールボックスを使っているなら、あなたはサンプルをインストールして、走らせるとき、C:\利用者たち(ウインドウズ7)あるいは / 利用者たち(macOS)の下の場所を使う必要があるでしょう。

If you are using Docker for Mac, you will need to use a location under /Users, /Volumes, /private, or /tmp. To use a different location, please consult the Docker documentation for file sharing.
もしあなたがマックのために ドッカ―を使っているなら、あなたは/ 利用者たち/ ボリューム / 秘密、あるいは / tmpの下の場所を使う必要があるでしょう。 別の場所を使うために、どうかファイル共有のためのドッカ―文書を調べてください。

If you are using Docker for Windows, please consult the Docker documentation for shared drives and use a location under one of the shared drives.
もしあなたが ウインドウズのために ドッカ―を使っているなら、どうか共有ドライブのためのドッカ―文書を調べて、共有ドライブの一つの下にある場所を使ってください。

ここから先は

39,433字 / 1ファイル

¥ 100

期間限定 PayPay支払いすると抽選でお得に!

この記事が気に入ったらサポートをしてみませんか?