PR
Comments
New!
藻緯羅さん
New!
USM1さん
samito07さんCategory
Keyword Search
Freepage List
Shopping List
The different wallet classes are derived from a common Wallet
base class which provides a standard set of APIs to manage identities. It means that applications can be made independent of the underlying wallet storage mechanism; for example, File system and HSM wallets are handled in a very similar way.
異なった財布クラスは身元を管理するために API
の標準セットを提供する 共通の財布ベース クラスから得られます。 それはアプリケーションが基礎をなす財布記憶保持メカニズムから独立させられ得ることを意味します;例えば、ファイルシステムと HSM
の財布が極めて類似した方法で取り扱われます。

Wallets follow a lifecycle: they can be created or opened, and identities can be read, added, deleted, and exported.
財布はライフサイクルをたどる:それらは作るか、あるいは開くことができ、そして身元が読まれ、加えられ、削除され、そして取り出すことができます。
An application can use a wallet according to a simple lifecycle. Wallets can be opened or created, and subsequently, identities can be added, read, updated, deleted, and exported. Spend a little time on the different
Wallet
methods in the JSDOC
to see how they work; the commercial paper tutorial provides a nice example in
addToWallet.js
:
アプリケーションは単純なライフサイクルに従って財布を使うことができます。 財布は開くか、あるいは作成することができ、そしてその後身元が加えられ、読まれ、更新され、削除され、そして取り出すことができます。それらがどのように働くか見るため JSDOC
の異なる財布メソッドについて少々時間を費やしてください;商業手形チュートリアルは addToWallet.js
のすてきな例を供給します:
const wallet = new FileSystemWallet ( '../identity/user/isabella/wallet' );
構築 財布 = 新しい ファイルシステム財布 ('../ 身元 / 利用者 / イザベラ / 財布 ') ;
const cert = fs . readFileSync ( path . join ( credPath , '.../User1@org1.example.com-cert.pem' )). toString ();
構築 cert = fs. ファイル同期を読み込み(パス .join ( credPath 、「・・・ / 利用者 1@ 組織 1. 例 .com-cert.pem')).toString() ;
const key = fs . readFileSync ( path . join ( credPath , '.../_sk' )). toString ();
構築 キー= fs.
ファイル同期読み込み(パス .join
( credPath
、「... / - sk
」)) .toString ()
;
const identityLabel = 'User1@org1.example.com' ;
構築 身元ラベル = 「利用者 1@ 組織 1. 例 .com 」;
const identity = X509WalletMixin . createIdentity ( 'Org1MSP' , cert , key );
構築 身元 = X509 財布 Mixin. 身元作成 (「組織 1MSP 」、 cert 、キー);
await wallet . import ( identityLabel , identity );
財布 . 取り込み (身元ラベル 、身元)を待ち受け;
Notice how:
下記がどのようか注目すること:
·
When the program is first run, a wallet is created on the local file system at
.../isabella/wallet
.
プログラムが最初に走らせられるとき、財布は .../
イサベラ /
財布のローカルファイルシステムで作成されます。
·
a certificate
cert
and private
key
are loaded from the file system.
証明書 cert
と 秘密キーはファイルシステムから装填されます。
·
a new identity is created with
cert
,
key
and
Org1MSP
using
X509WalletMixin.createIdentity()
.
新しい身元は X509WalletMixin.createIdentity ()
使って作成された
cert
、 キーと組織 1MSP
で作成されます。
·
the new identity is imported to the wallet with
wallet.import()
with
a label
User1@org1.example.com
.
新しい身元は ラベル利用者 1@
組織 1.
例 .com
を伴う財布 .
取り込み ()
で財布に取り込まれます。
That’s everything you need to know about wallets. You’ve seen how they hold identities that are used by applications on behalf of users to access Fabric network resources. There are different types of wallets available depending on your application and security needs, and a simple set of APIs to help applications manage wallets and the identities within them.
以上が財布についてあなたが知る必要があるすべてです。 あなたはそれらがどのようにファブリックネットワーク資源にアクセスするため利用者の代わりにアプリケーションによって使われる身元を保持するか見てきました。あなたのアプリケーションとセキュリティーの必要に依存して利用可能な財布の異なったタイプがあります。そして、 API
の単純なセットによってアプリケーションがそれらの中で財布と身元を管理するのに役立ちます。
=========================
インターネット・コンピュータランキング
========================= ネットサービスランキング
=========================
「Johnny’s Festival ~Thank you 2021 Hello 2022~」(通常盤DVD 初回プレス仕様) [ (V.A.) ]
価格:7700円(税込、送料無料) (2022/6/2時点)
Xbox Series S
価格:32978円(税込、送料無料) (2022/6/2時点)
ニコン D5600 ダブルズームキット
価格:89800円(税込、送料無料) (2022/6/2時点)
【20000円OFFクーポン配布中】iPhone 12 128GB simフリー 国内正規品 Apple 本体 端末 新品 回線セット
価格:82380円(税込、送料無料) (2022/6/2時点)
</table5
【20000円OFFクーポン配布中】iPhone 12 64GB simフリー 国内正規品 Apple 本体 端末 新品 回線セット
価格:77440円(税込、送料無料) (2022/6/2時点)
=========================
インターネット・コンピュータランキング
========================= ネットサービスランキング
=========================
「Johnny’s Festival ~Thank you 2021 Hello 2022~」(通常盤DVD 初回プレス仕様) [ (V.A.) ]
価格:7700円(税込、送料無料) (2022/6/2時点)
Xbox Series S
価格:32978円(税込、送料無料) (2022/6/2時点)
ニコン D5600 ダブルズームキット
価格:89800円(税込、送料無料) (2022/6/2時点)
【20000円OFFクーポン配布中】iPhone 12 128GB simフリー 国内正規品 Apple 本体 端末 新品 回線セット
価格:82380円(税込、送料無料) (2022/6/2時点)
先端技術情報20260510 2026.05.10
これであなたはブロックチェーンをさらに… 2026.04.21
(3)あなたは今、ブロックチェーンをも… 2026.04.20