PR
Comments
New!
USM1さん
New!
藻緯羅さん
GKenさん
samito07さんCategory
Keyword Search
Freepage List
Shopping List
Towards the top of issue.js , you’ll see two Fabric classes are brought into scope: の 発行 .js のトップに向かって、あなたは2つのファブリッククラスが有効範囲に引き入れられるのを見るでしょう:
const { FileSystemWallet , Gateway } = require ( 'fabric-network' );
構築 { ファイルシステム財布 , ゲートウエイ } =要求(「ファブリック - ネットワーク」);
You can read about the
fabric-network
classes in the node SDK documentation
, but for now, let’s see how they are used to connect MagnetoCorp’s application to PaperNet. The application uses the Fabric
Wallet
class as follows:
あなたは ノード SDK
文書でファブリック-ネットワーククラスについて読むことができますが、今のところ、それらが MagnetoCorp
のアプリケーションを PaperNet
に接続するためにどのように使われるか見ましょう。アプリケーションは次のように ファブリック財布クラス を使います:
const wallet = new FileSystemWallet ( '../identity/user/isabella/wallet' );
財布構築 = 新しいファイルシステム財布 ('../ 身元 / ユーザー / イサベラ / 財布 ') ;
See how
wallet
locates a wallet
in the local filesystem. The identity retrieved from the wallet is clearly for a user called Isabella, who is using the
issue
application. The
wallet holds a set of identities – X.509 digital certificates – which can be used to access PaperNet or any other Fabric network. If you run the tutorial, and look in this directory, you’ll see the identity credentials for Isabella.
ローカルなファイルシステムで財布がどのように財布の位置を示すか見てください。 財布から検索された身元は明らかに発行アプリケーションを使っているイザベラと呼ばれる利用者のためです。 財布は PaperNet
あるいは他のどのファブリックネットワークにでもアクセスするために使うことが可能な身元- X.509
電子認証-のセットを保持します。 もしあなたがチュートリアルを走らせ、そしてこのデイレクトリの中身を見るなら、あなたはイザベラのために身元証明書を見るでしょう。
Think of a wallet
holding the digital equivalents of your government ID, driving license or ATM card. The X.509 digital certificates within it will associate the holder with a organization, thereby entitling them to rights in a network channel. For example,
Isabella
might be an administrator in MagnetoCorp, and this could give her more privileges than a different user –
Balaji
from DigiBank. Moreover, a smart contract can retrieve this identity during smart contract processing using the transaction context
.
あなたの政府ID、運転免許証あるいはキャッシュカードのデジタルの同等物を 保持する財布を考えてください。その中の X.509
電子認証はネットワークチャネルで、それによって彼らに権限を与えて、保持者を組織と結び付けるでしょう。例えば、 イサベラは MagnetoCorp
で管理者かもしれないが、そしてこれは彼女に別の利用者 - DigiBank
からの バラジ より多くの特典を与えるかもしれません。 さらに、スマート契約は トランザクション文脈条件を使ってスマート契約処理の間にこの身元の検索ができます。
Note also that wallets don’t hold any form of cash or tokens – they hold identities.
同じく財布はどんな形の現金あるいはトークンも持たない(それらが身元を保持する)ことに注意してください。
【5/3〜5】買えば買うほど★最大10%OFFクーポン コールマン アウトドアワゴン グレー アルペン限定カラー 2000034670 OUTDOORWAGON (テント タープ テーブル チェア 運搬に) Coleman
価格:11000円(税込、送料別) (2022/5/2時点)
Apple Gift Card
価格:50000円(税込、送料無料) (2022/5/2時点)
パナソニック ベビーモニター KX-HC705(ホワイト)【送料無料】
価格:15197円(税込、送料無料) (2022/5/2時点)
Nintendo Switch Joy-Con(L) ネオンブルー/(R) ネオンレッド
価格:32978円(税込、送料無料) (2022/5/2時点)
オンチェーン経済は「二つの世界」に分裂… 2026.05.05
これであなたはブロックチェーンをさらに… 2026.04.21
(3)あなたは今、ブロックチェーンをも… 2026.04.20