情報開発と利活用

情報開発と利活用

PR

×

Profile

令和維新

令和維新

Favorite Blog

関東鉄道鉾田線 197… New! GKenさん

源氏物語〔39帖 夕霧… New! USM1さん

2026年12月6日の… New! 藻緯羅さん

🌹新作「せせらぎ」(… New! 神風スズキさん

12月のハープコンサ… 47弦の詩人さん

Category

カテゴリ未分類

(114)

連絡

(24)

交流会

(27)

セミナー

(29)

参考情報

(138)

オフ会

(36)

on-line報告会

(13)

翻訳ビジネス

(8)

情報開発

(270)

ビッグデータ

(91)

ブロックチェーン

(260)

人工知能

(613)

IOT

(311)

仮想通貨

(883)

コンテンツ

(142)

政治経済

(2073)

先端技術

(1003)

DITA

(55)

テレワーク

(28)

UX

(0)

文書管理

(9)

テクニカルライテイング

(30)

学習

(9)

訓練

(1)

XMLソリューション

(3)

メタバース

(101)

Web3

(70)

投資

(219)

IoT

(36)

投資信託

(1)

ビットコイン

(865)

イーサリアム

(166)

NFT

(41)

オンライン

(0)

受動収入

(14)

ソーシャルメデイア

(0)

DAO

(2)

DeFi

(85)

暗号通貨

(168)

トークノミクス

(23)

アルトコイン

(237)

空中投下

(16)

スマート契約

(4)

ステーブルコイン

(46)

金

(5)

生成AI

(5)

SCM

(4)

ウオレット

(9)

不労所得

(61)

セキュリテイ

(4)

ミームコイン

(52)

CBDC

(5)

PoS

(3)

PoW

(1)

ETF

(17)

仮想通貨ETF

(1)

予言

(7)

裁定取引

(1)

GameFi

(5)

マイニング

(11)

RWA

(25)

DePIN

(22)

SWFT

(1)

WLFI

(1)

アービトラージ

(7)

XRP

(69)

大統領選

(4)

BCH

(1)

取引ボット

(17)

トレーデイング

(67)

不動産

(1)

詐欺

(4)

貿易戦争

(1)

医療

(1)

金融

(2)

TEZOS

(1)

CARDANO

(2)

カルダーノ

(3)

ステーキング

(8)

チェーンリンク

(1)

開発

(0)

HEDERA

(6)

スマートマネー

(0)

流動性

(1)

AIエージェント

(26)

401k

(1)

国際送金

(2)

solano

(1)

AI

(44)

暗号資産

(128)

機関投資家

(5)

量子コンピューター

(8)

AIエージェント

(16)

ドキュメンテーション

(2)

AIトレーデイング

(1)

トークン化株式

(2)

半導体

(1)

フリーランス

(1)

AIスキル

(1)

Solana

(3)

貸し出し

(3)

Keyword Search

▼キーワード検索

Shopping List

お買いものレビューがまだ書かれていません。
2022.05.16
XML
カテゴリ: ブロックチェーン

Gateway

ゲートウエイ

The second key class is a Fabric  Gateway . Most importantly, a  gateway  identifies one or more peers that provide access to a network – in our case, PaperNet. See how  issue.js  connects to its gateway:
2番目のキークラスは ファブリックゲートウエイです。 最も重要なことは、ゲートウエイがあるネットワークークー我々の場合 PaperNet にアクセスを供給する1人以上の相手を特定します。発行 .js が、どのようにそのゲートウエイに接続するか見てください:

await gateway . connect ( connectionProfile , connectionOptions );

ゲートウェイ . 接続(接続プロファイル、 接続オプション)を待ち受ける;

gateway.connect()  has two important parameters:
. 接続 () は2つの重要なパラメータがあります:

l connectionProfile : the file system location of a  connection profile  that
identifies a set of peers as a gateway to PaperNet

接続プロファイル: PaperNet へのゲートウエイとして相手のセットを特定する接続プロファイルのファイルシステムの位置の選定

l connectionOptions : a set of options used to control how  issue.js  interacts with PaperNet
接続オプション: PaperNet とどのように発行 .js が相互作用するコントロールするために使われるオプションのセット

See how the client application uses a gateway to insulate itself from the network topology, which might change. The gateway takes care of sending the transaction proposal to the right
peer nodes in the network using the  connection profile  and  connection options .


クライアントアプリケーションがゲートウエイを変化するかもしれないネットワークのトポロジーからそれ自身を隔離するためにどのように使うか見てください。ゲートウエイは、接続 プロファイルとっ接続オプションを使ってネットワークで正しい相手のノードにトランザクション提案を送るのを世話します。

Spend a few moments examining the connection profile /gateway/connectionProfile.yaml . It uses  YAML , making it easy to read.
接続プロファイル / ゲートウエイ / 接続プロファイル .yaml をしばらく調べて見よう。 それは、読むことを容易にするので YAML を使います。

It was loaded and converted into a JSON object:
それは装填されて、 JSON オブジェクトに変換されました:

let connectionProfile = yaml . safeLoad ( file . readFileSync
( './gateway/connectionProfile.yaml' , 'utf8' ));

接続プロファイル= yaml. 安全装填 ( ファイル . ファイル読み込み同期
('./ ゲートウエイ / 接続プロファイル .yaml' 、「 utf8 」));とする

Right now, we’re only interested in the  channels:  and  peers:  sections of the
profile: (We’ve slightly modified the details to explain what’s happening.)

ちょうど今、我々はチャンネル : と相手 : プロファイルのセクション に関心があるだけです:(我々はもっと良く何が起きているか説明するために少し細部を修正しました。)

channels :

チャンネル:

papernet :

  papernet :

peers :

相手:

peer1.magnetocorp.com :

相手 1.magnetocorp.com :

endorsingPeer : true

相手の裏書:真

eventSource : true

イベントソース:真

peer2.digibank.com :

相手 2.digibank.com :

endorsingPeer : true

相手の裏書:真

eventSource : true

イベントソース:真

peers :

相手:

peer1.magnetocorp.com :

相手 1.magnetocorp.com :

url : grpcs://localhost:7051

    URL : grpcs:// ローカルホスト :7051

grpcOptions :

    grpcOptions :

ssl-target-name-override : peer1.magnetocorp.com

      ssl  -ターゲット -名前 - 無効化 : 相手 1.magnetocorp.com

request-timeout : 120

リクェスト - タイムアウト:120

tlsCACerts :

    tlsCACerts :

path : certificates/magnetocorp/magnetocorp.com-cert.pem

パス:証明 /magnetocorp/magnetocorp.com-cert.pem

peer2.digibank.com :

相手 2.digibank.com :

url : grpcs://localhost:8051

    URL : grpcs:// ローカルホスト :8051

grpcOptions :

    grpcOptions :

ssl-target-name-override : peer1.digibank.com

      ssl  -ターゲット- 名前 - 無効化 : 相手 1.digibank.com

tlsCACerts :

    tlsCACerts :

path : certificates/digibank/digibank.com-cert.pem

パス:証明 /digibank/digibank.com-cert.pem

See how  channel:  identifies the  PaperNet:  network channel, and two of its peers. MagnetoCorp has peer1.magenetocorp.com and DigiBank has peer2.digibank.com , and both
have the role of endorsing peers. Link to these peers via the
peers: key,
which contains details about how to connect to them, including their respective
network addresses.

どのようにチャンネル:が PaperNet: ネットワークチャンネルとその2人の相手を識別するか見てみよう。 MagnetoCorp は相手1 .magenetocorp.com を持ち、 DigiBank は相手 2.digibank.com を持ち、両方ともは相手を裏書きする役割を持っています。彼らのそれぞれのネットワークアドレスを含めて、どのように彼らに接続するべきかについて、詳細を含む peers:key によってこれらの相手にリンクしてください。

The connection profile contains a lot of information – not just peers – but network channels, network orderers, organizations, and CAs, so don’t worry if you don’t understand all of it!
接続プロファイルは多くの情報( 相手だけではなく )、しかしネットワークチャネル、ネットワーク注文者、組織と認証局を 含んでいるので、それほどあなたがそのすべてが分からなくても、どうかそんなに心配しないでください!

Let’s now turn our attention to the  connectionOptions  object:
今我々の注意を接続オプション オブジェクトに向けましょう:

let connectionOptions = { identity : userName , wallet : wallet }

接続オプション= {身元:ユーザ名、 財布:財布 }とする

See how it specifies that identity,  userName , and wallet,  wallet , should be used to
connect to a gateway. These were assigned values earlier in the code.

それがどのようにその同値、ユーザ名を指定するか見てください、そうすれば財布、財布、がゲートウエイに接続するために使われるべきです。 これらは符号早くに割当値でした。

There are other  connection options  that an application could use to instruct the SDK to
act intelligently on its behalf. For example:

SDK
にそのために聰明に作用するよう指示するためにそこ(に・で)アプリケーションが使うことができた otherconnection optionswhich です。 例えば:

let connectionOptions = { identity : userName , wallet :  wallet ,   eventHandlerOptions : { commitTimeout : 100 , strategy : EventStrategies . MSPID_SCOPE_ANYFORTX },}

接続オプション = {身元:ユーザ名、財布:財布、イベントハンドラーオプション:{時間切れコミット : 100 、 戦略: イベント戦略 .MSPID_SCOPE_ANYFORTX }、}

Here,  commitTimeout  tells the SDK to wait 100 seconds to hear whether a transaction has been committed. And strategy:EventStrategies.MSPID_SCOPE_ANYFORTX  specifies that the SDK can notify an application after a single MagnetoCorp peer has confirmed the transaction, in contrast to strategy: EventStrategies.NETWORK_SCOPE_ALLFORTX  which requires that all peers from MagnetoCorp and DigiBank to confirm the transaction.
ここで、時間切れにコミットは、トランザクションが引き受けられたかどうか聞くために100秒待つために SDK に告げます。そして 一人の MagnetoCorp 相手がトランザクションを確認した後に SDK がアプリケーションに通知できる ことを戦略 : イベント戦略 .MSPID_ 範囲 _ トランザクションのためのいずれが、指定します。それと対照的に 戦略 : イベント戦略 . ネットワーク _ 範囲 _ トランザクションのためのすべては、トランザクションを確認するために MagnetoCorp と DigiBank からすべての相手にトランザクションを確認することを必要とします。

If you’d like to,  read more  about how connection options allow applications to specify
goal-oriented behavior without having to worry about how it is achieved.

もしあなたがそうすることを望むなら、接続オプションがどんな具合に達成されているか心配する必要なくアプリケーションがゴール志向のふるまいを指定することを可能にする方法についての詳細はこちら
を読んでください。

=========================

インターネット・コンピュータランキング
=========================
ネットサービスランキング
=========================

[商品価格に関しましては、リンクが作成された時点と現時点で情報が変更されている場合がございます。]

Apple Gift Card
価格:50000円(税込、送料無料)  (2022/5/2時点)




[商品価格に関しましては、リンクが作成された時点と現時点で情報が変更されている場合がございます。]

Nintendo Switch Joy-Con(L) ネオンブルー/(R) ネオンレッド
価格:32978円(税込、送料無料)  (2022/5/2時点)


​​​​





お気に入りの記事を「いいね!」で応援しよう

Last updated  2022.05.17 06:50:34
コメント(0) | コメントを書く


【毎日開催】
15記事にいいね!で1ポイント
10秒滞在
いいね! -- / --
おめでとうございます!
ミッションを達成しました。
※「ポイントを獲得する」ボタンを押すと広告が表示されます。
x
X

© Rakuten Group, Inc.
X
Design a Mobile Site
スマートフォン版を閲覧 | PC版を閲覧
Share by: