## 接口的使用
org.hyperledger.fabric.gateway.Wallet

- 使用Wallet的程序包
  程序包 | 说明
  --- | ---
  org.hyperledger.fabric.gateway | This package provides the set of interfaces that enable a Java application to interact with a Fabric blockchain network.

- - ### org.hyperledger.fabric.gateway中Wallet的使用

    返回Wallet的org.hyperledger.fabric.gateway中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static Wallet` | Wallets.`newCouchDBWallet(URL serverUrl, String databaseName)` Create a wallet backed by a CouchDB database.
    `static Wallet` | Wallets.`newFileSystemWallet(Path storeDirectory)` Create a wallet backed by a directory on the file system.
    `static Wallet` | Wallets.`newInMemoryWallet()` Create a wallet backed by an in-memory (non-persistent) store.
    `static Wallet` | Wallets.`newWallet(WalletStore store)` Create a wallet backed by a custom store implementation.

    参数类型为Wallet的org.hyperledger.fabric.gateway中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Gateway.Builder` | Gateway.Builder.`identity(Wallet wallet, String id)` Specifies the identity that is to be used to connect to the network.

Copyright © 2023. All rights reserved.