fabric-wallet-migration
    Preparing search index...

    Class Wallet

    Stores identity information for use with the Fabric Gateway client API. The wallet is backed by a store that handles persistence of identity information.

    Index

    Constructors

    Methods

    Constructors

    • Create a wallet instance backed by a given store. This can be used to create a wallet using your own custom store implementation.

      Parameters

      Returns Wallet

    Methods

    • Get an identity and private key from the wallet.

      Parameters

      • label: string

        Label used to identify the identity within the wallet.

      Returns Promise<undefined | Entry>

      An entry if it exists; otherwise undefined.

    • Get the labels of all entries in the wallet.

      Returns Promise<string[]>

      Entry labels.

    • Put an identity and private key into the wallet.

      Parameters

      • label: string

        Label used to identify the identity within the wallet.

      • entry: Entry

        Entry to store in the wallet.

      Returns Promise<void>

    • Remove an entry from the wallet.

      Parameters

      • label: string

        Label used to identify the entry within the wallet.

      Returns Promise<void>