Methods
-
<async> delete(label)
-
Removes an identity from the wallet
Parameters:
Name Type Description labelstring -
<async> exists(label)
-
Query the existence of an identity in the wallet
Parameters:
Name Type Description labelstring Returns:
- Type
- boolean
-
<async> export(label)
-
Extract an identity from the wallet
Parameters:
Name Type Description labelstring Returns:
-
<async> import(label, identity)
-
Import an identity into the wallet
Parameters:
Name Type Description labelstring identitymodule:fabric-network.Wallet~Identity -
<async> list()
-
List the contents of the wallet
Returns:
- Type
- Array.<module:fabric-network.Wallet~IdentityInfo>
Type Definitions
-
Identity
-
Type:
- Object
Properties:
Name Type Description typestring Type of credentials, for example X509. mspIdstring Organizational unit to which this identity belongs. certificatestring Certificate containing the public key in PEM format. privateKeystring Private key in PEM format. -
IdentityInfo
-
Type:
- Object
Properties:
Name Type Description labelstring Label used to refer to this identity in the wallet. mspIdstring Organizational unit to which this identity belongs. identifierstring